%	Dr. Tom V. Mathew (vmtom@iitb.ac.in)
%	Fri Nov 26 02:46:58 IST 2004
%
%	Cnstrained optimization
%
%	Min f(x1,x2)=(x1^2+x2-11)^2+(x1+x2^2-7)^2;
%	g1 = (x1-5)^2+x2^2-26 <= 0
%	g2 = 4*x1+x2-20 <=0
%	h1 = x1+x2=2 (optional)
%	x*=(3,2), f(x*)=0 (if h1 is not there
%
x0=[0 0 0];
xlb=[1 1 1];
xub=[5 3 3];
[x,z]=fmincon(@fun,x0,[],[],[],[],xlb,xub,@con);
x
z
%EOF
