Re: How to code Conjugate Gradient Method
- To: mathgroup at smc.vnet.net
- Subject: [mg49751] Re: [mg49726] How to code Conjugate Gradient Method
- From: Selwyn Hollis <sh2.7183 at misspelled.erthlink.net>
- Date: Fri, 30 Jul 2004 06:02:04 -0400 (EDT)
- References: <200407291145.HAA10312@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On Jul 29, 2004, at 7:45 AM, Justin wrote: > I need to write the Conjugate Gradient Method with Mathematica. I > wanna use this method to find the minimum of a function. I tried the > FindMinum already but it seems like this function can't work well. It > always says: > > FindMinimum::nnum: The function value ....is not a number at .... > > The variables I used are all matrices. Does FindMinimum not work for > matrix? > > Any guys has such an experience? If FindMinimum can't work, how to > write the Conjugate Gradient Method? I once tried to write a decent conjugate gradient code in Mathematica, but soon abandoned it, since the algorithm doesn't lend itself very well to functional programming. Useless you really need to use conjugate gradient, you're probably better off recasting your problem in a form that allows you to use FindMinimum or NMinimize. ----- Selwyn Hollis http://www.appliedsymbols.com (edit reply-to to reply)
- References:
- How to code Conjugate Gradient Method
- From: jianchaoyao@hotmail.com (Justin)
- How to code Conjugate Gradient Method