mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
Reformatted code
This commit is contained in:
@@ -11,8 +11,11 @@ function _add_profiled_unit!(
|
|||||||
net_injection = _init(model, :expr_net_injection)
|
net_injection = _init(model, :expr_net_injection)
|
||||||
for t in 1:model[:instance].time
|
for t in 1:model[:instance].time
|
||||||
# Decision variable
|
# Decision variable
|
||||||
punits[sc.name, pu.name, t] =
|
punits[sc.name, pu.name, t] = @variable(
|
||||||
@variable(model, lower_bound = pu.min_power[t], upper_bound = pu.capacity[t])
|
model,
|
||||||
|
lower_bound = pu.min_power[t],
|
||||||
|
upper_bound = pu.capacity[t]
|
||||||
|
)
|
||||||
|
|
||||||
# Objective function terms
|
# Objective function terms
|
||||||
add_to_expression!(
|
add_to_expression!(
|
||||||
|
|||||||
Reference in New Issue
Block a user