PyGenAlgo

Contents:

  • Modules
  • Examples
    • Simple optimization
      • OneMax
    • Combinatorial problem (with constraints)
      • Travelling Salesman Problem
    • Multimodal function
      • Gaussian Mixture - 2D
    • More examples
PyGenAlgo
  • Examples
  • View page source

Examples

Simple optimization

  • OneMax
    • Step 1: Import python libraries and PyGenAlgo classes
    • Step 2: Define the objective function
    • Step 3: Set the GA parameters
    • Step 4: Run the optimization
    • Step 5: Final output

Combinatorial problem (with constraints)

  • Travelling Salesman Problem
    • Step 1: Import python libraries and PyGenAlgo classes
    • Step 2: Auxiliary structures
    • Step 3: Define the objective function
    • Step 4: Set the GA parameters
    • Step 5: Run the optimization
    • Step 6: Final output
    • Step 7: Visualize the solution

Multimodal function

  • Gaussian Mixture - 2D
    • Step 1: Import python libraries and PyGenAlgo classes
    • Step 2: Define the objective function
    • Step 3: Set the GA parameters
    • Step 4: Run the optimization
    • Step 5: Extract the data for analysis and plotting
    • Step 6: Visualize the solutions

More examples

For more example please visit this page, where all the examples are maintained and explained in details.

Previous Next

© Copyright 2024, Michalis Vrettas, PhD.

Built with Sphinx using a theme provided by Read the Docs.