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

Casadi better than sympy #7

Open
haraschax opened this issue Dec 16, 2020 · 2 comments
Open

Casadi better than sympy #7

haraschax opened this issue Dec 16, 2020 · 2 comments

Comments

@haraschax
Copy link
Contributor

Is casadi a better option for the symbolic solving then sympy?

https://web.casadi.org/

@wolterhv
Copy link

This would be interesting to find out, since CasADi seems to have both Python and C++ APIs. Both are capable of generating C code, which would suggest that in speed their maybe quite similar. This article suggests sympy has more "general purpose symbolic abilities", so I guess one way of moving forward with this is determining whether CasADi actually supports all the features of sympy which rednose and openpilot use or could benefit from.

@haraschax
Copy link
Contributor Author

Interesting. Sympy is quite slow for some of the more complicated jacobians. I assumed this would be better with cassadi, but maybe not.

Sympy also doesn't handle elements, vectors and matrices well together, there is a lot of weird code to deal with that

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

No branches or pull requests

2 participants