Commit 19205f40 authored by Juha Kiviluoma's avatar Juha Kiviluoma
Browse files

Additional output: r_gen_gnUnittype

parent 7052337c
......@@ -86,6 +86,7 @@ Parameters
// Results required for model structure
r_gen(grid, node, unit, f, t) "Energy generation for a unit (MW)"
r_gen_gnUnittype(grid, node, unittype) "Energy generation for each unittype in each node (MWh)"
// Fuel use results
r_fuelUse(node, unit, f, t) "Fuel use of units"
......
......@@ -196,6 +196,15 @@ loop(m,
* sum(msft_realizedNoReset(m, s, f, t), p_msProbability(m, s) * p_msWeight(m, s))
); // END sum(ft_realizedNoReset)
r_gen_gnUnittype(gn(grid, node), unittype)$sum(unit$unitUnittype(unit, unittype), 1)
= sum(gnu(grid,node,unit)$unitUnittype(unit, unittype),
sum(ft_realizedNoReset(f, t)$[ord(t) > mSettings(m, 't_start') + mSettings(m, 't_initializationPeriod')],
+ r_gen(grid, node, unit, 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)
);
// Energy generation by fuels
r_genFuel(gn(grid, node), commodity, ft_realizedNoReset(f, t))$[ sum(gnu_input(grid_, node_, unit)$gnu_output(grid, node, unit), r_gen(grid_, node_, unit, f, t))
and ord(t) > mSettings(m, 't_start') + mSettings(m, 't_initializationPeriod')]
......
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