Formulation: If plant is closed, storage cannot be used

This commit is contained in:
2023-03-08 09:44:08 -06:00
parent 69f205be77
commit f5a92358d7

View File

@@ -237,6 +237,12 @@ function create_process_node_constraints!(model::JuMP.Model)
model[:capacity][n, t] <= n.location.sizes[2].capacity * model[:is_open][n, t]
)
# If plant is closed, storage cannot be used
@constraint(
model,
model[:store][n, t] <= n.location.storage_limit * model[:is_open][n, t]
)
# If plant is open, capacity is greater than base
@constraint(
model,