Open blegat opened 7 years ago
If this would make it easier to work with Newton polytopes for SOS optimization than I'm in favor!
I don't think it would help with Newton polytopes, it just gives a nice interface to build polytopes similar to SemialgebraicSets, I don't think it is a high priority.
Now that MultivariatePolynomials is lightweight thanks to https://github.com/blegat/MultivariatePolynomials.jl/pull/41, we could add it to the requirement of Polyhedra and makes the
HRepresentation
andPolyhedron
typesBasicSemialgebraicSet
subtypes. We could define aPolyhedra.Variable
type with aPolyhedra.@polyvar
macro and anAffineTerm
and anAffinePolynomial
types. This way, one could define anHRepresentation
withThe
inequalities
andequalities
iterators would returnAffinePolynomial
s. @rdeits what do you think ?