1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
= minimization
* http://github.com/clbustos/minimization
== DESCRIPTION:
Minimization algorithms on pure Ruby.
== FEATURES/PROBLEMS:
Unidimensional:
* Newton-Rahpson (requires first and second derivative)
* Golden Section
* Brent (Port of GSL code)
Multidimensional:
* Fletcher-Reeves (requires first derivative)
* Polak Rebirer (requires first derivative)
* Nelder-Mead
* Powell's method
If you needs speed, use gem *gsl*
== SYNOPSIS:
d=Minimization::Brent.new(-1000,20000 , proc {|x| x**2})
d.iterate
puts d.x_minimum
puts d.f_minimum
== REQUIREMENTS:
* Pure Ruby
== INSTALL:
sudo gem install minimization
== API:
http://ruby-statsample.rubyforge.org/minimization/
== LICENSE:
BSD 2-clause (See LICENSE.txt)
|