Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Evaluation order of NDSolve and FindMinimum' topicStudent Support Forum > General > "Evaluation order of NDSolve and FindMinimum"

Next Comment >Help | Reply To Topic
Author Comment/Response
Marcus Sammer
09/10/03 3:30pm

I am trying to find the initial values that
minimize a function of the solution to a
differential equation. I am having trouble
because Mathematica is attempting to solve the
differential equation before FindMininum is
assigning values to the variable initial
conditions. The following simplified example
illustrates the problem (although this example
does not actually have a minimum).

FindMinimum[f[1] /. NDSolve[
{f'[t] == t, f[0] == a},
{f}, {t, -2, 2}][[1]], {a, 2, 3}]

Note: I was actually able to get simple problems
of this type to work in version 4.2, but I
can't get anything to work in 5.0 (which my school
is now running).

URL: ,

Subject (listing for 'Evaluation order of NDSolve and FindMinimum')
Author Date Posted
Evaluation order of NDSolve and FindMinimum Marcus Sammer 09/10/03 3:30pm
Re: Evaluation order of NDSolve and FindMinimum Henry Lamb 09/24/03 7:42pm
Next Comment >Help | Reply To Topic