Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fletcher-Reeves method example

433 views
Skip to first unread message

Marcelo Campara

unread,
Oct 2, 2010, 10:05:04 AM10/2/10
to
I need minimize the function f= 3*x^2+x^2 starting in [1 1]
Somebody have a example o give me?

thanks

Steven_Lord

unread,
Oct 4, 2010, 10:39:52 AM10/4/10
to

"Marcelo Campara" <marcelo...@bol.com.br> wrote in message
news:i87e6g$ol4$1...@fred.mathworks.com...


> I need minimize the function f= 3*x^2+x^2 starting in [1 1]
> Somebody have a example o give me?

If you actually meant f = 3*x(1)^2 + x(2)^2 then the minimum is 0 at x(1) =
0, x(2) = 0. You can determine this by inspection; each term is always
nonnegative and each term takes on its minimum value when the variable
involved in that term is 0.

If you really did mean f = 3*x^2 + x^2 = 4*x^2 then the minimum is again 0
at x = 0, again by inspection.

Look at the help for FMINSEARCH and/or FMINBND in MATLAB or FMINCON in
Optimization Toolbox; the help text for those functions include descriptions
of what those functions do, how to call them, and examples demonstrating
their use.

--
Steve Lord
sl...@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Marcelo Campara

unread,
Oct 4, 2010, 11:49:08 AM10/4/10
to
"Steven_Lord" <sl...@mathworks.com> wrote in message <i8covo$odq$1...@fred.mathworks.com>...

Hello Steve,

Thanks for try help me, so it is a home work of my Master's curse, and I need find the minimum writing the code of Fletcher-Reeves method, unfortunately I can't use internal functions. I need show to my teacher the code. I never seen the Fletcher-Reeves algorithm.

Matt J

unread,
Oct 4, 2010, 12:50:22 PM10/4/10
to
"Marcelo Campara" <marcelo...@bol.com.br> wrote in message <i8ct1k$sr7$1...@fred.mathworks.com>...

> Hello Steve,
>
> Thanks for try help me, so it is a home work of my Master's curse, and I need find the minimum writing the code of Fletcher-Reeves method, unfortunately I can't use internal functions. I need show to my teacher the code. I never seen the Fletcher-Reeves algorithm.

==============

Are you saying it wasn't covered in class?

Ross W

unread,
Oct 4, 2010, 2:49:40 PM10/4/10
to
"Matt J " <mattja...@THISieee.spam> wrote in message <i8d0ke$rhn$1...@fred.mathworks.com>...

As I said in your other thread on the same topic, you need to start coding ...
http://www.mathworks.com/matlabcentral/newsreader/view_thread/292930#784866

We are happy to help, but aren't a homework service

Ross

Marcelo Campara

unread,
Oct 4, 2010, 3:01:21 PM10/4/10
to
"Matt J " <mattja...@THISieee.spam> wrote in message <i8d0ke$rhn$1...@fred.mathworks.com>...

I need to write the code of Fletcher-Reeves method to minimize this function. But I never seen the code.

Walter Roberson

unread,
Oct 4, 2010, 3:05:47 PM10/4/10
to
On 10-10-04 02:01 PM, Marcelo Campara wrote:

> I need to write the code of Fletcher-Reeves method to minimize this
> function. But I never seen the code.

Well, the purpose of programming is to take an *algorithm* and transform it in
to code, not to adapt someone else's code. I think it very likely that you
could google several explanations of the Fletcher-Reeves *algorithm* .

TideMan

unread,
Oct 4, 2010, 3:06:05 PM10/4/10
to
On Oct 5, 4:49 am, "Marcelo Campara" <marcelocamp...@bol.com.br>
wrote:
> "Steven_Lord" <sl...@mathworks.com> wrote in message <i8covo$od...@fred.mathworks.com>...
>
> > "Marcelo Campara" <marcelocamp...@bol.com.br> wrote in message

I hope you're not sitting back waiting for someone to send you the
code that you can simply submit as your own work. The technical word
for that behaviour is: cheating. You really will get a "Master's
curse" if you try that.

You need to show some effort before you'll get any help from here.
Also, you need to check the problem statement. At present, as Steve
pointed out, it makes no sense.

someone

unread,
Oct 4, 2010, 3:12:20 PM10/4/10
to
"Marcelo Campara" <marcelo...@bol.com.br> wrote in message <i8d8a1$22n$1...@fred.mathworks.com>...

Did you try "Googling"(or Wikipedia, etc.) Fletcher-Reeves?

Marcelo Campara

unread,
Oct 4, 2010, 3:52:19 PM10/4/10
to
"someone" <som...@somewhere.net> wrote in message <i8d8uk$ebi$1...@fred.mathworks.com>...

Yes, but there are few informations e nothing clear to understand, I saw a image that can be used, but there are many Authors and each made diferent, I don't know who is right. Because this I need help.

Walter Roberson

unread,
Oct 4, 2010, 3:58:58 PM10/4/10
to
On 10-10-04 02:52 PM, Marcelo Campara wrote:
> "someone" <som...@somewhere.net> wrote in message

>> Did you try "Googling"(or Wikipedia, etc.) Fletcher-Reeves?

> Yes, but there are few informations e nothing clear to understand, I saw
> a image that can be used, but there are many Authors and each made
> diferent, I don't know who is right. Because this I need help.

FLETCHER, R., & REEVES, C. 1964 Function minimization by conjugate gradients.
Comput. J. 7,149-154.

0 new messages