Question: Global Optimization toolbox

Hi, I am using the global optimization toolbox to minimize a matlab function as follows: restart; > (Matlab:-evalM)("cd 'C:/Documents and Settings/user/Maple'"); > mat2map1 := proc(a, b) local Res,res; Matlab:-setvar(\"a\",a); Matlab:-setvar(\"b\",b); Matlab:-evalM(\"result = mat2map1(a,b)\"); Res:=Matlab:-getvar(\"result\"); res:=convert(Res,float); return res; end proc; > with(GlobalOptimization): > infolevel[GlobalOptimization] := 3: > GlobalSolve(mat2map1, a = 0 .. 5, b = 0 .. 5); When I run this I get the following error message: Error, (in GlobalOptimization:-GlobalSolve) finite bounds must be provided for all variables I have already specified the bounds for the parameters used in the matlab function (The matlab function is mat2map1=x^2+y^2). I would highly appreciate if anyone can give me an idea about what the problem might be. Thanks Saqib
Please Wait...