Skip to content

SMPSO configuration

Configure smpso through vamos.algorithms.SMPSOConfig. This page is the parameter reference, not a tutorial about the algorithm.

Stable public API. The 1.x compatibility policy defines the supported surface; import from the public facade shown below.

from vamos.algorithms import SMPSOConfig

Configuration overview · Algorithm contracts · Optimization

SMPSOConfig dataclass

Bases: _SerializableConfig

default(pop_size=100, n_var=None) classmethod

Create a default SMPSO configuration.

Builder methods

Use SMPSOConfig.builder() to obtain the fluent builder; do not import the private builder class directly. The methods below are generated from that returned object, so their signatures are not maintained as a second manual parameter table.

Bases: _ConfigBuilderState, _PopSizeBuilder, _MutationBuilder, _RepairBuilder, _InitializerBuilder, _ConstraintModeBuilder, _TrackGenealogyBuilder, _ResultArchiveBuilder

Declarative configuration holder for SMPSO settings.

external_archive(capacity=None, **kwargs)

Configure an external archive for result storage.

Note

This is separate from archive_size, which controls the internal SMPSO archive.

Parameters:

Name Type Description Default
capacity int | None

Maximum number of solutions. None means unbounded.

None
**kwargs Any

Forwarded to :class:ExternalArchiveConfig.

{}