blue-marble / gridpath

A versatile simulation and optimization platform for power-system planning and operations.
https://www.gridpath.io
Apache License 2.0
94 stars 36 forks source link

Uninitialised variable prev_tmp_curtailment in gen_hydro (#1135) #1138

Closed sriharid closed 3 months ago

sriharid commented 3 months ago

The variable prev_tmp_curtailment is used without initialising when the timepoint is not the first timepoint of the horizon and the entire project capacity cannot be ramped in one timepoint.

The issue exists on the tip of develop, hence the fix needs to be ported there as well.

Closes #1135