Closed jnettels closed 3 years ago
Currently, it is not possible to send command line options to the solver. self.om.solve() offers the parameter cmdline_options, but it is not used. This PR exposes the cmdline_options to the user, to be used e.g. in the following way:
self.om.solve()
cmdline_options
settings = dict(solver='cbc', solve_kw={ 'tee': True, # print solver output }, solver_cmdline_options={ # 'allowableGap': 1e-5, # default: 1e-10 'ratioGap': 1e-2, # default: 0 'seconds': 60*10, # default: 1e+100 }, ) network.optimize_investment(invest_options=invest_opt, **settings)
Closes #55
Currently, it is not possible to send command line options to the solver.
self.om.solve()
offers the parametercmdline_options
, but it is not used. This PR exposes thecmdline_options
to the user, to be used e.g. in the following way:Closes #55