MATLAB: Problem related to multi objective optimization using matlab tool box

optioptimization

sir,
I have a multi objective optimization problem, which is stated as below:
minimize y1(x)= x1*x2*x3
maximize y2(2)= (x1*x2)/0.36,
subject to LOWER BOUND[1.3 0.4 0.22] AND UPPER BOUND [8 1.0 0.27] Y1(X)<=500;Y2(X)>=0.13
I have typed this function and used optimization tool box.
function f= power1(x)
%it is a multi objective function
%f(1)....objective1...equation for pow minimise
%f(2)....objective2...equation for fc maximize
%
% x(1)....specific energy
% x(2)....width of cut
% x(3)....forward velocity
f(1)= x1*x2*x3;
f(2)= (x2*x3)/0.36;
end
then used the solver multi objective optimization using genetic algorithim. But I am getting a error as under defined function or variable x1. Kindly suggest some way to optimize the problem with matlab.

Best Answer

After the line
function f= power1(x)
add
x1 = x(1); x2 = x(2); x3 = x(3);