JuMP & NLopt: Optimizer not defined

I’m trying to run the JuMP example code from the NLopt.jl page. I found someone who had a similar issue which was fixed through a restart. Unfortunately, it didn’t work in my case. Julia, JuMP, and NLopt are up to date and I’m using VS Code.

ERROR: LoadError: UndefVarError: Optimizer not defined
 [1] getproperty(::Module, ::Symbol) at .\Base.jl:26



as far as i understand, NLopt hasn’t updated his JuMP.jl support. EDIT: it seems that there is some JuMP.jl support (NLopt.jl 0.6.1), but the readme probably isnt updated, can you try updating NLopt.jl?

Welp. Now I’m getting:

ERROR: KeyError: key "ASL_jll" not found

I’ll have to figure that out first.

(@v1.5) pkg> add ASL_jll
  Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ASL_jll [ae81ac8f]:
 ASL_jll [ae81ac8f] log:
 ├─ASL_jll [ae81ac8f] has no known versions!
 └─restricted to versions * by an explicit requirement — no versions left

Ipopt is giving me those ASL_jll errors. Not sure why anyway…

The normal update function for Pkg won’t update beyond 0.6.0

can you post what is your output on ]st ?