Skip to content

Creating compatible files from MXFunctions that include solvers #4

Answered by se-hwan
CheeGY asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Yes
  2. Yup
  3. Exactly, the solution from CasADi's LDL can be saved as a CasADi function, which can then be expand()ed, then saved for parallelization.

For your followup, I'm unsure if you mean codegen for GPU parallelization or CasADi's native codegen for C compilation. Yes, CusADi can only parallelize SXFunctions. This isn't a fundamental limitation - we haven't added MX capabilities because almost all MX expressions can be expanded, and SX expressions are typically faster to evaluate.

  • For native C compilation, yes, you can codegen the your whole Opti instance and compile it. Under the hood, if you set opti.solver('ipopt'), the .c codegen externally calls ipopt (or whatever solver you chose…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CheeGY
Comment options

Answer selected by CheeGY
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2 on August 22, 2024 17:19.