Can MATLAB Coder generate C code for the function 'fmincon' from Optimization Toolbox?
조회 수: 14 (최근 30일)
이전 댓글 표시
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'?
댓글 수: 0
채택된 답변
Alan Weiss
2018년 9월 5일
편집: Alan Weiss
2020년 6월 30일
Currently, fmincon does not support code generation. Sorry.
Alan Weiss
MATLAB mathematical toolbox documentation
P.S. fmincon gained code generation in R2019b
댓글 수: 3
Adam Hug
2019년 7월 29일
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
2019년 9월 17일
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!