opytimizer.core.space¶
Search space.
-
class
opytimizer.core.space.
Space
¶ A Space class for agents, variables and methods related to the search space.
-
__init__
()¶ Initialization method.
Parameters: - n_agents – Number of agents.
- n_variables – Number of decision variables.
- n_dimensions – Dimension of search space.
- lower_bound – Minimum possible values.
- upper_bound – Maximum possible values.
- mapping – String-based identifiers for mapping variables’ names.
-
n_agents
¶ Number of agents.
-
n_variables
¶ Number of decision variables.
-
n_dimensions
¶ Number of search space dimensions.
-
lb
¶ Minimum possible values.
-
ub
¶ Maximum possible values.
-
mapping
¶ Variables mapping.
-
agents
¶ Agents that belongs to the space.
Type: list
-
built
¶ Indicates whether the space is built.
-
_create_agents
() → None¶ Creates a list of agents.
-
_initialize_agents
() → None¶ Initializes agents with their positions and defines a best agent.
As each child has a different procedure of initialization, you will need to implement it directly on its class.
-
build
() → None¶ Builds the object by creating and initializing the agents.
-
clip_by_bound
() → None¶ Clips the agents’ decision variables to the bounds limits.
-