Skip to content

Use MultivariatePolynomials #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
blegat opened this issue Jul 27, 2017 · 2 comments
Open

Use MultivariatePolynomials #43

blegat opened this issue Jul 27, 2017 · 2 comments

Comments

@blegat
Copy link
Member

blegat commented Jul 27, 2017

Now that MultivariatePolynomials is lightweight thanks to JuliaAlgebra/MultivariatePolynomials.jl#41, we could add it to the requirement of Polyhedra and makes the HRepresentation and Polyhedron types BasicSemialgebraicSet subtypes.
We could define a Polyhedra.Variable type with a Polyhedra.@polyvar macro and an AffineTerm and an AffinePolynomial types.
This way, one could define an HRepresentation with

@polyvar x y
@set x + y == 1 && x >= 0 && y >= 0

The inequalities and equalities iterators would return AffinePolynomials.
@rdeits what do you think ?

@chriscoey
Copy link

If this would make it easier to work with Newton polytopes for SOS optimization than I'm in favor!

@blegat
Copy link
Member Author

blegat commented Mar 30, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants