Skip to content

Problem adapters and encodings

Implementation details of the functional adapter, type aliases, and encoding normalization. Prefer vamos.make_problem for user code.

Internal implementation API

These deep modules are not stable public imports. Documentation does not create a compatibility guarantee. See the stability policy.

Public problem definition ยท Solve your own problem

FunctionalProblem

Bases: Problem

Problem wrapper that adapts a user function to the VAMOS ProblemProtocol.

Created via :func:make_problem -- users should not instantiate this directly.

evaluate(X, out)

Evaluate the objective (and optional constraint) functions.

types

normalize_encoding(value, *, default='real')

Normalize user/problem encoding strings to canonical encoding identifiers.

Canonical encodings are: "real", "binary", "permutation", "integer", "mixed".