| Author |
Comment/Response |
Heinz Reif
|
03/01/13 10:50am
I want to minimize a function defined by a Module[]using NMinimize.
The actual Module is very large, so I take an example, which will arise the problem.
now=AbsoluteTime[]
fuct[x_,y_,z_]:=Module[{},aT=AbsoluteTime[{x,y,z}];(aT-now)^2]
NMinimize[ {fuct[x, y, z] ,
x \[Element] Integers && y \[Element] Integers &&
z \[Element] Integers && x > 2000 && 13 > y > -1 && 32 > z > -1}, {x,y, z}]
fuct[] works correctly, but NMinimize send the message:
AbsoluteTime::arg : "Argument {x, y, z}
cannot be interpreted as a date or time input.
and does not find the minimum.
Does someone know a solution for the problem?
Heinz
URL: , |
|