missing history time indices for units_on variable in constraint_unit_state_transition with representative temporal structure #1018
Labels
help / question
Extra attention wanted, remove label once received
Type: bug
Something isn't working as expected
Zone: model implementation
How the formulation is implemented in code
constraint_unit_state_transition
(and some other similar constraints) needs aunits_on
variable witht_before
time slice that could go beyond the variable's time indices at the beginning of a model horizon. With ordinary temporal structures, this missing index will be generated when adding the variable. However, when a representative temporal structure is used, thet_before
at the beginning of a model is missing.This DB test.zip would reproduce the error.
PR #1015 attempts to fix this. There seem to be 2 directions:
t_before
forconstraint_unit_state_transition
whenunits_on
uses representative temporal blocksThis issue could be generic for variables defined by "non-dynamic" time indices and used in constraints defined by "dynamic" time indices (e.g.
units_invested
as toconstraint_unit_investment_transition
). But fortunately, those other cases seem unlikely for representative temporal blocks.The text was updated successfully, but these errors were encountered: