StochasticPrograms.jl icon indicating copy to clipboard operation
StochasticPrograms.jl copied to clipboard

Small problem in the Quick Start tutorial

Open pjssilva opened this issue 2 years ago • 2 comments

In the quick start tutorial, when associating the model with the Progressive Hedging algorithm, it appears the following code

set_optimizer_attribute(sp_progressivehedging, SubProblemOptimizer(), Ipopt.Optimizer)
set_suboptimizer_attribute(sp_progressivehedging, MOI.RawParameter("print_level"), 0) # Silence Ipopt

It seems like MOI does not suppoer RawParamter anymore. I could make the algorithm run by changing the code to

set_optimizer_attribute(
    sp_progressivehedging, SubProblemOptimizer(), 
    MOI.OptimizerWithAttributes(Ipopt.Optimizer, MOI.Silent() => true)
)

pjssilva avatar Dec 06 '22 21:12 pjssilva

Try MOI.RawOptimizerAttribute("print_level")

odow avatar Dec 06 '22 21:12 odow

Try MOI.RawOptimizerAttribute("print_level")

It also works.

pjssilva avatar Dec 06 '22 21:12 pjssilva