Reformatted code

This commit is contained in:
Jun He
2023-04-06 16:21:58 -04:00
parent 896ef0f3e3
commit bea42d174c

View File

@@ -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!(