StructJuMP / StructJuMP.jl

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

Error with the sample file #84

Closed davide-f closed 1 year ago

davide-f commented 3 years ago

Dear Developers;

there is some problem in the example because errors arise due to type mismatch. Workarounds are possible, but I guess that this issue may be generalized. I attach the output on my platform (Julia 1.6.1, JuMP 0.21.8)

image

The issue is related to the fact that StructuredModel is a AbstractModel, whereas the _init_NLP requires a JuMP.Model. Similar issues arise with NPobjective and so on. May StructuredModel dispatch over the same functions (basically with copy and paste from JuMP), or should we refer this issue to JuMP? Maybe JuMP developers explicitly opted for the above to avoid unexpected behaviour of the software, or this is unintended.

Regards, Davide

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days