Algorithmically
Nature-Inspired Programming Recipes
Installation
Add this line to your application's Gemfile:
gem 'Algorithmically'
And then execute:
$ bundle
Or install it yourself as:
$ gem install Algorithmically
Usage
Evolutionary Algorithms
Algorithmically::Genetic.new(100, 64, 100, 0.98)
Neural Algorithms
Algorithmically::Perceptron.new([[0,0,0], [0,1,1], [1,0,1], [1,1,1]], 2, 20, 0.1)
Stochastic Algorithms
Algorithmically::RandomSearch.new(2, 50)
Algorithmically::AdaptiveRandomSearch.new(1000, 2, 0.05, 1.3, 3.0, 10, 30)
Algorithmically::HillClimbing.new(2, 1000)
Algorithmically::GuidedLocalSearch.new(150, [[565,575],[25,185],[345,750],[945,685]], 20, 0.3)