You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The constraint constraint_ratio_out_in_connection_flow causes problems when representative periods are used. That is, when the constraint is present in the first place. Often it is removed by _has_simple_fix_ratio_out_in_connection_flow() – in this case I artificially make sure that it will be added by returning false from this function.
What seems to happen when representative periods are used, the function _past_connection_input_flow_indices() produces indices both from the original temporal block associated with a node and the representative period temporal block when the same time slice exists in both. This totally messes up the constraint, producing weird results.
To Reproduce
make sure the constraint is added by returning false from _has_simple_fix_ratio_out_in_connection_flow()
Describe the bug
The constraint
constraint_ratio_out_in_connection_flow
causes problems when representative periods are used. That is, when the constraint is present in the first place. Often it is removed by_has_simple_fix_ratio_out_in_connection_flow()
– in this case I artificially make sure that it will be added by returning false from this function.What seems to happen when representative periods are used, the function
_past_connection_input_flow_indices()
produces indices both from the original temporal block associated with a node and the representative period temporal block when the same time slice exists in both. This totally messes up the constraint, producing weird results.To Reproduce
Desktop (please complete the following information):
suggested fix
Remove
temporal_block=anything
in call toconnection_flow_indices()
in_past_connection_input_flow_indices()
The text was updated successfully, but these errors were encountered: