Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that adding a path/boundary constraint on the same variable multiple times raises an exception. #733

Closed
1 of 4 tasks
robfalck opened this issue Apr 1, 2022 · 0 comments · Fixed by #743
Closed
1 of 4 tasks
Assignees

Comments

@robfalck
Copy link
Contributor

robfalck commented Apr 1, 2022

Issue Type

  • Bug
  • Enhancement
  • Docs
  • Miscellaneous

Description

Using multiple calls to add_boundary/add_path constraint with the same variable should raise an issue.

Example

cruise.add_path_constraint('mach', constraint_name='bounded_mach',
                                lower=0.7, units=None)
 cruise.add_path_constraint('mach', constraint_name='bounded_mach',
                                upper=0.8, units=None)

Silently passes with unexpected behavior.

Environment

Dymos 1.4.0

@robfalck robfalck self-assigned this Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant