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

slsqp: check p>n #593

Merged
merged 2 commits into from
Feb 18, 2025
Merged

slsqp: check p>n #593

merged 2 commits into from
Feb 18, 2025

Conversation

jschueller
Copy link
Collaborator

Closes #592

@stevengj stevengj merged commit 1af6c51 into stevengj:master Feb 18, 2025
3 checks passed
@jschueller jschueller deleted the sqp branch February 18, 2025 12:52
kkofler added a commit to kkofler/nlopt that referenced this pull request Feb 24, 2025
src/algs/slsqp/slsqp.c (src/algs/slsqp/slsqp.c): Fix the check for more
equality constraints than variables (introduced by PR stevengj#593 to fix stevengj#592)
so that vector constraints (mconstraints) are correctly counted: the
count to consider here is ptot (the total number of scalar equality
constraints), not p (the number of equality constraints that may be
vector constraints).
kkofler added a commit to kkofler/nlopt that referenced this pull request Feb 24, 2025
src/algs/slsqp/slsqp.c (src/algs/slsqp/slsqp.c): Fix the check for more
equality constraints than variables (introduced by PR stevengj#593 to fix stevengj#592)
so that vector constraints (mconstraints) are correctly counted: the
count to consider here is ptot (the total number of scalar equality
constraints), not p (the number of equality constraints that may be
vector constraints).
jschueller pushed a commit that referenced this pull request Feb 25, 2025
src/algs/slsqp/slsqp.c (src/algs/slsqp/slsqp.c): Fix the check for more
equality constraints than variables (introduced by PR #593 to fix #592)
so that vector constraints (mconstraints) are correctly counted: the
count to consider here is ptot (the total number of scalar equality
constraints), not p (the number of equality constraints that may be
vector constraints).
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.

SLSQP crashes on bad problem dimensions (more equality constraints than variables)
2 participants