Is the optimization toolbox compatible with the Matlab Coder ?

조회 수: 4 (최근 30일)
I would like to transform a function including the lsqcurvefit fonction to a C function, but there was a proble during the compilation. So, I would like to know if this function is compatible with the Matlab coder.
Thank you.
Daniel
  댓글 수: 1
Daniel Balvay
Daniel Balvay 2020년 7월 23일
Finally, the issue was circumvented by the joint use of the "fmincon" function and some global variables. Note: the global variables of each type (double, logical) must be declared on different lines.
Daniel

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

채택된 답변

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2020년 6월 3일
편집: Darshan Ramakant Bhat 2020년 6월 3일
Below is the list of functions supported for codegeneration :
Unfortunately the function Isqcurvefit is not yet supported for codegeneration.
However, I have made an internal note to add this function to the wish list of function to be supported for codegeneration.
  댓글 수: 1
Mary Fenelon
Mary Fenelon 2020년 10월 7일
C/C++ code generation support for lsqnonlin, lsqcurvefit and fsolve was added in R2020b.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by