Commit f4f8bcb4 authored by Juha Kiviluoma's avatar Juha Kiviluoma
Browse files

For results, vOM costs were calculated only from outputs, but they can also be...

For results, vOM costs were calculated only from outputs, but they can also be in inputs nowadays. Corrected.
parent c1d20a60
......@@ -154,15 +154,15 @@ loop(m,
// Total realized gn operating costs
r_gnRealizedOperatingCost(gn(grid, node), ft_realizedNoReset(f, t))$[ord(t) > mSettings(m, 't_start') + mSettings(m, 't_initializationPeriod')]
= sum(gnu_output(grid, node, unit),
= sum(gnu(grid, node, unit),
// VOM costs
+ r_gnuVOMCost(grid, node, unit, f, t)
// Divide fuel and startup costs based on output capacities
+ [
+ p_gnu(grid, node, unit, 'maxGen')${p_unit(unit, 'outputCapacityTotal')}
+ p_gnu(grid, node, unit, 'unitSizeGen')${not p_unit(unit, 'outputCapacityTotal')}
+ p_gnu(grid, node, unit, 'capacity')${p_unit(unit, 'outputCapacityTotal')}
+ p_gnu(grid, node, unit, 'unitSize')${not p_unit(unit, 'outputCapacityTotal')}
]
/ [
+ p_unit(unit, 'outputCapacityTotal')${p_unit(unit, 'outputCapacityTotal') > 0}
......
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