From: wangy_86 ? on
When using genetic algorithm (gamultiobj), I want to pass several parameters, that is, lamda_t, lamda_a, aot_t, aot_a, to function 'gaparam'. How to pass them?

function y=gaparam(x)
y(1)=mae(x(1)*lamda_t.^(-x(2))-aot_t);
y(2)=mae(x(3)*lamda_a.^(-x(2))-aot_a);
end

% Now call gamultiobj:
X=gamultiobj(@gaparam,3);