Skip to content

FAQ: how to make a symbolic matrix numeric?

András Retzler edited this page Dec 30, 2022 · 1 revision

Two ways to do it:

  1. make your expression a casadi.Function and then evaluate it. It shall return a casadi.DM:

TODO example

  1. Use substitute():

In MATLAB, it looks like this for example: full(evalf(substitute(my_casadi_symbolic_expression, my_casadi_symbol, numeric_values_to_plug_in)))

TODO example

Clone this wiki locally