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

Use get_io_metadata during configure to pull information on constraints. #374

Closed
1 of 2 tasks
robfalck opened this issue Sep 2, 2020 · 0 comments · Fixed by #398
Closed
1 of 2 tasks

Use get_io_metadata during configure to pull information on constraints. #374

robfalck opened this issue Sep 2, 2020 · 0 comments · Fixed by #398
Assignees

Comments

@robfalck
Copy link
Contributor

robfalck commented Sep 2, 2020

Summary of Issue

Adding constraints in dymos currently requires the user to provide shape and unit information. We can obtain this information during configure with OpenMDAO's get_io_metadata method now.

Issue Type

  • Bug
  • Enhancement

Description

The shape argument will be deprecated and throw a warning, but functionally do nothing.

Configure-time introspection makes it possible to add boundary and path constraints to phases without needing to specify the shape of the variable - this can be obtained from get_io_metadata during configure.

Units should also default to the unit of the constrained output variable, if None.
(There should be no need for _unspecified here)

Example

N/A

Environment

N/A

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