When computing the gradients using CasADi v3.5.5, function DM used in function casadi_jacobians() is not recognized.
The following error message is printed:
Unrecognized function or variable 'DM'.
Error in falcopt.generateCode>casadi_jacobians (line 1388)
if ~isempty(find((full(DM(jac)) ~= 0), 1))
Error in falcopt.generateCode (line 288)
[d,c,i] = casadi_jacobians( o, o.dynamics,'model_mpc','jac',{'x','u'}); % generate casadi functions
When computing the gradients using CasADi v3.5.5, function DM used in function casadi_jacobians() is not recognized.
The following error message is printed: