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 consistent form in inequality constraint equations #3564

Open
jonmaddock opened this issue Mar 3, 2025 · 0 comments · May be fixed by #3565
Open

Use consistent form in inequality constraint equations #3564

jonmaddock opened this issue Mar 3, 2025 · 0 comments · May be fixed by #3565
Assignees

Comments

@jonmaddock
Copy link
Contributor

jonmaddock commented Mar 3, 2025

Following an investigation into upper limit constraint behaviour, I'm proposing to change the form of the upper limit inequality constraints from:
$$c_{max} = 1 - \frac{x_{max}}{x}$$
to
$$c_{max} = \frac{x}{x_{max}} - 1$$
This means that lower and upper limit constraints are violated proportionately (e.g. linearly), and the constraint values for upper limit constraints are now much simpler to interpret. It also removes a discontinuity in upper limit constraints when the constrained parameter ($x$) passes through 0.

@jonmaddock jonmaddock linked a pull request Mar 3, 2025 that will close this issue
@jonmaddock jonmaddock self-assigned this Mar 7, 2025
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