comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Optimization "AMOEBA"
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Optimization "AMOEBA" [message #68034 is a reply to message #68031] Wed, 23 September 2009 00:54 Go to previous messageGo to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Tue, 22 Sep 2009 16:30:45 -0700 (PDT), Nicki
<nickireiter87@yahoo.de> wrote:

>
>
>> Set a breakpoint in your FUNC and check for NaN's. For example:
>> "a=NaN" when P=[0.5,30].
>
> But still... If I set my scale to let's say [0.5, 0.5] for [0.55, 60.]
> it should definitely work. however i get -0.2000 for P[0] which is not
> even in the set range for P[0] (it goes from 0.05 to 1 (see above))
> However I have no idea why... Somebody can help me out?

FUNC will still return NaN at some point! Add the following line to
FUNC to check it yourself:

FUNCTION FUNC, P
...
if ~finite(s) then stop
RETURN, -S
END

I see what your problem is now. The P0 and SCALE define an initial
simplex and by no means constraint the space in which the minimum
should lay. See: http://www.nrbook.com/a/bookcpdf/c10-4.pdf

Maybe you can do something like this when P gets out of its range:

FUNCTION FUNC, P
...
if ~finite(s) then return,!values.F_INFINITY
RETURN, -S
END

Does that work?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLDE and java crashes
Next Topic: Nearest neighbors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:51:38 PDT 2025

Total time taken to generate the page: 1.47122 seconds