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

8 lines
148 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function [f,model] = penlab_callback_f(x,model)
global latest_x_f
global latest_df
x = x(:);
[f,latest_df] = fmincon_fun(x,model);
latest_x_f = x;