Commit a2bdcf63 authored by Niina Helistö's avatar Niina Helistö
Browse files

Merge branch '#124_commodity_use_limitations' into 'dev'

Updating q_unitEqualityConstraint and q_unitGreaterThanConstraint

See merge request !12
parents 7cc5c950 b5b6dab8
......@@ -1975,8 +1975,16 @@ q_unitEqualityConstraint(s_active(s), eq_constraint, uft(unit, f, t))
=E=
// Constant multiplied by capacity
// Constant multiplied by the number of online sub-units
+ p_unitConstraint(unit, eq_constraint)
* [ // Unit online state
+ 1 // if the unit does not have an online variable
${not uft_online(unit, f, t)}
+ v_online_LP(unit, s, f+df_central(f,t), t)
${uft_onlineLP(unit, f, t)}
+ v_online_MIP(unit, s, f+df_central(f,t), t)
${uft_onlineMIP(unit, f, t)}
]
;
* --- Commodity Use Limitation -----------------------------------------------------
......@@ -1993,8 +2001,16 @@ q_unitGreaterThanConstraint(s_active(s), gt_constraint, uft(unit, f, t))
=G=
// Constant multiplied by capacity
// Constant multiplied by the number of online sub-units
+ p_unitConstraint(unit, gt_constraint)
* [ // Unit online state
+ 1 // if the unit does not have an online variable
${not uft_online(unit, f, t)}
+ v_online_LP(unit, s, f+df_central(f,t), t)
${uft_onlineLP(unit, f, t)}
+ v_online_MIP(unit, s, f+df_central(f,t), t)
${uft_onlineMIP(unit, f, t)}
]
;
* --- Total Transfer Limits ---------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment