coin-or / Bonmin

Basic Open-source Nonlinear Mixed INteger programming
https://coin-or.github.io/Bonmin
Eclipse Public License 1.0
118 stars 22 forks source link

Assigning HSL solver for IPOPT within Bonmin #8

Closed DanielGebbran closed 1 year ago

DanielGebbran commented 4 years ago

Hello,

I am using Bonmin through Pyomo/Python, on an Windows machine (installed via binaries). I could change the default solver successfully for Bonmin but IPOPT is still using MUMPS as a linear solver.

I've tried including a bonmin.opt file within the folders (Bonmin's executable or the .py file) but it is not interpreted by Pyomo.

For assigning the linear solver to Bonmin, I use the command line below. For assigning the linear solver to IPOPT within Bonmin, I tried many different commands but could not find any that worked.

Do you have any suggestions?

Thanks in advance.

Best regards,, Daniel Gebbran

DanielGebbran commented 4 years ago

solver.options['linear_solver'] = 'ma27

svigerske commented 1 year ago

Having linear_solver ma27 in the Bonmin options should work (works for me).