summaryrefslogtreecommitdiff
path: root/tests/general_tests/intfminbnd/Easom.sce
blob: 5758aa2dfaf6a1537b487d8c114826430cb0dcb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function z=f(xx)
x=xx(1)
y=xx(2)
z=-cos(x)*cos(y)*exp(-((x-%pi)^2+(y-%pi)^2))
endfunction

x1=[-100,-100];
x2=[100,100];
intcon=[1,2];

[x,fval] =intfminbnd(f ,intcon, x1, x2)

// Optimal Solution Found.
//  fval  =
 
//     0.  
//  x  =
 
//     99.  
//    100.