

Is there a way to print out the value of a subset of my variables at each iteration, when using Ipopt? (increasing print_level gets messy) I assume callbacks is the way to go. Is that correct, or are there easier ways to approach this?
E.g. using JuMP m = Model() @variable(m, x, start = 0.0) @variable(m, y, start = 0.0)
@NLobjective(m, Min, (1x)^2 + 100(yx^2)^2)
solve(m) # Print the value of x at each iteration

You received this message because you are subscribed to the Google Groups "juliaopt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
Visit this group at https://groups.google.com/group/juliaopt.
For more options, visit https://groups.google.com/d/optout.


You should look into Ipopt's info callback, which is not currently exposed through JuMP. Worst case you can hack JuMP to print out a part of the solution vector when JuMP is called by Ipopt for derivative evaluations. On Wednesday, October 19, 2016 at 4:11:12 AM UTC4, Asbjørn Nilsen Riseth wrote: Is there a way to print out the value of a subset of my variables at each iteration, when using Ipopt? (increasing print_level gets messy) I assume callbacks is the way to go. Is that correct, or are there easier ways to approach this?
E.g. using JuMP m = Model() @variable(m, x, start = 0.0) @variable(m, y, start = 0.0)
@NLobjective(m, Min, (1x)^2 + 100(yx^2)^2)
solve(m) # Print the value of x at each iteration

You received this message because you are subscribed to the Google Groups "juliaopt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
Visit this group at https://groups.google.com/group/juliaopt.
For more options, visit https://groups.google.com/d/optout.


Ah, not as straightforward as I hoped. Thanks, I might look into the Ipopt callbacks.
You should look into Ipopt's info callback, which is not currently exposed through JuMP. Worst case you can hack JuMP to print out a part of the solution vector when JuMP is called by Ipopt for derivative evaluations. On Wednesday, October 19, 2016 at 4:11:12 AM UTC4, Asbjørn Nilsen Riseth wrote: Is there a way to print out the value of a subset of my variables at each iteration, when using Ipopt? (increasing print_level gets messy) I assume callbacks is the way to go. Is that correct, or are there easier ways to approach this?
E.g. using JuMP m = Model() @variable(m, x, start = 0.0) @variable(m, y, start = 0.0)
@NLobjective(m, Min, (1x)^2 + 100(yx^2)^2)
solve(m) # Print the value of x at each iteration

You received this message because you are subscribed to a topic in the Google Groups "juliaopt" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/juliaopt/gbM1_9HZOw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
Visit this group at https://groups.google.com/group/juliaopt.
For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups "juliaopt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
Visit this group at https://groups.google.com/group/juliaopt.
For more options, visit https://groups.google.com/d/optout.

