fmincon code generation for single-precision floating point hardware
显示 更早的评论
I am using fmincon solver to solve an optimization problem with linear equality and inequality constraints and non-linear objective function. I have set up a Simulink model to generate C code. However, I just realized that fmincon supports code generation for double-precision floating point targets only. I was wondering if there is a way to generate code for single-precision processors? I am also open to using other solvers. I'll appreciate your inputs.
3 个评论
Walter Roberson
2022-2-10
Someone asked the same question about a month ago, and the answer from someone at Mathworks was No, fmincon requires double precision and cannot be generated for single precision.
Maziar Mobarrez
2022-2-11
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!