https://github.com/alekpopovic/algorithmically
Nature-Inspired Programming Recipes
https://github.com/alekpopovic/algorithmically
algorithms nature programming-recipes ruby
Last synced: 23 days ago
JSON representation
Nature-Inspired Programming Recipes
- Host: GitHub
- URL: https://github.com/alekpopovic/algorithmically
- Owner: alekpopovic
- License: mit
- Created: 2016-09-25T19:07:30.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-02-29T19:12:22.000Z (over 6 years ago)
- Last Synced: 2025-01-29T19:04:25.444Z (over 1 year ago)
- Topics: algorithms, nature, programming-recipes, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/Algorithmically
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://badge.fury.io/rb/Algorithmically)
[](https://travis-ci.org/popac/Algorithmically)
[](https://app.wercker.com/project/byKey/e456d9eec98db3773239631ea504aa2d)
[](https://www.codefactor.io/repository/github/popac/algorithmically)
[](https://www.codacy.com/manual/webguruserbia/Algorithmically?utm_source=github.com&utm_medium=referral&utm_content=popac/Algorithmically&utm_campaign=Badge_Grade)
[](https://codebeat.co/projects/github-com-popac-algorithmically-master)
[](https://bettercodehub.com/)
# Algorithmically
## Nature Inspired Programming Recipes
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'Algorithmically'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install Algorithmically
## Usage
### Stochastic Algorithms
#### Random Search
Algorithmically::Stochastic::RandomSearch.new do |config|
config.problem_size = 10
config.maximum_iterations = 10
config.negative_space = 2
config.positive_space = 2
end
Algorithmically::Stochastic::RandomSearch.best_solution