hypatia.Model.run

Model.run(solver, verbosity=True, force_rewrite=False, **kwargs)

Run the model by passing the solver, verbosity and force_rewrite.

Note

The passed solver must be in the installed solvers package of the DSL (CVXPY).

Parameters:
  • solver (str) – Solver indicates for kind of solver to be used.

  • verbosity (Boolean) – Verbosity overrides the default of hiding solver output

  • force_rewrite (boolean) – If the force_rewrite is True, any existing results will be overwritten and the previous results will be saved in a back-up file.

  • kwargs (Optional) – solver specific options. for more information refer to cvxpy documentation