opytimizer.spaces.boolean¶
Boolean-based search space.
-
class
opytimizer.spaces.boolean.
BooleanSpace
(n_agents: int, n_variables: int, mapping: Optional[List[str]] = None)¶ A BooleanSpace class for agents, variables and methods related to the boolean search space.
-
__init__
(n_agents: int, n_variables: int, mapping: Optional[List[str]] = None) → None¶ Initialization method.
Parameters: - n_agents – Number of agents.
- n_variables – Number of decision variables.
- mapping – String-based identifiers for mapping variables’ names.
-
_initialize_agents
() → None¶ Initializes agents with their positions and defines a best agent.
-