public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* multidimenstional minimization without df.
@ 2008-01-22 17:26 Toan T Nguyen
  2008-01-23  7:26 ` Alxneit-Kamber Ivo
  0 siblings, 1 reply; 2+ messages in thread
From: Toan T Nguyen @ 2008-01-22 17:26 UTC (permalink / raw)
  To: gsl-discuss

Hi,

I'd like to locate the minimum point of a function f(x_i) of n variables 
x_i. It's very non trivial to calculate the df/dx_i. Can I use conjugate 
gradian method without this df(x_i) information ?

This page in the manual 
http://www.gnu.org/software/gsl/manual/html_node/Multimin-Algorithms.html

doesn't list gsl_multimin_fminimizer_conjugate_fr as a type of 
minimizer. It has
	gsl_multimin_fdfminimizer_conjugate_fr
but no
	gsl_multimin_fminimizer_conjugate_fr

Any help would be appreciated.

Thanks,
Toan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: multidimenstional minimization without df.
  2008-01-22 17:26 multidimenstional minimization without df Toan T Nguyen
@ 2008-01-23  7:26 ` Alxneit-Kamber Ivo
  0 siblings, 0 replies; 2+ messages in thread
From: Alxneit-Kamber Ivo @ 2008-01-23  7:26 UTC (permalink / raw)
  To: Toan T Nguyen; +Cc: gsl-discuss

[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]

On Tue, 2008-01-22 at 09:06 -0500, Toan T Nguyen wrote:
> Hi,
> 
> I'd like to locate the minimum point of a function f(x_i) of n variables 
> x_i. It's very non trivial to calculate the df/dx_i. Can I use conjugate 
> gradian method without this df(x_i) information ?
> 
> This page in the manual 
> http://www.gnu.org/software/gsl/manual/html_node/Multimin-Algorithms.html
> 
> doesn't list gsl_multimin_fminimizer_conjugate_fr as a type of 
> minimizer. It has
> 	gsl_multimin_fdfminimizer_conjugate_fr
> but no
> 	gsl_multimin_fminimizer_conjugate_fr
> 
> Any help would be appreciated.
> 
> Thanks,
> Toan

hi,

no, the conjugate gradient method needs the derivatives (to calculate
the gradient). thus, there can be no minimizer
gsl_multimin_fminimizer_conjugate_fr (fdf minimizer: you supply f(x) AND
df/dx. f minimuzer: you only supply f(x)). so, either you are able to
supply the derivatives or you will end up with
gsl_multimin_fminimizer_nmsimplex that needs no derivatives.

i often use gsl_multimin_fminimizer_nmsimplex to fit parameters of
rather complex simulations. here the function evaluation takes up to a
few minutes and i do not have access to the derivatives. note, that i
have applied following patch
http://www.network-theory.co.uk/download/gslextras/SimplexImproved/
(otherwise the minimizer most often gets stuck at the starting point)
and i scale the parameters in a way to make their numerical values
similar (i usually divide by their initial values).

-- 
Dr. Ivo Alxneit
Laboratory for Solar Technology   phone: +41 56 310 4092
Paul Scherrer Institute             fax: +41 56 310 2688
CH-5232 Villigen                   http://solar.web.psi.ch
Switzerland                   gnupg key: 0x515E30C7

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-23  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-22 17:26 multidimenstional minimization without df Toan T Nguyen
2008-01-23  7:26 ` Alxneit-Kamber Ivo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).