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

Added minimum option to KSComp #3229

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eytanadler
Copy link
Contributor

Summary

The existing KSComp has no option to compute the minimum of the input array, rather than the maximum. It does include the lower_flag option, but that returns the negative of the minimum instead of the actual minimum because it assumes the component is being used to compute a constraint with a limit of zero (where it doesn't matter that the output is negated).

Ideally, I think the minimum option should replace lower_flag, but this would break backward compatibility. Maybe it should have a warning if both lower_flag and minimum are specified? It works fine with both, but it's a weird thing to choose.

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

@coveralls
Copy link

coveralls commented May 13, 2024

Coverage Status

coverage: 87.002%. first build
when pulling f860d2a on eytanadler:ks_min
into 944fb73 on OpenMDAO:master.

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.

None yet

4 participants