Skip to content
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

MethodError with Semi-algebraic set described by polynomial equalities #28

Open
jolouvet opened this issue Mar 28, 2024 · 0 comments
Open

Comments

@jolouvet
Copy link

It seems there is an issue with problems involving measures whose support is a semi-algebraic set described by polynomial equalities.

As an example:

gmp = GMPModel(Mosek.Optimizer)

@polyvar x[1:3]
@variable gmp mu Meas(x[1:3], support=@set(x'*x== 1))
@objective gmp Max Mom(1, mu)

optimize!(gmp)

returns

MethodError: no method matching map_exponents(::typeof(+), ::SumOfSquares.GramMatrix{VariableRef, MonomialBasis{Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}}, MonomialVector{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}}}, AffExpr, SymMatrix{VariableRef}}, ::Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}})

It works fine for polynomial inequalities:

@variable gmp mu Meas(x[1:3], support=@set(x'*x<= 1))
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

1 participant