I am new to the MOOP problem. I would like to find out pareto optimal front using weighted sum method. So I tried the following code,
FWS=@(x) w1(i)* (x).^3 +(y).^2 + w2(i)* (y).^2 - 4x;
[x,fval] = fminunc(FWS,x0);
Finally I got the error like,
Error using fminunc (line 368)
Supplied objective function must return a scalar value.
Can anyone help me to clear this problem really appreciated?