# \#polyhedra

**URL:** https://discourse.julialang.org/tag/polyhedra/1268.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to check the dimension names before eliminating some dimensions of a polyhedron?](https://discourse.julialang.org/t/how-to-check-the-dimension-names-before-eliminating-some-dimensions-of-a-polyhedron/111864)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [March 22, 2024, 8:12am UTC](https://discourse.julialang.org/t/how-to-check-the-dimension-names-before-eliminating-some-dimensions-of-a-polyhedron/111864 "2024-03-22T08:12:38Z")

</div>

using Polyhedra using JuMP using CDDLib poly = Model() @variable(poly, -1 \<= x \<= 1) @variable(poly, -1 \<= y \<= 1) P = polyhedron(poly, CDDLib.Library(:exact)) P\_y = eliminate(P, \[1\]) How can I make sure the index \[1\] …

---

## [Plotting polyhedron with Makie](https://discourse.julialang.org/t/plotting-polyhedron-with-makie/41306)

<div class="topic-metadata">

**Author:** [@jerjorg](https://discourse.julialang.org/u/jerjorg)\
**Replies:** 4\
**Last updated:** [November 10, 2023, 3:49pm UTC](https://discourse.julialang.org/t/plotting-polyhedron-with-makie/41306 "2023-11-10T15:49:52Z")

</div>

I am new to Julia and my question and problem may be really simple. I am trying to plot a polyhedron with Makie. I have been following the examples provided by the documentation for the Polyhedra package here and here, b…

---

## [How to plot a 3D plot of 3 inequalities?](https://discourse.julialang.org/t/how-to-plot-a-3d-plot-of-3-inequalities/93910)

<div class="topic-metadata">

**Author:** [@Kanishk](https://discourse.julialang.org/u/Kanishk)\
**Replies:** 10\
**Last updated:** [February 4, 2023, 12:32pm UTC](https://discourse.julialang.org/t/how-to-plot-a-3d-plot-of-3-inequalities/93910 "2023-02-04T12:32:25Z")

</div>

Hello I have 3 inequalities and each have 3 variables. Could you please explain how can I draw a combined one 3D plot with shaded area satisfying all the 3 inequalities? I have inequalities of the form as f1(x,y,z) = a…

---

## [QHull and Polyhedra give different volume estimates](https://discourse.julialang.org/t/qhull-and-polyhedra-give-different-volume-estimates/74487)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 0\
**Last updated:** [January 12, 2022, 1:33pm UTC](https://discourse.julialang.org/t/qhull-and-polyhedra-give-different-volume-estimates/74487 "2022-01-12T13:33:45Z")

</div>

I am trying to figure out why QHull and Polyhedra give different volume estimates for the same inputs. They agree in the 2D case, but diverge in the 3D case. Results 2D Polyhedra.jl: 0.982 QHull.jl: 0.982 3D Polyhedra.…

---

## [Plotting sets using natural mathematical set expressions](https://discourse.julialang.org/t/plotting-sets-using-natural-mathematical-set-expressions/91582)

<div class="topic-metadata">

**Author:** [@tapyu](https://discourse.julialang.org/u/tapyu)\
**Replies:** 10\
**Last updated:** [December 13, 2022, 11:10pm UTC](https://discourse.julialang.org/t/plotting-sets-using-natural-mathematical-set-expressions/91582 "2022-12-13T23:10:10Z")

</div>

In convex optimization, it is quite common to come across a n-dimensional set formally written like that, for example, C = \\left\\{ (x\_1, x\_2, \\cdots, x\_n, t) \\in \\mathbb{R}^{n+1} \\mid \\mathbf{x} \\in \\mathbb{R}^{n}, \\lV…

---

## [Polyhedron of JuMP model with Polyhedra or Lazyset](https://discourse.julialang.org/t/polyhedron-of-jump-model-with-polyhedra-or-lazyset/89218)

<div class="topic-metadata">

**Author:** [@papar](https://discourse.julialang.org/u/papar)\
**Replies:** 7\
**Last updated:** [October 26, 2022, 10:53pm UTC](https://discourse.julialang.org/t/polyhedron-of-jump-model-with-polyhedra-or-lazyset/89218 "2022-10-26T22:53:48Z")

</div>

Hello, I want to plot a 3D polyhedron of a JuMP model for education purposes. I have seen these packages Polyhedra and LazySets, but I am unsure how to convert a JuMP model. I believe it requires projection/elimination.…

---

## [Minkowski decomposition in Polyhedra.jl](https://discourse.julialang.org/t/minkowski-decomposition-in-polyhedra-jl/77156)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 1\
**Last updated:** [February 27, 2022, 10:36pm UTC](https://discourse.julialang.org/t/minkowski-decomposition-in-polyhedra-jl/77156 "2022-02-27T22:36:44Z")

</div>

Is there a function about minskowski decomposition or minkowski summands which gives the all summands pair?

---

## [Weird Behaviour/Bug in Polyhedra.jl](https://discourse.julialang.org/t/weird-behaviour-bug-in-polyhedra-jl/74168)

<div class="topic-metadata">

**Author:** [@Codzilla](https://discourse.julialang.org/u/Codzilla)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 1:27am UTC](https://discourse.julialang.org/t/weird-behaviour-bug-in-polyhedra-jl/74168 "2022-01-27T01:27:44Z")

</div>

I observed a strange behaviour with Polyhedra.jl. As a result of a rather complicated algorithm, I obtained a polyhedron as an intersection of half-planes. However, when I want to compute the vertices forming the complex…

---

## [Intersection of non-overlapping point clouds with Polyhedra.jl](https://discourse.julialang.org/t/intersection-of-non-overlapping-point-clouds-with-polyhedra-jl/74500)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [January 13, 2022, 2:39pm UTC](https://discourse.julialang.org/t/intersection-of-non-overlapping-point-clouds-with-polyhedra-jl/74500 "2022-01-13T14:39:20Z")

</div>

Hi all, I need to identify whether two point “clouds” of arbitrary dimension intersect. As a sanity check, I tested two non-overlapping point clouds to see if the results make sense. Strangely, the intersection is non…

---

## [Why is the intersection of a polyhedra with itself not equal to itself?](https://discourse.julialang.org/t/why-is-the-intersection-of-a-polyhedra-with-itself-not-equal-to-itself/72585)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 7\
**Last updated:** [December 4, 2021, 7:38pm UTC](https://discourse.julialang.org/t/why-is-the-intersection-of-a-polyhedra-with-itself-not-equal-to-itself/72585 "2021-12-04T19:38:42Z")

</div>

using Polyhedra import CDDLib lib = CDDLib.Library() P = polyhedron(vrep(Acolums,Is),lib) #(lines=Acolums , rays = Is) println(intersect(P,P) == P ) # it should be true but it gives false How can it be made to ret…

---

## [Is there a polyhedra package that will meet my need](https://discourse.julialang.org/t/is-there-a-polyhedra-package-that-will-meet-my-need/71010)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 1\
**Last updated:** [November 5, 2021, 3:24pm UTC](https://discourse.julialang.org/t/is-there-a-polyhedra-package-that-will-meet-my-need/71010 "2021-11-05T15:24:22Z")

</div>

I need to implement this algorithm, but need exact same constructor of polyhedra. I don’t know julia, can someone help? or for “I\_s” , rigt kernel of matrix, power set … are there functions for these?

---

## [Error using LazySets.plot3d](https://discourse.julialang.org/t/error-using-lazysets-plot3d/52994)

<div class="topic-metadata">

**Author:** [@adropintheriver](https://discourse.julialang.org/u/adropintheriver)\
**Replies:** 3\
**Last updated:** [January 8, 2021, 6:52pm UTC](https://discourse.julialang.org/t/error-using-lazysets-plot3d/52994 "2021-01-08T18:52:14Z")

</div>

I even did Pkg.update() to ensure i have the latest versions, but still get t using LazySets, Makie, Polyhedra LazySets.plot3d(10. \* rand(Hyperrectangle, dim=3)) MethodError: no method matching iterate(::Polyhedra.Mesh…

---

## [JuMP model Polyhedron](https://discourse.julialang.org/t/jump-model-polyhedron/50108)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 11\
**Last updated:** [November 18, 2020, 1:33am UTC](https://discourse.julialang.org/t/jump-model-polyhedron/50108 "2020-11-18T01:33:34Z")

</div>

Hi, I am trying to plot the feasible set of a JuMP model as a 3D figure. I have used the syntax provided in Polyhedra.jl documentation to create a polyhedron: Optimization · Polyhedra A simple example is given below: …

---

## [Polyhedra no longer supported?](https://discourse.julialang.org/t/polyhedra-no-longer-supported/30179)

<div class="topic-metadata">

**Author:** [@squirrel](https://discourse.julialang.org/u/squirrel)\
**Replies:** 1\
**Last updated:** [October 22, 2019, 4:34pm UTC](https://discourse.julialang.org/t/polyhedra-no-longer-supported/30179 "2019-10-22T16:34:05Z")

</div>

Hi. I have Julia v1.2.0 running with Atom v1.40.1. I want to do some Fourier-Motzkin elimination, and I found the CDDLip.jl, and the Polyhedra.jl interface. The Polyhedra documentation says “Polyhedra supports Julia v0.…

---

## [Makie and colours](https://discourse.julialang.org/t/makie-and-colours/21937)

<div class="topic-metadata">

**Author:** [@fa-bien](https://discourse.julialang.org/u/fa-bien)\
**Replies:** 6\
**Last updated:** [March 16, 2019, 1:46pm UTC](https://discourse.julialang.org/t/makie-and-colours/21937 "2019-03-16T13:46:47Z")

</div>

I am visualising polyhedra with Makie. However I find that colours are all way too dark, see MWE that displays a cube that should be the brightest shade of yellow, but is not very bright. Moreover, I find that it gets br…
