Unable to perform assignment because value of type 'casadi.SX' is not convertible to 'double'.
5 views (last 30 days)
Show older comments
I am using CASADi for implementation and getting following error:
Unable to perform assignment because value of type 'casadi.SX' is not
convertible to 'double'.
Caused by:
Error using double
Conversion to double from casadi.SX is not possible.
If I use full() command or full(evalf()), the error changes to
Error using casadi.GenericMatrixCommon/evalf
.../casadi/core/sx_function.cpp:71: Cannot evaluate "f:()->(o0[15])
SXFunction" since variables [P_54, P_55, P_56, P_61, P_57, P_62, P_58, P_63,
P_59, P_64, P_60, P_65] are free.
But I have already assigned numeric values to these P_59 and remaining.
Kindly help me to solve this error.
Thank you in advance!
Answers (1)
xiaoting wang
on 30 Jun 2023
Hello,
Have you solved the problem. I have the same issue.
Thanks!
0 Comments
See Also
Categories
Find more on Controller Creation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!