Skip to main content

CMAESTensor

Module: opytimizer.optimizers.single_objective.evolutionary.cmaes

A CMAESTensor class, inherited from Optimizer and TensorizedOptimizer.

This is the designed class to define GPU/CPU-agnostic tensorized CMA-ES-related variables and methods.

Constructor​

CMAESTensor(params: Optional[Dict[str, Any]] = None, **kwargs) -> None

Parameters​

ParameterTypeDefaultDescription
paramsOptional[Dict[str, Any]]None—
kwargs—

Methods​

compile​

compile(self, space: opytimizer.core.space._SingleObjectiveTensorSpace) -> None

Compiles additional information that is used by this optimizer.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveTensorSpaceA TensorSpace object containing meta-information.

evaluate​

evaluate(self, space: opytimizer.core.space._SingleObjectiveTensorSpace, function: opytimizer.core.function.Function) -> None

Evaluates the search space according to the objective function.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveTensorSpaceA TensorSpace object that will be evaluated.
functionopytimizer.core.function.FunctionA Function object that will be used as the objective function.

update​

update(self, space: opytimizer.core.space._SingleObjectiveTensorSpace) -> None

Wraps CMA-ES over all agents and variables.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveTensorSpaceSpace containing agents and update-related information.