mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 16:28:51 -06:00
Set up multi-formulation architecture; start merging akazachk's code
This commit is contained in:
@@ -6,8 +6,8 @@ function _add_price_sensitive_load!(
|
||||
model::JuMP.Model,
|
||||
ps::PriceSensitiveLoad,
|
||||
)::Nothing
|
||||
loads = _get(model, :loads)
|
||||
net_injection = _get(model, :expr_net_injection)
|
||||
loads = _init(model, :loads)
|
||||
net_injection = _init(model, :expr_net_injection)
|
||||
for t in 1:model[:instance].time
|
||||
# Decision variable
|
||||
loads[ps.name, t] =
|
||||
|
||||
Reference in New Issue
Block a user