Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'NMinimize' topicStudent Support Forum > General > Archives > "NMinimize"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'NMinimize')
Author Date Posted
NMinimize Heinz Reif 03/01/13 10:50am
Re: NMinimize Bill Simpson 03/01/13 6:24pm
Re: Re: NMinimize Heinz Reif 03/08/13 11:24am
Next Comment >Help | Reply To Topic