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

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.
Thanks Walter, I am still interested to know what limits the code gen to generate fmincon code for single-precision hardware and find the potential solution.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2022년 2월 10일

댓글:

2022년 2월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by