ipoptgp_callback_dg.m
来自「matlab波形优化算法经常要用到的matlab toolbox工具箱:yalm」· M 代码 · 共 11 行
M
11 行
function G = ipopt_callback_dg(x,returnStructOnly,prob)
if returnStructOnly
G = sparse(ones(max(prob.map)+size(prob.G,1),size(prob.A,2)));
return
end
% Compute the nonlinear terms in the constraints
[g,geq,dg,dgeq] = fmincon_congp(x,prob);
G = [dg';dgeq'];
G = sparse(G);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?