Is it possible to do code generation with quadprog() ?
이전 댓글 표시
I know quadprog() is not supported for code generation. But is there a workaround to use the quadprog() fucntion for code generation? I am trying to generate c code from my Simulink model which can be used to integrate with CANoe platform on another pc which may or may not have a MATLAB compiler.
채택된 답변
추가 답변 (1개)
Mary Fenelon
2020년 4월 21일
0 개 추천
Code generation for quadprog is supported in R2020a, following on support for fmincon added in R2019b.
댓글 수: 1
Clemens Troll
2021년 7월 20일
편집: Clemens Troll
2021년 7월 20일
As documanted in https://de.mathworks.com/help/optim/ug/code-generation-in-quadprog.html code generation for quadprog() is only possible if the 'active-set' solver is applied. Unfortunetaly, my optimization problem is large-scaled and hence is only solvable with the 'interior-point' solver in an accaeptable calculation time.
Is there an outlook that the other solvers are also usable of the code generation in a future release? If not, does anyone know a good alternative of a quadprog solver which one can use in Simulink?
카테고리
도움말 센터 및 File Exchange에서 Embedded Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!