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

Home » Public Forums » archive » 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
Optimization "AMOEBA" [message #68099] Fri, 18 September 2009 02:53 Go to previous message
Nicki is currently offline  Nicki
Messages: 14
Registered: September 2009
Junior Member
Hey!

I need some help with amoeba (i'm a total IDL beginner...). For a
start (get to understand how it works) I want to solve a pretty
simple, 1-dim. problem. I'm having a parabola -x^2+4x+9 and I want to
get the maximum with the help of AMOEBA. How do I do that? (Let's say
starting point P0=5 and scale is 4).
This is what it looks like now:



FUNCTION FUNC, P
x=P[0]
y=-x^2.+4.*x+5.
ydes=9.1
RETURN, MIN(ydes^2-y^2)
END

R=AMOEBA(1.0e-1, SCALE=5, P0=0.05, FUNCTION_VALUE=fval)

PRINT, 'x_Value:', r, $
'error:', fval[0]

END

As a result i get for the x_value -1 and for the error - Inf.... But
why?! I mean the maximum of the function is at x=2 and this is within
the scale...
Maybe somebody can give me some help
[Message index]
 
Read Message
Read Message
Previous Topic: Point Spread Function Simulation
Next Topic: Smoothing 3D array with periodic boundaries: what am I missing?

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

Current Time: Fri Oct 10 09:42:56 PDT 2025

Total time taken to generate the page: 0.72155 seconds