I changed the code to:
for i from 1 to 100 do
data(i):= "read data from external file":
Z:= "function to optimize based on data(i)":
B:=GlobalSolve(Z, a=0..2, b=0..2, c=0..2, timelimit=6000):
solutionvector:=matrix(1,3) #vector containing calculated values for 3 variables)
But now I can no longer evaluate the solution vector (which made no problems before adding the try-sequence). The error code is:
Error, invalid input: eval expects its 2nd argument to be of type (iteger, equation, set(equation)), but recieved B.
Obviously the catch-procedure does not return values in the same format as before. Do you have any idea how I can solve this?
Many thanks for your help.