MATLAB: How to use gamultiobj for optimizing a function with parameters besides the gamultiobj parameters

gamultiobjoptimization

Hi.
I'm trying to use gamultiobj to optimize a function, but I need to pass the function parameters too, besides gamultiobj's parameters.
The function I need to optimize is func
[J,a,b,s,h,g]=func(theta,y,u,smin,smax,level);
But, first I need gamultiobj to find the array theta from a theta0 vector.
When I used a mono objective function I used fminsearch in this way:
theta=fminsearch(@func,theta0,optimset,y,u,smin,smax,level); It worked well.
Note that I need to pass the parameters theta0, y, u, smin, smax and level to gamultiobj too.
Thanks.
Marco.

Best Answer