-
Notifications
You must be signed in to change notification settings - Fork 247
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
OpenMDAO issues an errant DerivativesWarning if design variables only impact linear constraints. #3221
Labels
Comments
robfalck
changed the title
OpenMDAO issues an errant DerivativesWarning if design variables do not impact nonlinear constraints.
OpenMDAO issues an errant DerivativesWarning if design variables only impact linear constraints.
May 3, 2024
Should we check for DVs that only have an impact on linear constraints and just not include them at all in the nonlinear jacobian in order to avoid zero columns? |
It seems like removing them from the nonlinear jacobian would be more efficient for things like coloring in the case where there are a lot of them. We would need to be a bit more explicit in explaining that to the user when we show them the total nonlinear jacobian. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In
_TotalJacInfo
, methodcheck_total_jac
only considers the nonlinear jacobian. This is the jacobian used for coloring, as we don't want to consider linear responses for coloring.However, this check will issue a warning if a design variable only impacts linear constraints, because it appears to have a column of zeros in the corresponding nonlinear total jacobian.
Example
Executing the following test in test_pyoptsparse_driver demonstrates the issue.
OpenMDAO Version
3.31.2-dev
Relevant environment information
No response
The text was updated successfully, but these errors were encountered: