Fixing bug in function fix_initial_investments, introduced by #326 . The aim of this PR was to set the initial capacity at stage t using the available capacity in stage t-1 only for generators whose indices are in RET_CAP.
However, fix_initial_investments does not consider only generators, but also transmission lines. So if the index of a given transmission line does not happen to be in RET_CAP, the available capacity of that transmission line at stage t-1 will not be carried over to stage t.
As a result of this bug, GenX believes that it has not built any transmission capacity in previous stages for those lines whose indices are not in RET_CAP, and so in every stage after the first one GenX will build a lot more transmission capacity than it should.
Fixing bug in function
fix_initial_investments
, introduced by #326 . The aim of this PR was to set the initial capacity at stage t using the available capacity in stage t-1 only for generators whose indices are in RET_CAP.However,
fix_initial_investments
does not consider only generators, but also transmission lines. So if the index of a given transmission line does not happen to be in RET_CAP, the available capacity of that transmission line at stage t-1 will not be carried over to stage t.As a result of this bug, GenX believes that it has not built any transmission capacity in previous stages for those lines whose indices are not in RET_CAP, and so in every stage after the first one GenX will build a lot more transmission capacity than it should.