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

Drastically reduce iterations for convexify for some matrices #3177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

victorfors
Copy link
Contributor

@victorfors victorfors commented May 10, 2023

Closes #2973

Convexify required many iterations for some matrices like the one provided in the test case (over 1000). Discovered that this seems to occur when the off-diagonal elements disconnects the matrix being reduced. Such matrices are perhaps not that common but they do pop up in SQP iterations.

The algorithm used to go:
Find the unreduced matrix T2 in blockdiag(T1,T2,T3) where T1 and T2 are diagonal matrices and T2 is tridiagonal.

Now it finds the first connected unreduced matrix block,
e.g. T21 in blockdiag(T1,T21,T22,T23,T3) where T1, T22, and T3 are diagonal matrices and T21 and T23 are tridiagonal.

This change significantly reduces the number of iterations required for matrices with the above structure.

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.

Default value of max_iter_eig setting for convexify too low
1 participant