Skip to content

Problem and operator discovery

Find supported identifiers through the public facades instead of importing internal registries. The catalogues explain the corresponding capabilities and dependencies.

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

from vamos import available_problem_names, make_problem_selection
from vamos.algorithms import (
    available_algorithms,
    available_crossover_methods,
    available_mutation_methods,
)

Problems · Algorithms and backends · Configuration classes

available_problem_names()

Return the sorted names of all registered benchmark problems.

Returns:

Type Description
tuple[str, ...]

Problem keys that can be passed to optimize() or make_problem_selection().

make_problem_selection(key, *, n_var=None, n_obj=None)

Look up a registered problem by key and resolve its dimensions.

Parameters:

Name Type Description Default
key str

Registered problem name (e.g. "zdt1", "dtlz2").

required
n_var int

Override the default number of decision variables.

None
n_obj int

Override the default number of objectives (only for problems that allow it).

None

Returns:

Type Description
ProblemSelection

A frozen selection with the resolved spec, n_var, and n_obj ready to instantiate.

Raises:

Type Description
KeyError

If key does not match any registered problem. The error message includes the full list of valid names and close-match suggestions.

available_algorithms()

Return the canonical algorithm identifiers supported by the engine.

available_crossover_methods(encoding='real')

Return the available crossover method identifiers for a given encoding.

Parameters:

Name Type Description Default
encoding str

Variable encoding type.

``"real"``

Returns:

Type Description
tuple[str, ...]

Supported crossover method identifiers for the encoding.

available_mutation_methods(encoding='real')

Return the available mutation method identifiers for a given encoding.

Parameters:

Name Type Description Default
encoding str

Variable encoding type.

``"real"``

Returns:

Type Description
tuple[str, ...]

Supported mutation method identifiers for the encoding.