RVEA configuration¶
Configure rvea through vamos.algorithms.RVEAConfig. 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 RVEAConfig
Configuration overview · Algorithm contracts · Optimization
RVEAConfig
dataclass
¶
Bases: _SerializableConfig
default(pop_size=None, n_var=None, n_obj=3, encoding=None)
classmethod
¶
Create a default RVEA configuration.
RVEA needs one individual per reference vector. With pop_size,
n_partitions is the Das-Dennis lattice of exactly that size, and a size
that matches no lattice raises :class:~vamos.exceptions.ConfigurationError
naming the nearest valid ones. Without it, n_partitions is 99 for two
objectives, 12 for three and 6 for four or more. Discrete and mixed
encoding values take their crossover and mutation from the shared
encoding table.
Builder methods¶
Use RVEAConfig.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, _CrossoverBuilder, _MutationBuilder, _RepairBuilder, _InitializerBuilder, _MutationProbFactorBuilder, _ConstraintHandlingBuilder, _ConstraintModeBuilder, _TrackGenealogyBuilder, _ResultArchiveBuilder
Declarative configuration holder for RVEA settings.
Examples: cfg = RVEAConfig.default() cfg = RVEAConfig.builder().pop_size(100).n_partitions(12).build()