Dynamic-Calibration/utils/YALMIP-master/extras/ipoptgp_callback_g.m

9 lines
239 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function g = ipoptgp_callback_g(x,model)
% Should be made faster by re-using results from dg computation...
% Compute the nonlinear terms in the constraints
[g,geq] = fmincon_congp(x,model);
% Append with linear constraints
g = [g;geq];