Custom functions

82 views
Skip to first unread message

Julian Balletshofer

unread,
Mar 24, 2023, 2:27:46 PM3/24/23
to CasADi
Hey,
i am new to Casadi and I wanted to ask if it is possible to avoid the symbolic part.

I have a gaussian process code written in Matlab and I want to combine it into a MPC problem. I wanted to if it is possible to use the GPR code and take the Jacobian and prediction and solve the mpc with Casadi 

Thank you very much and all best

Joel Andersson

unread,
Mar 24, 2023, 5:11:37 PM3/24/23
to CasADi
Does the GPR code include analytic derivatives? It's possible to interface "black box" functions to CasADi by either implementing a "Callback" class in MATLAB, or by writing a C wrapper and read in the function using CasADi's C API. It may be cumbersome and error-prone, however.

Joel

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages