Skip to content

Interface fix#24

Merged
csmith763 merged 2 commits into
mainfrom
interface-fix
Jun 16, 2026
Merged

Interface fix#24
csmith763 merged 2 commits into
mainfrom
interface-fix

Conversation

@csmith763

Copy link
Copy Markdown
Contributor

Fixed constraint Jacobian scaling for pyOptSparse interface. Also, removed the it_counter parameter for the reset_analysis_flags method within the System class.

Summary of changes;
- Fixed an issue related to the scaling of the constraint Jacobian when
the `rhs` value for a Flume constraint was not equal to 1.0 or 0.0.
pyOptSparse automatically applies the value for `scale` to the
constraint value and the Jacobian entries, so manually scaling the
Jacobian was incorrect
- Removed the `it_counter` parameter from the System class within the
`reset_analysis_flags` method. Now, the analysis flags are reset every
time this method is called, regardless of the iteration number. This
would have skipped the reset previously if `it_counter = 0`, which
caused numerical issues for SNOPT's derivative check
- Modified the tests for the ParOpt and pyOptSparse interfaces to
reflect these changes
@csmith763 csmith763 merged commit 73b22e8 into main Jun 16, 2026
3 checks passed
@csmith763 csmith763 deleted the interface-fix branch June 16, 2026 21:08
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 this pull request may close these issues.

1 participant