What's Changed
- Added support for HiGHS solver π
- Migrate to PyOptInterface doubling performance π (see PR)
- Fix deprecation warnings; support
div
andrsub
operations; supportrange()
by @staadecker in #76 - Improve documentation by @staadecker in #82
- Support
.minimize
or.maximize
by @staadecker in #85 - Add quadratic constraints π by @dngvlz in #87
New Contributors
Breaking changes β οΈ
Function | Change | Use instead |
---|---|---|
Model.to_file(file_path, use_var_names) |
Renamed with changes | Model.write(file_path) . Note: use_var_names should now be set when initializing the model. |
Model.solve(solver, directory, use_var_names, log_fn, warmstart_fn, basis_fn, solution_file, log_to_console) |
Renamed with changes | Model.optimize() . Note: parameters should be set through other means (e.g. model.attr.Silent = True instead of log_to_console=False ) |
Expression.value |
Renamed | Expression.evaluate() |
Config.print_float_precision |
Renamed | Config.float_to_str_precision |
Constraint.slack |
Renamed | Constraint.attr.slack (Gurobi only) |
Variable.RC |
Renamed | Variable.attr.RC (Gurobi only) |
Constraint.relax(...) |
Changed behavior | Same as before except that it must be called before adding a constraint to the model. |
Model.params (Gurobi only) |
Changed behavior | Same as before except that if the parameter needs to be set during environment creation, instead use: Model(solver_env={"server_name":"bla"}) |
.to_str(...) and .to_str_table(...) |
Changed signature | Parameters moved to pf.Config |
Also:
β οΈ Gurobi must be installed through their website (not via pip) as we now use the Gurobi C API (not the Python API). Here is a way to automate this in a build environment.β οΈ - Support for Python 3.8 is dropped.
Full Changelog: v0.0.11...v0.1.0