[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help with nelder_mead_min.m
From: |
macy |
Subject: |
Re: Need help with nelder_mead_min.m |
Date: |
Mon, 23 Nov 2009 11:23:35 -0800 (PST) |
User-agent: |
SquirrelMail/1.4.13 |
I got this to work:
>> function w=foo(x); w=x.*x+2;endfunction;
>> x=[-1:.01:1];
>> nelder_mead_min("foo","x")
Answer 2
> Hi all!
>
> I can't figure out how to work with this function. I will be very glad if
> one could explain the subject.
>
> For an example lets see the problem.
>
> function y = foo (x, y, z)
> y = x**2 + y**2 + z**2;
> endfunction
>
> I need to find a minima of the foo in [-1;1]*[-1;1]*[-1;1] region. I know
> the answer, but how I must set up an options and arguments for
> nelder_mead_min.m?
>
> Best regards,
> Grigory