Skip to content

Releases: PyPSA/linopy

v0.1.2

30 Jan 18:51
Compare
Choose a tag to compare

What's Changed

  • Fix representation for single constraints without coordinates by @FabianHofmann in #92

Full Changelog: v0.1.1...v0.1.2

v0.1.1

16 Jan 13:07
Compare
Choose a tag to compare

What's Changed

  • Make expression and constraint display more stable
  • Add global options setter @FabianHofmann in #90
  • Override coordinates in case the dimension of joined expressions/variables are exactly the same @FabianHofmann in #90
  • constraint display: fix case of all-masked constraints by @FabianHofmann in #91

Full Changelog: v0.1...v0.1.1

v0.1

12 Jan 15:05
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.15...v0.1

v0.0.15

11 Dec 21:57
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.14...v0.0.15

v0.0.14

13 Oct 14:20
Compare
Choose a tag to compare

New Features

  • Linopy now uses highspy as an interface to the HiGHS solver. This enables a direct and fast communication without needing to write an intermediate LP file.

v0.0.13

13 Oct 14:19
Compare
Choose a tag to compare

New Features

  • The function LinearExpression.from_tuples now allows ScalarVariable as input.
  • For compatibility reasons, the function groupby_sum now allows pandas.Series as input.

Bug Fixes

  • Filtering out zeros is now an optional feature in the solve function. The previous behavior of filtering just before the LP file writing, lead to unexpected errors for constraints with only zero terms.

v0.0.12

11 Oct 08:20
Compare
Choose a tag to compare

New Features

  • A new module was created to export basic mathematical quantities such as lb, ub, c vectors and the A matrix. Use it with the matrices accessor in linopy.Model.
  • For Constraints`` and Variables`` a ipython autocompletion function for getting items was added.
  • Inplace updates for constraints are now more flexible.
  • AnonymousConstraint can now built from comparison operations of variables with constants, e.g. x >= 5.
  • The Model.add_constraints function now support input of type ScalarVariable, ScalarLinearExpression and ScalarConstraint.
  • Terms with zero coefficient are now filtered out before writing to file to avoid unnecessary overhead.
  • The function sanitize_zeros was added to Constraints. Use this to filter out zero coefficient terms.

Bug Fixes

  • Solving with gurobi and io_api="direct" lead to wrong objective assignment if the objective contained non-unique variables. This is fixed in this version.

v0.0.11

23 Sep 07:57
Compare
Choose a tag to compare

This release introduces new features related to expression creation and comes with an improved documentation.
Due to some indexing bugs in the latest xarray package v2022.06., the xarray depedency was fixed to maximally v2022.03.

v0.0.10

11 Jul 22:29
Compare
Choose a tag to compare

See release notes for details.