renamed capacity to max_power

This commit is contained in:
Jun He
2023-05-05 14:48:15 -04:00
parent 41790db448
commit 33f8ec26d5
5 changed files with 7 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ function generate_initial_conditions!(
# Constraint: Maximum power
@constraint(mip, max_power[g in G], p[g] <= g.max_power[t] * x[g])
@constraint(mip, pu_max_power[k in PU], pu[k] <= k.capacity[t])
@constraint(mip, pu_max_power[k in PU], pu[k] <= k.max_power[t])
# Constraint: Production equals demand
@constraint(