|
|
|
@ -11,8 +11,11 @@ function _add_profiled_unit!(
|
|
|
|
|
net_injection = _init(model, :expr_net_injection)
|
|
|
|
|
for t in 1:model[:instance].time
|
|
|
|
|
# Decision variable
|
|
|
|
|
punits[sc.name, pu.name, t] =
|
|
|
|
|
@variable(model, lower_bound = pu.min_power[t], upper_bound = pu.capacity[t])
|
|
|
|
|
punits[sc.name, pu.name, t] = @variable(
|
|
|
|
|
model,
|
|
|
|
|
lower_bound = pu.min_power[t],
|
|
|
|
|
upper_bound = pu.capacity[t]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Objective function terms
|
|
|
|
|
add_to_expression!(
|
|
|
|
|