mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
Reformatted code
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user