Formulation: If plant is closed, storage cannot be used

feature/CapEx
Alinson S. Xavier 3 years ago
parent 69f205be77
commit f5a92358d7
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -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,

Loading…
Cancel
Save