particle-swarm

Optimize continuous high-dimensional objective functions with particle swarm intelligence.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/SPIRAL-EDWIN/MCM-ICM-2601000 --skill particle-swarm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: particle-swarm
Source: https://github.com/SPIRAL-EDWIN/MCM-ICM-2601000/tree/main/.github/skills/particle-swarm
Command: npx skills add https://github.com/SPIRAL-EDWIN/MCM-ICM-2601000 --skill particle-swarm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Particle Swarm Optimization (PSO) solves continuous, high-dimensional optimization problems by simulating a swarm of candidate solutions that collaboratively search for optima in the search space.

Core Features & Use Cases

  • Parameter tuning for machine learning, control, and engineering tasks.
  • Fast convergence on smooth objectives with a small set of tunable parameters.
  • Educational demonstrations and rapid prototyping of optimization workflows.
  • Use Case: Calibrating parameters for a model; optimizing a multi-dimensional objective function within bounds.

Quick Start

  1. Define objective function and bounds for each decision variable.
  2. Instantiate the PSO engine, e.g. ParticleSwarmOptimization(objective, bounds, n_particles=30).
  3. Call optimize() to obtain the best solution and convergence history.

Frequently Asked Questions about particle-swarm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize continuous, high-dimensional objective functions for parameter tuning?

You optimize continuous, high-dimensional objective functions by simulating a swarm of candidate solutions that collaboratively searches for optima. This particle swarm intelligence approach is applicable to parameter tuning, function optimization, and surrogate-model fitting.

What is particle swarm optimization and how does its search mechanism work?

Particle swarm optimization (PSO) solves continuous optimization problems by having a swarm of candidate solutions collaboratively search for optima. It adjusts particle velocities based on cognitive and social coefficients, guiding the swarm toward the best-known positions.

Can I configure inertia weight and boundary handling for a particle swarm optimization algorithm?

Yes, the particle swarm optimization engine supports configurable inertia weight, cognitive and social coefficients, boundary handling, and velocity clamping. It also includes an optional adaptive inertia feature with convergence tracking.

Does particle swarm optimization work for calibrating model parameters within specified bounds?

Yes, particle swarm optimization is well-suited for calibrating model parameters within specified bounds. You define the objective function and bounds for each decision variable, then the swarm searches the constrained space to find the optimal parameters.

What are the limitations of using particle swarm optimization for high-dimensional search spaces?

Particle swarm optimization achieves fast convergence on smooth objectives with a small set of tunable parameters, but may struggle with highly irregular search spaces. Velocity clamping and adaptive inertia help manage convergence, but complex multi-modal functions can still pose challenges.

How do I start using a PSO engine to optimize a multi-dimensional objective function?

To start using a PSO engine, define your objective function and bounds for each decision variable. Instantiate the optimizer with your desired number of particles, then call the optimize function to obtain the best solution and convergence history.