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

length(hess_I) > 0 #1981

Closed
renkekuhlmann opened this issue Jun 6, 2019 · 2 comments
Closed

length(hess_I) > 0 #1981

renkekuhlmann opened this issue Jun 6, 2019 · 2 comments

Comments

@renkekuhlmann
Copy link
Contributor

Hi,
I run into the assertion
https://github.com/JuliaOpt/JuMP.jl/blob/d8985728c863725537b98bf1e441b99f86d9c2b5/src/nlp.jl#L284

What does that assertion mean? How can I fix my model? The model uses a lot of nonlinear constraints that are built from nonlinear expressions, which appear as subexpressions in the model output. Is this a problem?

@mlubin
Copy link
Member

mlubin commented Jun 6, 2019

What does that assertion mean?

That appears to be a bug.

How can I fix my model?

Share an example that reproduces the assertion failure, so that we can fix the bug :).

@renkekuhlmann
Copy link
Contributor Author

renkekuhlmann commented Jun 6, 2019

Okay, my bad. In the creation of the nonlinear expression there was an ==. I used that expression then to create a constraint like expr == 0. So there where two ==. I didn't noticed that because the expressions are printed just as subexpression[801] - 0.0 = 0 in the model output etc.

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

No branches or pull requests

2 participants