Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] charlie 0.7.0 Released - A genetic algorithms library.

Reply
Thread Tools

[ANN] charlie 0.7.0 Released - A genetic algorithms library.

 
 
Sander Land
Guest
Posts: n/a
 
      01-11-2008
Hi all,

I'm pleased to announce another release of charlie, a genetic
algorithms library for Ruby.

This release extends the options for TreeGenotype, making the library
more useful for genetic programming.
It also includes full Ruby 1.9 compatibility, as well of a variety of
smaller changes.

There has been no feedback at all on the previous releases. If you
find anything is not working, important features are missing, or have
any other comments, please let me know.

## FEATURES:
- Quickly develop GAs by combining several parts (genotype, selection,
crossover, mutation) provided by the library.
- Sensible defaults are provided with any genotype, so often you only
need to define a fitness function.
- Easily replace any of the parts by your own code.
- Test different strategies in GA, and generate reports comparing them.

## EXAMPLE
This example finds a polynomial which approximates cos(x)

class Cos < TreeGenotype([proc{rand},], [:-@], [:+,:*,:-])
def fitness
-[0,0.33,0.66,1].map{|x| (eval_genes(=>x) - Math.cos(x)).abs }.max
end
use TournamentSelection(4)
end
Population.new(Cos).evolve_on_console(500)

Several other examples are included in the gem/tarball.

## INSTALLATION:
* sudo gem install charlie

## Links
* http://rubyforge.org/projects/charlie/
* http://charlie.rubyforge.org

## LICENSE:
MIT license.

 
Reply With Quote
 
 
 
 
Sander Land
Guest
Posts: n/a
 
      01-12-2008
Version 0.7.1 was just released. It fixes a bug with RouletteSelection
and ScaledRouletteSelection.
This bug was present in all previous versions, and significantly
decreased the convergence speed of these selection algorithms.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] charlie 0.8.0 Released - A genetic algorithms library. Sander Land Ruby 0 02-12-2008 03:44 PM
[ANN] charlie 0.6.0 Released - A genetic algorithms library. Sander Land Ruby 0 12-26-2007 04:42 PM
[ANN] charlie 0.5.0 Released - A genetic algorithms library. Sander Land Ruby 2 12-20-2007 10:11 AM
Genetic Algorithms & Security Bharat Bhushan Computer Security 1 06-30-2003 02:43 PM
ANN: TOGA (Timetables Optimised with Genetic Algorithms) v 0.01 Thuswise Webmaster Python 0 06-28-2003 04:13 PM



Advertisments