diff options
Diffstat (limited to 'tests/general_tests/intfminbnd/Easom.sce')
-rw-r--r-- | tests/general_tests/intfminbnd/Easom.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/general_tests/intfminbnd/Easom.sce b/tests/general_tests/intfminbnd/Easom.sce new file mode 100644 index 0000000..5758aa2 --- /dev/null +++ b/tests/general_tests/intfminbnd/Easom.sce @@ -0,0 +1,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. |