Releases: PyPSA/linopy
Releases · PyPSA/linopy
v0.1.2
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
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
What's Changed
- Composition design review by @FabianHofmann in #63
- fix minor typos in doc strings by @lumbric in #70
- Refactor LinearExpression and Constraint using composition by @coroa in #55
- Support writing problem to MPS file by @FabianHofmann in #71
- Modularize tests by @FabianHofmann in #72
- fully support integer variables by @FabianHofmann in #73
- Add constants module for static parameter by @FabianHofmann in #74
- A set of constant status and termination conditions by @FabianHofmann in #76
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #75
- Automatic summation of repeated variables by @FabianHofmann in #77
- Support diff operation for variables and expressions by @FabianHofmann in #79
- Filter out very small coefficients by @FabianHofmann in #80
- Improve representation of infeasible constraints by @FabianHofmann in #81
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #82
- Improve representation by @FabianHofmann in #84
- supress disturbing output when cbc/glpk are no available_solvers by @jankaeh in #87
- Solver options printout by @FabianHofmann in #86
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #83
- Improve repr follow up by @FabianHofmann in #88
New Contributors
Full Changelog: v0.0.15...v0.1
v0.0.15
What's Changed
- doc: minor fix in API reference by @lumbric in #49
- pips: add combined row labels for submatrices beside each other by @FabianHofmann in #50
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #52
- fix operands / specify error messages by @FabianHofmann in #58
- Replace numpy isscalar check by pandas isscalar check by @FabianHofmann in #65
- Allow sum() function over scalar objects by @FabianHofmann in #64
- expression / constraints: allow returning None type when creating from rule by @FabianHofmann in #66
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #56
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #67
- Define field as default_factory to specify mutable default value by @danuriegas in #68
- pips-io: print out rows by @FabianHofmann in #69
New Contributors
- @danuriegas made their first contribution in #68
Full Changelog: v0.0.14...v0.0.15
v0.0.14
v0.0.13
New Features
- The function
LinearExpression.from_tuples
now allowsScalarVariable
as input. - For compatibility reasons, the function
groupby_sum
now allowspandas.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
New Features
- A new module was created to export basic mathematical quantities such as
lb
,ub
,c
vectors and theA
matrix. Use it with thematrices
accessor inlinopy.Model
. - For
Constraints`` and
Variables`` aipython
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 typeScalarVariable
,ScalarLinearExpression
andScalarConstraint
. - Terms with zero coefficient are now filtered out before writing to file to avoid unnecessary overhead.
- The function
sanitize_zeros
was added toConstraints
. Use this to filter out zero coefficient terms.
Bug Fixes
- Solving with
gurobi
andio_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.