Commit 86f7dbd7 authored by Tomi J. Lindroos's avatar Tomi J. Lindroos
Browse files

Adding new result tables: r_balanceMarginalAverage,...

Adding new result tables: r_balanceMarginalAverage, r_resDemandMarginalAverage, r_gnTotalReserve, r_gnnTotalResTransferRightward, r_gnnTotalResTransferLeftward
parent b88221b9
......@@ -83,6 +83,7 @@ r_spill
// Interesting node related results
r_balanceMarginal
r_balanceMarginalAverage
r_gnnTotalTransfer
r_gnTotalSpill
r_gnTotalSpillShare
......@@ -166,8 +167,12 @@ r_resTransferLeftward
// Interesting reserve results
r_resDemandMarginal
r_resDemandMarginalAverage
r_gnuTotalReserve
r_gnuTotalReserveShare
r_gnTotalReserve
r_gnnTotalResTransferRightward
r_gnnTotalResTransferLeftward
r_groupTotalReserve
r_resDemandLargestInfeedUnit
......
......@@ -89,6 +89,7 @@ Parameters
// Interesting node related results
r_balanceMarginal(grid, node, f, t) "Marginal values of the q_balance equation"
r_balanceMarginalAverage(grid, node) "Annual average of marginal values of the q_balance equation"
r_gnnTotalTransfer(grid, node, node) "Total amount of energy transferred between gnn over the simulation (MWh)"
r_gnTotalSpill(grid, node) "Total spilled energy from gn over the simulation (MWh)"
r_gnTotalSpillShare(grid, node) "Total spilled energy gn/g share"
......@@ -175,9 +176,13 @@ Parameters
// Interesting reserve results
r_resDemandMarginal(restype, up_down, group, f, t) "Marginal values of the q_resDemand equation"
r_resDemandMarginalAverage(restype, up_down, group) "Annual average of marginal values of the q_resDemand equation"
r_gnuTotalReserve(restype, up_down, grid, node, unit) "Total gnu reserve provision over the simulation (MW*h)"
r_gnuTotalReserveShare(restype, up_down, grid, node, unit) "Total gnu/group reserve provision share over the simulation"
r_gnTotalReserve(restype, up_down, grid, node) "Total gn reserve provision over the simulation (MW*h)"
r_groupTotalReserve(restype, up_down, group) "Total reserve provisions in groups over the simulation (MW*h)"
r_gnnTotalResTransferRightward(restype, up_down, grid, node, node) "Total electricity transmission capacity from the first node to the second node reserved for providing reserves (MW*h)"
r_gnnTotalResTransferLeftward(restype, up_down, grid, node, node) "Total electricity transmission capacity from the second node to the first node reserved for providing reserves (MW*h)"
r_resDemandLargestInfeedUnit(restype, up_down, group, f, t) "Reserve Demand from the loss of largest infeed unit"
* --- Investment Results ------------------------------------------------------
......
......@@ -445,6 +445,29 @@ loop(m,
* sum(msft_realizedNoReset(m, s, f, t), p_msProbability(m, s) * p_msWeight(m, s))
); // END sum(ft_realizedNoReset)
// Total reserve provisions over the simulation
r_gnTotalReserve(restype, up_down, grid, node)
= sum(unit, r_gnuTotalReserve(restype, up_down, grid, node, unit))
;
* --- Total Reserve Transfers -------------------------------------------------
// Total reserve transfer leftward over the simulation
r_gnnTotalResTransferLeftward(restype, up_down, grid, node, to_node)
= sum(ft_realizedNoReset(f, startp(t)),
+ r_resTransferLeftward(restype, up_down, grid, node, to_node, f, t)
* p_stepLengthNoReset(m, f, t)
* sum(msft_realizedNoReset(m, s, f, t), p_msProbability(m, s) * p_msWeight(m, s))
); // END sum(ft_realizedNoReset)
// Total reserve transfer rightward over the simulation
r_gnnTotalResTransferRightward(restype, up_down, grid, node, to_node)
= sum(ft_realizedNoReset(f, startp(t)),
+ r_resTransferRightward(restype, up_down, grid, node, to_node, f, t)
* p_stepLengthNoReset(m, f, t)
* sum(msft_realizedNoReset(m, s, f, t), p_msProbability(m, s) * p_msWeight(m, s))
); // END sum(ft_realizedNoReset)
* --- Total Transfer and Spill ------------------------------------------------
// Total transfer of energy between nodes
......@@ -477,6 +500,26 @@ r_balanceMarginal(gn(grid, node), ft_realizedNoReset(f, startp(t)))
r_resDemandMarginal(restypeDirectionGroup(restype, up_down, group), ft_realizedNoReset(f, startp(t)))
= 1e6 * r_resDemandMarginal(restype, up_down, group, f, t);
* --- Annual averages of marginal values --------------------------------------
r_balanceMarginalAverage(grid, node)
= sum(ft_realizedNoReset(f, startp(t)),
+ r_balanceMarginal(grid, node, f, t)
// * p_stepLengthNoReset(m, f, t) // not including steplength due to division by number of timesteps
* sum(msft_realizedNoReset(m, s, f, t), p_msProbability(m, s) * p_msWeight(m, s))
) // END sum(ft_realizedNoReset)
/ sum(t, t_realized(t)*1) // divided by number of realized time steps
;
r_resDemandMarginalAverage(restype, up_down, group)
= sum(ft_realizedNoReset(f, startp(t)),
+ r_resDemandMarginal(restype, up_down, group, f, t)
// * p_stepLengthNoReset(m, f, t) // not including steplength due to division by number of timesteps
* sum(msft_realizedNoReset(m, s, f, t), p_msProbability(m, s) * p_msWeight(m, s))
) // END sum(ft_realizedNoReset)
/ sum(t, t_realized(t)*1) // divided by number of realized time steps
;
* --- Total Generation Results ------------------------------------------------
// Total generation in gn
......
Markdown is supported
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