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

save optimization data for stat !=: Optimal nlp problems #938

Closed

Conversation

huckl3b3rry87
Copy link

@huckl3b3rry87 huckl3b3rry87 commented Jan 14, 2017

added functionality to save design variables, objective function values and constraint values for a nlp when the stat != :Optimal. This very useful when defining tolerances for the feasibility of the model. This works on the cases tested for both IPOPT and KNITRO. These tools both pass back the data even if the result is not feasible and studying this data can be very useful

…es and constraint values for a nlp when the stat != :Optimal. This very useful when defining tollerances for the feasibility of the model. This works on the cases tested for both IPOPT and KNITRO
@mlubin
Copy link
Member

mlubin commented Jan 15, 2017

This really calls for a way to query solution status via MathProgBase. CC @ccoffrin

@huckl3b3rry87
Copy link
Author

huckl3b3rry87 commented Mar 29, 2017

So, I guess that this can be closed because now JuMP passes back the solution even if it is not optimal?

I do have another issue related to this though, when it is solving my screen looks like this:

WARNING: Dual solution not available. Check that the model was properly solved and no integer variables are present.
WARNING: Dual solution not available. Check that the model was properly solved and no integer variables are present.
WARNING: Dual solution not available. Check that the model was properly solved and no integer variables are present.
WARNING: Dual solution not available. Check that the model was properly solved and no integer variables are present.
WARNING: Dual solution not available. Check that the model was properly solved and no integer variables are present.

etc....
Can we suppress these warnings somehow (so my boss does not think something is wrong)? I noticed there has been discussion related to this here #91
and
here #325

@mlubin
Copy link
Member

mlubin commented Mar 29, 2017

You could just not call getdual if you know there's no dual solution to get.

@huckl3b3rry87
Copy link
Author

@mlubin oh, I forgot that I was calling that. Thanks!

@mlubin
Copy link
Member

mlubin commented Jun 9, 2017

This will be addressed by JuliaOpt/MathProgBase.jl#164 and the corresponding changes to JuMP

@mlubin mlubin closed this Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants