possible mistake in calculating curtailments
I'm not 100% sure, but I think that currently for units with unitSize
!= 1, the calculation for curtailments might be wrong
in 4b_outputInvariant.gms:102
r_curtailments_gnft(gn(grid, node), ft_realizedNoReset(f,t_startp(t)))
${sum(flow, flowNode(flow, node)) }
= sum(flowUnit(flow, unit),
// + (capacity + investments) * ts_cf for generating units only
+ [p_gnu(grid, node, unit, 'capacity')$gnu_output(grid, node, unit)
+ r_invest_unitCount_u(unit)$gnu_output(grid, node, unit)
]
* ts_cf(flow, node, f ,t)
// - actual generation
- r_gen_gnuft(grid, node, unit, f, t)
); // END sum(flowUnit)
Could this be fixed by multiplication with the unitSize parameter?