How to evaluate MX variables in C++

49 views
Skip to first unread message

YZ He

unread,
Apr 4, 2023, 3:55:27 PM4/4/23
to CasADi
Hi there. I have a MX variable:

casadi::MX opt_u = casadi::MX::mtimes(this->U_f, opt_g);

How do I convert the variable opt_u to std::vector<double>? Thanks.

Reply all
Reply to author
Forward
0 new messages