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

9 lines
239 B
Matlab
Executable File

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];