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 #68021 is a reply to message #68020] Thu, 24 September 2009 00:56 Go to previous messageGo to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Wed, 23 Sep 2009 19:13:13 -0700 (PDT), Nicki
<nickireiter87@yahoo.de> wrote:

> Okay, I added the other variables now and it works... and also the 3D
> plot works...
> If I have 3 Variables now, what do i need to add to the ploting
> section? And is it possible to get the results for a second minimum as
> well (if there is another local minimum?)

I just included the surface plot to see whether the maximum found by
amoeba (within the box constraints) made any sense.

If you want to check this for more than 2 parameters, you can do
something like changing one of the parameters at a time while keeping
the others fixed at their optimized position (i.e. where the function
is maximal):

; Plot
n=200
b=P0-dP
inc=(2*dP)/n
y=fltarr(n)
for j=0,n_elements(P0)-1 do begin
x=b[j]+inc[j]*indgen(n)

P=xmax
for i=0,n-1 do begin
P[j]=x[i]
y[i]=-func(P,/NOCONSTR)
endfor

window,j
plot,x,y
plots,xmax[[j,j]],[!y.crange[0],ymax],psym=-2
endfor



As for the second local minimum: I guess you need to play with your
box-constraints to get one or the other.
[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: Fri Oct 10 10:35:39 PDT 2025

Total time taken to generate the page: 1.19802 seconds