Is the optimization toolbox compatible with the Matlab Coder ?

4 vues (au cours des 30 derniers jours)
Daniel Balvay
Daniel Balvay le 3 Juin 2020
Commenté : Mary Fenelon le 7 Oct 2020
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 commentaire
Daniel Balvay
Daniel Balvay le 23 Juil 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

Connectez-vous pour commenter.

Réponse acceptée

Darshan Ramakant Bhat
Darshan Ramakant Bhat le 3 Juin 2020
Modifié(e) : Darshan Ramakant Bhat le 3 Juin 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 commentaire
Mary Fenelon
Mary Fenelon le 7 Oct 2020
C/C++ code generation support for lsqnonlin, lsqcurvefit and fsolve was added in R2020b.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Optimization Toolbox dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by