export m-file with fmincon to C-Code for PowerPC

Hello every one,
I´m new to MATLAB, Simulink and Optimization Toolbox, and I´ve got the task, to find out if it´s possible to export/generate an sFunktion to C-Code.
Well I know in general it is possible, what i don´t know, if it is possible to export/generate from an sFunction, which contains fmincon, from Optimization Toolbox, to C-Code to run on an embedded System with PowerPc?
I coudn´t find any Information about this.
Since it should run on an embedded system, the generated code needs to be small in size and memory usage.
Thank you for any help or pointing out documentaion i missed
dan

 Respuesta aceptada

Seth DeLand
Seth DeLand el 22 de Feb. de 2013

0 votos

Hi Daniel,
Generating C-Code from MATLAB code that includes optimization solvers such as fmincon is currently not supported. Here's a list of MATLAB functions that are supported if you're interested: http://www.mathworks.com/help/coder/ug/functions-supported-for-code-generation--categorical-list.html

3 comentarios

Daniel
Daniel el 25 de Feb. de 2013
Hello Seth,
Thank you for your Answer and the provided Link. Now I'm sure about it and can look for other solutions.
cheers,
Dan
Eddy Trinklein
Eddy Trinklein el 24 de Mzo. de 2015
Seth,
Do you know if fmincon will become c compatible in the near future/ever?
Thanks,
Ed
Mary Fenelon
Mary Fenelon el 17 de Sept. de 2019
fmincon can generate C code as of R2019b. Learn more here.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Preguntada:

el 11 de Feb. de 2013

Comentada:

el 17 de Sept. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by