Failed to eliminate a call to the MATLAB function 'quadprog'.
显示 更早的评论
Hi,
I'm using the Matlab 2011b, and I want to generate the function 'quadprog' provided by "Optimization Toolbox"into C code. Part of my script(.m) is as follows:
coder.extrinsic('quadprog');
x = zeros(3,1);
x=quadprog(H1,C1,A1,B1,[],[],LB1,UB1);
But, I got the error like that:
Failed to eliminate a call to the MATLAB function 'quadprog'. For non-simulation builds, calls to unsupported MATLAB functions are eliminated if they do not affect function outputs.
Thank you.
采纳的回答
更多回答(1 个)
Mike Hosea
2012-1-10
0 个投票
I agree with Titus, but if you can share it, I would be very interested to hear more about your application. Are you going to generate code for an embedded system?
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Coder 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!