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

RuntimeError: The requested monomial ___ could not be found #42

Open
grupot3 opened this issue Mar 29, 2020 · 1 comment
Open

RuntimeError: The requested monomial ___ could not be found #42

grupot3 opened this issue Mar 29, 2020 · 1 comment

Comments

@grupot3
Copy link

grupot3 commented Mar 29, 2020

I'm getting the error RuntimeError: The requested monomial ___ could not be found

For instance, in this code

from ncpol2sdpa import *

X = generate_variables('x', 2)
obj = X[0]
inequalities = [X[1]]
sdp = SdpRelaxation(X)
sdp.get_relaxation(2, objective=obj, inequalities=inequalities,
                   chordal_extension=True)

the error appears, saying The requested monomial x0*x1 could not be found

However, in this other code (note that I've simply swiched X[1] and X[0]) the error does not appear

from ncpol2sdpa import *

X = generate_variables('x', 2)
obj = X[1]
inequalities = [X[0]]
sdp = SdpRelaxation(X)
sdp.get_relaxation(2, objective=obj, inequalities=inequalities,
                   chordal_extension=True)
@nnnnmj
Copy link

nnnnmj commented Jul 20, 2023

Did you solve this problem? I came across the similar problem as well.

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