Page cover

Example: Using the Benchmarking Feature

JuliaOS includes a comprehensive benchmarking suite for evaluating and comparing swarm optimization algorithms. This feature helps you select the most appropriate algorithm for your specific optimization problems.

# Start the CLI
./scripts/run-cli.sh  # or node packages/cli/interactive.cjs

# Select "🧬 Swarm Intelligence" from the main menu
# Choose "📊 Benchmark Algorithms"
# Select the algorithms to benchmark (e.g., DE, PSO, GWO, DEPSO)
# Choose the benchmark functions (e.g., Sphere, Rastrigin, Rosenbrock, Ackley, Griewank)
# Set the benchmark parameters (dimensions, runs, etc.)
# Run the benchmark and view the results

The benchmarking CLI provides an interactive interface for:

  • Selecting algorithms to benchmark (DE, PSO, GWO, ACO, GA, WOA, DEPSO)

  • Choosing benchmark functions with different difficulty levels

  • Setting dimensions, runs, and evaluation limits

  • Comparing algorithm performance across different metrics

  • Generating comprehensive HTML reports with visualizations

  • Ranking algorithms based on performance metrics

You can also use the Python wrapper to access the benchmarking functionality:

The benchmarking feature provides:

  • Comparison of multiple swarm algorithms on standard test functions

  • Performance metrics including success rate, convergence speed, and solution quality

  • Statistical analysis of algorithm performance across multiple runs

  • Visualization of convergence behavior and performance comparisons

  • Parameter sensitivity analysis to optimize algorithm settings

  • Export of results in various formats (CSV, JSON, HTML)

Last updated