Is the optimization toolbox compatible with the Matlab Coder ?

4 views (last 30 days)
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 Comment
Daniel Balvay
Daniel Balvay on 23 Jul 2020
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

Sign in to comment.

Accepted Answer

Darshan Ramakant Bhat
Darshan Ramakant Bhat on 3 Jun 2020
Edited: Darshan Ramakant Bhat on 3 Jun 2020
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 Comment
Mary Fenelon
Mary Fenelon on 7 Oct 2020
C/C++ code generation support for lsqnonlin, lsqcurvefit and fsolve was added in R2020b.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!