Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Still problems with NMinimize...' topicStudent Support Forum > General > "Still problems with NMinimize..."

Next Comment >Help | Reply To Topic
Author Comment/Response
Sven
12/19/06 04:46am

Hi,

Defining an errorfunction

ErrorFun[a_, b_] := (Eigenvalues[{{a,
1.}, {1., b}}] - {4.118033988749895, 1.881966011250105}).(Eigenvalues[{{
a, 1.}, {1., b}}] - {4.118033988749895, 1.881966011250105});

and executing

sol = NMinimize[ErrorFun[a, b], {a, b}]; {sol, ErrorFun[a, b] /. sol[[2]]}

yields

{{8.97214, {a -> 3., b -> 3.}}, 8.97214},

but the minimum of this function is at

ErrorFun[2.5, 3.5]=0.

I don't understand this result at all...

Thanks in advance,
Sven

URL: ,

Subject (listing for 'Still problems with NMinimize...')
Author Date Posted
Still problems with NMinimize... Sven 12/19/06 04:46am
Re: Still problems with NMinimize... yehuda ben-s... 12/19/06 4:18pm
Re: Still problems with NMinimize... Sven 12/20/06 05:19am
Next Comment >Help | Reply To Topic