summaryrefslogtreecommitdiff
path: root/tests/general_tests/intfminunc/levi.sce
blob: 7f78674681ae1ebd7fe43f9ad2a214f8a285ffa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
function z=f(xx)
x=xx(1)
y=xx(2)
z=(sin(3*%pi*x))^2+((x-1)^2)*(1+(sin(3*%pi*y))^2)+((y-1)^2)*(1+(sin(3*%pi*y))^2)
endfunction


x0=[10,10];
intcon=[1,2];

[x,fval] =intfminunc(f, x0 ,intcon)