Can MATLAB Coder generate C code for the function 'fmincon' from Optimization Toolbox?
17 次查看(过去 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!