You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,19 @@ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOp
61
61
- `Effect`: Added `minimum_over_periods` and `maximum_over_periods` for weighted sum constraints across all periods (complements existing per-period `minimum_total`/`maximum_total`)
62
62
- `Flow`: Added `flow_hours_max_over_periods` and `flow_hours_min_over_periods` for weighted sum constraints across all periods
63
63
64
+
**Important**: Constraints with the `_over_periods` suffix compute weighted sums across all periods using the weights specified in `FlowSystem.weights` or `Effect.weights`. Per-period constraints (without the suffix) apply separately to each individual period.
65
+
66
+
**Example**:
67
+
```python
68
+
# Per-period constraint: limits apply to EACH period individually
69
+
# With periods=[2020, 2030, 2040], this creates 3 separate constraints
70
+
effect = fx.Effect('costs', maximum_total=1000) # ≤1000 in 2020 AND ≤1000 in 2030 AND ≤1000 in 2040
71
+
72
+
# Over-periods constraint: limits apply to WEIGHTED SUM across ALL periods
73
+
# With periods=[2020, 2030, 2040] and weights=[0.5, 0.3, 0.2], this creates 1 constraint
All deprecated parameter names continue to work with deprecation warnings for backward compatibility. Additional property aliases have been added internally to handle various naming variations that may have been used.
97
+
All deprecated parameter names continue to work with deprecation warnings for backward compatibility. **Deprecated names will be removed in version 4.0.0.** Please update your code to use the new parameter names. Additional property aliases have been added internally to handle various naming variations that may have been used.
98
+
99
+
**Migration**: Simply rename parameters by removing `_total` from the middle:
0 commit comments