OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
204 stars 65 forks source link

Overlapping constraints in Birkhoff transcription #1017

Closed kaushikponnapalli closed 11 months ago

kaushikponnapalli commented 11 months ago

Description

Adding a boundary constraint and a path constraint for variables of any type other than state causes the error.

The lines of code when added to the brachistochrone problem throw the error

RuntimeError: <model> <class Group>: Indices for aliases ['traj.phases.phase0->final_boundary_constraint->theta', 'traj.phases.phase0->path_constraint->theta'] are overlapping constraint/objective 'traj.phases.phase0.timeseries.timeseries_comp.theta'.

Example

phase.add_path_constraint('theta', lower=0.01, upper=179.9) phase.add_boundary_constraint('theta', loc='final', lower=0.01, upper=179.9)

Dymos Version

1.9.2.dev0

Relevant environment information

No response