You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When solving maximization problems max (f(x) + c), it seems value returned by getobjectivevalue is max(f(x)) - c.
More precisely, JuMP seems to only pass minimzation problems to solvers (at least for SDP), so the objective should be max (f(x) + c) = - min (-f(x)-c) = (-min -f(x) ) + c, while it seems to be (-min -f(x) + c) = (-min -f(x) ) - c.
I am working with
JuMP 0.18.2
MathProgBase 0.7.2
The text was updated successfully, but these errors were encountered:
Hi there,
I'm having some trouble when solving maximisation problems with a non null constant with JuMP; here is a small example, along with the output.
Which gives the following output:
When solving maximization problems max (f(x) + c), it seems value returned by
getobjectivevalue
is max(f(x)) - c.More precisely, JuMP seems to only pass minimzation problems to solvers (at least for SDP), so the objective should be max (f(x) + c) = - min (-f(x)-c) = (-min -f(x) ) + c, while it seems to be (-min -f(x) + c) = (-min -f(x) ) - c.
I am working with
The text was updated successfully, but these errors were encountered: