Closed etatara closed 3 years ago
Hey @etatara. The set_model
function should still work, and the associated test seems to pass. As you said, you can always create an OptiNode
instead of a JuMP.Model
and use the same macros, but you shouldn't have to re-write your code since your original approach is supposed to be supported. This is definitely a bug. I'll take a look in the next couple days.
Alright @etatara , this should be fixed by PR #40. Keep in mind, It only works if you use set_model
before you call optimize!
. It would be a bit harder to support incremental updates using set_model
, but you can still create the initial model this way and modify the optinodes afterwards.
Hi Jordan,
Thanks for you great work in moving Plasmo forward! I've updated to Plasmo v.0.4 and my existing model that worked fine in 0.3 is throwing errors on the optimize!(graph) call. It seems to be due to using Plasmo.set_model() as I can reproduce this error in the optigraph_4_nodes.jl example,e g. by using this form:
it throws the following error:
Is the Plasmo.set_model() being deprecated, or is there an bug in 0.4? I'd appreciate your suggestion on how to best to update my model to verion 0.4, if that involves simply passing the optinode objects to the JuMP macros I can do that but wanted to avoid re-writing lots of code if there is another way!
Eric