opytimizer.spaces.hyper_complex¶
Hypercomplex-based search space.
-
class
opytimizer.spaces.hyper_complex.
HyperComplexSpace
(n_agents: int, n_variables: int, n_dimensions: int, mapping: Optional[List[str]] = None)¶ An HyperComplexSpace class that will hold agents, variables and methods related to the hypercomplex search space.
-
__init__
(n_agents: int, n_variables: int, n_dimensions: int, mapping: Optional[List[str]] = None) → None¶ Initialization method.
Parameters: - n_agents – Number of agents.
- n_variables – Number of decision variables.
- n_dimensions – Number of search space dimensions.
- mapping – String-based identifiers for mapping variables’ names.
-
_initialize_agents
() → None¶ Initializes agents with their positions and defines a best agent.
-