Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5b01def
feat: add piecewise linear constraint API
FBumann Jan 25, 2026
ad61632
Fix lambda coords
FBumann Jan 25, 2026
c561760
rename to add_piecewise_constraints
FBumann Jan 25, 2026
4472548
rename to add_piecewise_constraints
FBumann Jan 25, 2026
32b10b0
fix types (mypy)
FBumann Jan 25, 2026
302d92b
linopy/constants.py — Added PWL_DELTA_SUFFIX = "_delta" and PWL_FIL…
FBumann Jan 30, 2026
6e76739
1. Step sizes: replaced manual loop + xr.concat with breakpoints.di…
FBumann Jan 30, 2026
36112e2
rewrite filling order constraint
FBumann Jan 30, 2026
ec4538b
Fix monotonicity check
FBumann Jan 30, 2026
e365258
Summary
FBumann Feb 9, 2026
5598e89
docs: add piecewise linear constraints documentation
FBumann Feb 9, 2026
0b41d3a
test: improve disjunctive piecewise linear test coverage
FBumann Feb 9, 2026
e4f4ee6
docs: Add notebook to showcase piecewise linear constraint
FBumann Feb 9, 2026
96eef89
Add cross reference to notebook
FBumann Feb 9, 2026
7c539e7
Improve notebook
FBumann Feb 9, 2026
3f0fbaa
docs: add release notes and cross-reference for PWL constraints
FBumann Feb 9, 2026
fe72e1a
Merge remote-tracking branch 'origin/master' into feat/add-piecewise-…
FBumann Feb 9, 2026
a5a5a54
fix mypy issue in test
FBumann Feb 9, 2026
d7f5fe8
Improve docs about incremental
FBumann Feb 10, 2026
4c7a957
Merge branch 'master' into feat/add-piecewise-variants
FabianHofmann Feb 19, 2026
8b9d55d
refactor and add tests
FabianHofmann Feb 20, 2026
cbc2b88
fix: reject non-trailing NaN in incremental piecewise formulation
FabianHofmann Feb 20, 2026
841dcab
further refactor
FabianHofmann Feb 20, 2026
103cf69
extract piecewise linear logic into linopy/piecewise.py
FabianHofmann Feb 20, 2026
f629c2d
Merge branch 'master' into feat/add-piecewise-variants
FabianHofmann Feb 20, 2026
25eaefb
feat: allow broadcasted mask
FabianHofmann Feb 20, 2026
c201a6a
fix merge conflict in release notes
FabianHofmann Feb 20, 2026
c4f831c
refactor: remove link_dim from piecewise constraint API
FabianHofmann Feb 23, 2026
d403071
refactor: use LinExprLike type alias and consolidate piecewise valida…
FabianHofmann Feb 23, 2026
8b4b937
fix: resolve mypy errors in piecewise module
FabianHofmann Feb 23, 2026
2465f53
update release notes [skip ci]
FabianHofmann Feb 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Creating a model
model.Model.add_variables
model.Model.add_constraints
model.Model.add_objective
model.Model.add_piecewise_constraints
model.Model.add_disjunctive_piecewise_constraints
piecewise.breakpoints
model.Model.linexpr
model.Model.remove_constraints

Expand Down
2 changes: 2 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ This package is published under MIT license.
creating-expressions
creating-constraints
sos-constraints
piecewise-linear-constraints
piecewise-linear-constraints-tutorial
manipulating-models
testing-framework
transport-tutorial
Expand Down
3 changes: 3 additions & 0 deletions doc/piecewise-linear-constraints-tutorial.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../examples/piecewise-linear-constraints.ipynb"
}
Loading