Can MATLAB Coder generate C code for the function 'fmincon' from Optimization Toolbox?

18 visualizaciones (últimos 30 días)
The Code Generation Readiness report states Yes, but the function is not listed as Supported for C and C++ Code Generation. All my attempts with MATLAB Coder have failed. Is it possible for MATLAB Coder to generate C code for 'fmincon'?

Respuesta aceptada

Alan Weiss
Alan Weiss el 5 de Sept. de 2018
Editada: Alan Weiss el 30 de Jun. de 2020
Currently, fmincon does not support code generation. Sorry.
Alan Weiss
MATLAB mathematical toolbox documentation
P.S. fmincon gained code generation in R2019b
  3 comentarios
Adam Hug
Adam Hug el 29 de Jul. de 2019
Hello Sandeep,
What kind of problem(s) are you solving with fmincon and what solver (interior-point, sqp, trust-region-reflective) are you using? Are you setting specific options such as using analytical gradients?
Adam
Mary Fenelon
Mary Fenelon el 17 de Sept. de 2019
Code generation is available for fmincon starting in the R2019b release. Learn more here.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by