JuMP Ipopt on Julia 0.7

This is a continuation of Julia 0.7 and JuMP: ERROR: cosd is not defined for type Variable - #5 by tkoolen trying to get my JuMP problem converted to Julia 0.7.

How to create an Ipopt problem with JuMP on Julia 0.7? According to http://www.juliaopt.org/meetings/bordeaux2018/lubin.pdf this should be possible with JuMP master.

(v0.7) pkg> st
    Status `~/.julia/environments/v0.7/Project.toml`
  [f83cbe0b] AstroTime v0.0.0 [`~/.julia/dev/AstroTime`]
  [6e4b80f9] BenchmarkTools v0.4.0
  [1537fe66] CALCEPH v0.0.3+ [`~/.julia/dev/CALCEPH`]
  [5ae59095] Colors v0.9.3
  [0c46a032] DifferentialEquations v5.3.0+ #master (https://github.com/JuliaDiffEq/DifferentialEquations.jl.git)
  [7a1cc6ca] FFTW v0.2.4
  [7073ff75] IJulia v1.9.3
  [c601a237] Interact v0.9.0
  [b6b21f68] Ipopt v0.3.0
  [4076af6c] JuMP v0.18.2+ #master (https://github.com/JuliaOpt/JuMP.jl.git)
  [76087f3c] NLopt v0.5.0
  [91a5bcdd] Plots v0.19.3
  [c46f51b8] ProfileView v0.3.0
  [9a3f8284] Random 

I have tried the optimizer keyword but I don’t know what object (no IpoptOptimizer) to pass it and it does not seem it accepts an optimizer keyword.

Maybe this is my problem:

The syntax has changed since the workshop at Nordeaux. See the doc for the new syntax.
You now need to do

model = Model(with_optimizer(IpoptOptimizer))
1 Like

Thank you for your reply. Unfortunately I need to update Ipopt to get IpoptOptimizer. However it cannot be updated without downgrading MathOptInterface from v0.5 to v0.4 which would not meet JuMP#master requirement.

Yes, you need to go back a few commits in JuMP master or wait for Ipopt to be updated.