Skip to content

v2.0.0

Choose a tag to compare

@jonathanberthias jonathanberthias released this 23 Aug 21:41
· 96 commits to main since this release
946d535

New name!

The library has been renamed to cvxpy-translation! This was to reflect that we are now able to translate problems into SCIP models in addition to Gurobi models.

New interface: SCIP

Problems can be translated to pyscipopt.Model instances. The feature set is on par with Gurobi.

Breaking changes

  • The top-level functions solve, build_model and register_translation_solver now require a solver argument that must be the solver name from CVXPY. The previous functions for Gurobi are still available by importing from cvxpy_translation.gurobi.
  • Exceptions are now split between general exceptions defined in the top-level cvxpy_translation, and solver specific exceptions available from the solver submodules, cvxpy_translation.gurobi and cvxpy_translation.scip.
  • Unhandled attributes set on Variable and Parameter will now raise an error instead of being silently ignored (#185, #190)
  • Support for EOL Python 3.8 has been dropped (#179).

New features

  • Support variable bounds (#184)
  • Support CVXPY 1.7 (#165)
  • Add support for cp.conj which is used by cp.quad_form in CVXPY 1.7 (#165)

Bug fixes

  • Scalar quadratic forms were incorrectly handled in CVXPY versions before 1.4.0, this now works as expected (#146)
  • An unnecessary variable was generated when parameters appeared in a cp.reshape expression (#182)

What's Changed

Full Changelog: v1.2.0...v2.0.0