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 #68031 is a reply to message #68029] Wed, 23 September 2009 04:49 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Sep 23, 3:54 am, Wox <s...@nomail.com> wrote:
> On Tue, 22 Sep 2009 16:30:45 -0700 (PDT), Nicki
>
> <nickireite...@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?

I seem to remember Craig mentioning that implementing a constraint
using a brick wall like that can give you problems. I think he
advocated having a slightly smoother but still very steep transition
from the allowed values to the extremely high values in the forbidden
region. I'm sure it was in the context of his routines, but I wouldn't
be surprised if amoeba behaved similarly.

-Jeremy.
[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: Wed Oct 08 19:24:53 PDT 2025

Total time taken to generate the page: 0.00576 seconds