Commit c21dccd6 authored by ran li's avatar ran li Committed by ran li
Browse files

Testing

parent d7570322
......@@ -137,7 +137,7 @@ r_resDemandMarginal
r_nuTotalReserve
r_nuTotalReserveShare
r_nTotalReserve
r_resDemandLargestInfeed
* --- Investment Result Symbols -----------------------------------------------
// Interesting investment results
......
......@@ -139,7 +139,7 @@ Parameters
r_nuTotalReserve(restype, up_down, node, unit) "Total nu reserve provision over the simulation (MW*h)"
r_nuTotalReserveShare(restype, up_down, node, unit) "Total nu/n reserve provision share over the simulation"
r_nTotalReserve(restype, up_down, node) "Total reserve provisions in nodes over the simulation (MW*h)"
r_resDemandLargestInfeed(grid, f, t, restype, up_down, node) "Reserve Demand from the loss of largest infeed unit"
* --- Investment Results ------------------------------------------------------
// Interesting investment results
......@@ -176,7 +176,7 @@ Option clear = r_shutdown;
Option clear = r_invest;
Option clear = r_investTransfer;
Option clear = r_qResDemand;
Option clear = r_resDemandLargestInfeed;
* =============================================================================
* --- Diagnostics Results Arrays ----------------------------------------------
* =============================================================================
......
......@@ -95,6 +95,10 @@ loop((restypeDirectionNode(restype, up_down, node), sft(s, f, t))
r_qResMissing(restype, up_down, node, f+df_reserves(node, restype, f, t), t)
= vq_resMissing.l(restype, up_down, node, s, f+df_reserves(node, restype, f, t), t);
// Reserve requirement due to N-1 Reserve constraint
r_resDemandLargestInfeed(grid, f+df_reserves(node, restype, f, t), t, restype, up_down, node)
= smax(unit_fail(unit_), v_gen.l(grid, node, unit_, s, f, t) * p_nuReserves(node, unit_, restype, 'portion_of_infeed_to_reserve'));
); // END loop(restypeDirectionNode, sft)
* --- Interesting results -----------------------------------------------------
......
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