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

Updated cvx work vectors #3179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

victorfors
Copy link
Contributor

@victorfors victorfors commented May 10, 2023

Closes #3169

Changes local variable arrays in casadi_cvx to work vectors supplied to the function call. Avoids buffer overflow if the required array is too large.

This pull requests appears to break backward compatibility to load code generated with casadi 3.5.5 I assume this is because the work vectors in the code generated with casadi 3.5.5 is not of suitable size for the changes to casadi_cvx.

It also includes a test that still fails, code generation with main when calling convexify on a large strongly connected matrix (stack overflow?).

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.

Runtime errors because of fixed length vectors in casadi_cvx.hpp
1 participant