Commit 5f999f1a authored by Topi Rasku's avatar Topi Rasku
Browse files

Implementing a bunch of new results arrays for better analysis of results. More to follow...

parent fc0ed1cf
......@@ -36,18 +36,25 @@ r_spill
r_balanceMarginal
r_resDemandMarginal
// Results requiring calculations
r_gnConsumption
r_gnRealizedCost
// Total result arrays
r_totalObj
r_gnuTotalGen
r_gnTotalGen
r_gTotalGen
r_gnTotalGenFuel
r_gTotalGenFuel
r_totalGenFuel
r_gnnTotalTransfer
r_gnTotalSpill
// Results requiring calculations
r_gnConsumption
r_gTotalSpill
r_gnTotalConsumption
r_gnRealizedCost
r_gTotalConsumption
r_gnTotalRealizedCost
r_gTotalRealizedCost
r_totalRealizedCost
// Diagnostics
......
......@@ -38,16 +38,24 @@ Parameters
// Total variable value arrays
r_totalObj "Total operating cost over the simulation (€)" / 0 /
r_gnuTotalGen(grid, node, unit) "Total energy generation/consumption in gnu over the simulation (MWh)"
r_gnTotalGen(grid, node) "Total energy generation/consumption in gn over the simulation (MWh)"
r_gTotalGen(grid) "Total energy generation/consumption in g over the simulation (MWh)"
* r_nuTotalReserve(restype, up_down, node, unit) "Total nu reserve provision over the simulation (MW*h)"
* r_nTotalReserve(restype, up_down, node) "Total reserve provisions in nodes over the simulation (MW*h)"
r_gnTotalGenFuel(grid, node, fuel) "Total energy generation/consumption in gn per fuel over the simulation (MWh)"
r_gTotalGenFuel(grid, fuel) "Total energy generation/consumption in g per fuel over the simulation (MWh)"
r_totalGenFuel(fuel) "Total overall energy generation/consumption per fuel over the simulation (MWh)"
r_gnnTotalTransfer(grid, node, node) "Total amount of energy transferred between gnn over the simulation (MWh)"
r_gnTotalSpill(grid, node) "Total spilled enegy from gn over the simulation (MWh)"
r_gTotalSpill(grid) "Total spilled enegy from gn over the simulation (MWh)"
// Interesting results requiring further calculations
r_gnConsumption(grid, node, f, t) "Consumption of energy in gn for each t (MWh)"
r_gnTotalConsumption(grid, node) "Total consumption of energy in gn over the simulation (MWh)"
r_gTotalConsumption(grid) "Total consumption of energy in g over the simulation (MWh)"
r_gnRealizedCost(grid, node, f, t) "Realized system costs in gn for each t (MEUR)"
r_gnTotalRealizedCost(grid, node) "Total realized system costs in gn over the simulation (MEUR)"
r_gTotalRealizedCost(grid) "Total realized system costs in g over the simulation (MEUR)"
r_totalRealizedCost "Total realized system costs over the simulation (MEUR)" / 0 /
// Old results arrays
......
......@@ -28,9 +28,10 @@ r_gnConsumption(gn(grid, node), ft_realizedNoReset(f, t))
) // END sum(gnu_input)
;
* --- Calculate totals for nodes ----------------------------------------------
* --- Calculate total results -------------------------------------------------
loop(m, // Need to loop over the model dimension, as this file is no longer contained in the modelSolves loop...
// Need to loop over the model dimension, as this file is no longer contained in the modelSolves loop...
loop(m,
// Total generation on each node
r_gnuTotalGen(gnu_output(grid, node, unit))
= sum(ft_realizedNoReset(f, t),
......@@ -57,29 +58,38 @@ loop(m, // Need to loop over the model dimension, as this file is no longer cont
); // END sum(ft_realizedNoReset)
); // END loop(m)
* --- Calculate system totals -------------------------------------------------
// Total generation in gn
r_gnTotalGen(gn(grid, node))
= sum(gnu_output(grid, node, unit), r_gnuTotalGen(grid, node, unit)); // END sum(gnu_output)
// Total generation in g
r_gTotalGen(grid)
= sum(gn(grid, node), r_gnTotalGen(grid, node));
// Total consumption on each gn over the simulation
r_gnTotalConsumption(gn(grid, node))
= sum(ft_realizedNoReset(f, t),
+ r_gnConsumption(grid, node, f ,t)
); // END sum(ft_realizedNoReset)
= sum(ft_realizedNoReset(f, t), r_gnConsumption(grid, node, f ,t));
// Total consumption in each grid over the simulation
r_gTotalConsumption(grid)
= sum(gn(grid, node), r_gnTotalConsumption(grid, node));
// Total fuel consumption in grids over the simulation
r_gTotalGenFuel(grid, fuel)
= sum(gn(grid, node), r_gnTotalGenFuel(grid, node, fuel));
// Total fuel consumption over the simulation
r_totalGenFuel(fuel)
= sum(gn(grid, node),
+ r_gnTotalGenFuel(grid, node, fuel)
); // END sum(gn)
= sum(gn(grid, node), r_gnTotalGenFuel(grid, node, fuel));
// Total realized costs on each gn
r_gnTotalRealizedCost(gn(grid, node))
= sum(ft_realizedNoReset(f, t),
+ r_gnRealizedCost(grid, node, f ,t)
); // END sum(ft_realizedNoReset)
// Total spilled energy in each grid over the simulation
r_gTotalSpill(grid)
= sum(gn(grid, node_spill(node)), r_gnTotalSpill(grid, node));
// Total realized costs on each gn over the simulation
r_gnTotalRealizedCost(gn(grid, node))
= sum(ft_realizedNoReset(f, t), r_gnRealizedCost(grid, node, f ,t));
// Total realized costs on each grid over the simulation
r_gTotalRealizedCost(grid)
= sum(gn(grid, node), r_gnTotalRealizedCost(grid, node));
// Total realized costs over the simulation
r_totalRealizedCost
= sum(gn(grid, node),
+ r_gnTotalRealizedCost(grid, node)
); // END sum(gn)
= sum(gn(grid, node), r_gnTotalRealizedCost(grid, node));
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