Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Small problem in the Quick Start tutorial #45

Open
pjssilva opened this issue Dec 6, 2022 · 2 comments
Open

Small problem in the Quick Start tutorial #45

pjssilva opened this issue Dec 6, 2022 · 2 comments

Comments

@pjssilva
Copy link

pjssilva commented Dec 6, 2022

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)
)
@odow
Copy link
Collaborator

odow commented Dec 6, 2022

Try MOI.RawOptimizerAttribute("print_level")

@pjssilva
Copy link
Author

pjssilva commented Dec 6, 2022

Try MOI.RawOptimizerAttribute("print_level")

It also works.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants