StochasticPrograms.jl
StochasticPrograms.jl copied to clipboard
Small problem in the Quick Start tutorial
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)
)
Try MOI.RawOptimizerAttribute("print_level")
Try
MOI.RawOptimizerAttribute("print_level")
It also works.