StructJuMP / StructJuMP.jl

A block-structured optimization framework for JuMP
Other
54 stars 19 forks source link

MethodError: no method matching _init_NLP(::StructuredModel) #76

Closed cheesecakeball closed 4 years ago

cheesecakeball commented 4 years ago

I was trying to run the example in README.md. Following error pop up:

MethodError: no method matching _init_NLP(::StructuredModel) Closest candidates are: _init_NLP(!Matched::Model) at ./.julia/packages/JuMP/MsUSY/src/nlp.jl:155

I am new to Julia and JuMP. The version of JuMP is v0.20.1. Can someone help me with this? Thanks!

blegat commented 4 years ago

StructJuMP master does not support nlp yet. You can use JuMP v0.18 and the releasef version of StructJuMP for nlp support

cheesecakeball commented 4 years ago

That worked! Thanks for the quick response!