StarPSO

Contents

  • PyStarPSO
  • Examples
    • Simple optimization
      • OneMax
    • Multiobjective function (with constraints)
      • Binh and Korn
    • Multimodal function
      • Shubert 2D
    • More examples
StarPSO
  • Examples
  • View page source

Examples

Simple optimization

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

Multiobjective function (with constraints)

  • Binh and Korn
    • Step 1: Import python libraries and StarPSO classes
    • Step 2: Define the objective function
    • Step 3: Set the PSO parameters
    • Step 4: Run the optimization
    • Step 5: Extract the data for analysis and plotting
    • Step 6: Compute the Pareto front
    • Step 7: Visualize the solutions

Multimodal function

  • Shubert 2D
    • Step 1: Import python libraries and StarPSO classes
    • Step 2: Define the objective function
    • Step 3: Set the PSO 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 2025, Michail D. Vrettas.

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