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
in this case the scaling is 1 so I assume that the actual, unscaled, objective value is given by ips.obj_val. If the scale is not 1, do I compute the unscaled value as ips.obj_val * ips.obj_scale?
The text was updated successfully, but these errors were encountered:
I guess the additional variables are slack variables? If this is the case, it would be nice to mention this in the docs as well as document in what order standard and slack variables appear 😄
yes, @baggepinnenips.x is the original primal variable + slack variables, which we treat as MadNLP's internal variable. We'll look into whether there could be less confusing naming for this and add a note to the documentation
I think it's not safe to access to the solution in the solver's attributes as we are doing right now. I would suggest adding custom getters to return the solution in a safe way. Something like:
get_primal(ips)
get_dual(ips)
get_slack(ips)
Again, we might duplicate some works with NLPModels. But I am not sure what the status of their API currently is.
I'm a bit confused about how to interpret the result
The example https://madnlp.github.io/MadNLP.jl/dev/quickstart/ contains two variables, but
has length 4. What is the definition of
ips.x
and which variables correspond tox[1:2]
?Another question, how do I interpret the objective value at the solution?
in this case the scaling is 1 so I assume that the actual, unscaled, objective value is given by
ips.obj_val
. If the scale is not 1, do I compute the unscaled value asips.obj_val * ips.obj_scale
?The text was updated successfully, but these errors were encountered: