9 lines
139 B
Mathematica
9 lines
139 B
Mathematica
|
|
function [G,model] = penlab_callback_con(x,model)
|
||
|
|
|
||
|
|
global latest_x_g
|
||
|
|
global latest_G
|
||
|
|
global latest_g
|
||
|
|
x = x(:);
|
||
|
|
|
||
|
|
G = [model.Aeq;model.A]*x;
|