Set up multi-formulation architecture; start merging akazachk's code

This commit is contained in:
2021-05-30 07:14:28 -05:00
parent 483c793d49
commit bf6d19343e
15 changed files with 486 additions and 114 deletions

View File

@@ -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] =