Skip to content

v0.1.0

Latest
Compare
Choose a tag to compare
@staadecker staadecker released this 27 Dec 18:04
3c967c9

What's Changed

  • Added support for HiGHS solver πŸŽ‰
  • Migrate to PyOptInterface doubling performance πŸŽ‰ (see PR)
  • Fix deprecation warnings; support div and rsub operations; support range() 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

  • @dngvlz made their first contribution in #87 πŸŽ‰

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