martinbiel / StochasticPrograms.jl

Julia package for formulating and analyzing stochastic recourse models.
MIT License
75 stars 25 forks source link

Comptability with JuMP (UndefVarError: @stochastic_model) #3

Closed bandayachul closed 4 years ago

bandayachul commented 4 years ago

This package looks quite good. As discussed on discourse , the StochasticPrograms package does not appear to be updated to the latest version of JuMP.

Running the farmer example given in the documentation gives “UndefVarError: @stochastic_model not defined” error.

Is the package/documentation going to be updated?

Thuener commented 4 years ago

Any news on that?

martinbiel commented 4 years ago

Hey,

I have a local development branch with a redesign that is compatible with the latest version of JuMP+MathOptInterface. It is close to functional but not yet finished, and I cannot now say for sure when it will be (on work leave atm). Until then, the best approach is to rely on environments to ensure that StochasticPrograms is used with the older version of JuMP. I think the “UndefVarError: @stochastic_model not defined” error stems from also having the latest JuMP master installed which seems to confuse the package manager.

martinbiel commented 4 years ago

The latest version now support the new JuMP+MathOptInterface. Closing this.