opytimizer.spaces.grid¶
Grid-based search space.
-
class
opytimizer.spaces.grid.
GridSpace
¶ A GridSpace class for agents, variables and methods related to the grid search space.
-
__init__
()¶ Initialization method.
Parameters: - n_variables – Number of decision variables.
- step – Variables’ steps.
- lower_bound – Minimum possible values.
- upper_bound – Maximum possible values.
- mapping – String-based identifiers for mapping variables’ names.
-
step
¶ Step size of each variable.
-
grid
¶ Grid with possible search values.
-
_create_grid
() → None¶ Creates a grid of possible search values.
-
_initialize_agents
() → None¶ Initializes agents with their positions and defines a best agent.
-