Releases: PyPSA/linopy
Releases · PyPSA/linopy
v0.0.12
New Features
- A new module was created to export basic mathematical quantities such as
lb,ub,cvectors and theAmatrix. Use it with thematricesaccessor inlinopy.Model. - For
Constraints`` andVariables`` aipythonautocompletion 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_constraintsfunction now support input of typeScalarVariable,ScalarLinearExpressionandScalarConstraint. - Terms with zero coefficient are now filtered out before writing to file to avoid unnecessary overhead.
- The function
sanitize_zeroswas added toConstraints. Use this to filter out zero coefficient terms.
Bug Fixes
- Solving with
gurobiandio_api="direct"lead to wrong objective assignment if the objective contained non-unique variables. This is fixed in this version.
v0.0.11
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
See release notes for details.