Giter Club home page Giter Club logo

ga's Introduction

Project GENALG

Project GENALG - Classes and examples in Java for Genetic Algorithms

This project contains an experimental Java classes set for implementing Genetic Algorithms examples, classical approach and permutation. I’ve been used it in my AI classes over the last two years. The central idea was to stress the GA using many variables and nodes in the examples, checking out the results from many runs and evaluating the trade-off between time and generations. Further benchmarking with other implementations are foreseen.

Core code is divided as follows:

  • GenAlg.java: class for traditional GA, according Goldberg’s book.
  • GenAlgOrder.java: class for permutation GA.
  • Utility.java: auxiliary class for printing the results.
  • IFunctionFitness.java: interface for implementing custom objective functions classes.
  • Graph.java: class for automatic generating of circle graphs, useful for testing permutation GA.

Classical GA examples are:

  • Example1.java: 2-variables equation optimization.
  • Example2.java: 5-variables equation optimization.
  • Example3.java: 10-variables equation optimization.

Permutation GA examples are:

  • ExOrder1.java: 8-nodes graph, 20 individuals, simple run, static graph.
  • ExOrder2.java: 8-nodes graph, 60 individuals, simple run, static graph.
  • ExOrder3.java: 8-nodes graph, 30 individuals, 1000 runs, text file output, static graph.
  • ExOrder4.java: 15-nodes graph, 30 individuals, 1000 runs, text file output, static graph.
  • ExOrder5.java: 20-nodes graph, 30 individuals, 1000 runs, text file output, static graph.
  • ExOrder6.java: 5-nodes up to 20-nodes graph, 30 individuals, 1000 runs, text file output, static graph.
  • ExOrder7.java: 5-nodes up to 30-nodes graph, 30 individuals, 1000 runs, text file output, static graph.
  • ExOrder8.java: 5-nodes up to 40-nodes graph, 30 individuals, 1000 runs, text file output, automatically generated graph.

Please, in using this work or publishing papers, don’t forget to cite in the references. Any help or suggestion is welcome.

Luciano F. de Medeiros, Dr.

http://lattes.cnpq.br/9300962438570183

ga's People

Contributors

lfm0006 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.