Dear all,
I am with code:
using Ipopt
model = Model(with_optimizer(Ipopt.Optimizer)) @variable(model, x, start = 500) @variable(model, y, start = 500) @NLobjective(model, Min, (1 - x)^2 + 100 * (y - x^2)^2)
optimize!(model)
println("x = ", value(x), " y = ", value(y))
an I want to give a maximum CPU time to solver Ipopt and a limited number of iterations. How can I do this? Where can I set the parameters in Ipopt? Anyone could help me please?
Dear,
How can I get the solve time next the optimization?
I have used const MOI = JuMP.MathOptInterface with solver Ipopt and tried
MOI.get(model, MOI.SolveTime()) and gives the error: ArgumentError: ModelLike of type Ipopt.Optimizer does not support accessing the attribute MathOptInterface.SolveTime()
and
getsolvetime(modelo) and give UndefVarError: getsolvetime not defined
I believe that there is no way to get that information because IPOPT does not export it. What we did in NLPModelsIpopt.jl is to run IPOPT, capture the output, and then parse the result.