Skip to content

Commit d2d9375

Browse files
authored
Add parameter function node_state_lower_limit to the indices function of the minimum node state (#1210)
1 parent 465148b commit d2d9375

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/constraints/constraint_min_node_state.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ v^{node\_state}_{(n, s, t)} \geq \max(p^{node\_state\_cap}_{(n, s, t)} \cdot p^{
2828
Please note that the limit represents the maximum of the two terms.
2929
The first term is the product of the storage capacity and the minimum factor, which is a per-unit value of the storage capacity.
3030
The second term is the minimum state, given in absolute values.
31+
The constraint is only generated if either one of the minimum state parameters is greater than zero and there are candidate storage units.
3132
3233
See also
3334
[node\_state\_cap](@ref),
@@ -83,6 +84,6 @@ function constraint_min_node_state_indices(m::Model)
8384
storages_invested_available_indices(m; node=ng, t=t_in_t(m; t_short=t)),
8485
)
8586
)
86-
)
87+
) if realize(node_state_lower_limit(m; node=ng, stochastic_scenario=path, t=t, _strict=false)) > 0
8788
)
8889
end

0 commit comments

Comments
 (0)