Skip to content

Code generation using CasADi not working with current CasADi v3.5.5 #12

@pablokrupa

Description

@pablokrupa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions