If you have two constraints in a phase_info['constraints'] dict with the same variable name, only the last one is used. That's because within a dictionary you can only have unique keys. You might need multiple constraints if you want both initial and final boundary constraints on the variable.
We could rework the constraints handling so it's a list of dicts instead of a dict of dicts. This will be backwards incompatible. There might be a way to make constraints handle either a list of dicts and a dict of dicts and that would remove the backwards incompatibility.
Is your feature request related to a problem? Please describe.
Desired capability or behavior.
If you have two constraints in a
phase_info['constraints']
dict with the same variable name, only the last one is used. That's because within a dictionary you can only have unique keys. You might need multiple constraints if you want both initial and final boundary constraints on the variable.We could rework the constraints handling so it's a list of dicts instead of a dict of dicts. This will be backwards incompatible. There might be a way to make constraints handle either a list of dicts and a dict of dicts and that would remove the backwards incompatibility.
Is your feature request related to a problem? Please describe.
No response
Associated Bug Report
No response