Math::GSL::Min - 1-D Minimization
use Math::GSL::Min qw/:all/; use Math::GSL::Const qw/$M_PI/; my $m = gsl_min_fminimizer_alloc($gsl_min_fminimizer_goldensection); gsl_min_fminimizer_set_with_values($m, sub { cos($_[0]) }, 3, cos(3), 0, cos(0), 2*$M_PI, cos(2*$M_PI) ); gsl_min_fminimizer_iterate($m);
Here is a list of all the functions in this module :
gsl_min_fminimizer_alloc
gsl_min_fminimizer_free
Don't call this function explicitly. It will be called automatically in DESTROY for fminimizer.
gsl_min_fminimizer_set
Don't apply this function twice to the same fminimizer. It will cause a memory leak. Instead of this you should create new fminimizer.
gsl_min_fminimizer_set_with_values
gsl_min_fminimizer_iterate
gsl_min_fminimizer_name
gsl_min_fminimizer_x_minimum
gsl_min_fminimizer_x_lower
gsl_min_fminimizer_x_upper
gsl_min_fminimizer_f_minimum
gsl_min_fminimizer_f_lower
gsl_min_fminimizer_f_upper
gsl_min_fminimizer_minimum
gsl_min_test_interval
gsl_min_find_bracket
This module also includes the following constants :
$gsl_min_fminimizer_brent
$gsl_min_fminimizer_goldensection
For more informations on the functions, we refer you to the GSL offcial documentation: http://www.gnu.org/software/gsl/manual/html_node/
Jonathan "Duke" Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>
Copyright (C) 2008-2011 Jonathan "Duke" Leto and Thierry Moisan
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Math::GSL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::GSL
CPAN shell
perl -MCPAN -e shell install Math::GSL
For more information on module installation, please visit the detailed CPAN module installation guide.