You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In _TotalJacInfo, method check_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.
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?
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: