class_docstr: A GridSpace class for agents, variables and methods
  related to the grid search space.
class_docstr_tok: ["A","GridSpace","class","for","agents",",","variables","and","methods","related","to","the","grid","search","space","."]
docstr: Creates a grid of possible search values.
docstr_tok: ["Creates","a","grid","of","possible","search","values","."]
code: def _create_grid(self) -> None:
      """Creates a grid of possible search values."""
  
      mesh = np.meshgrid(
          *[
              s * np.arange(lb / s, ub / s + s)
              for s, lb, ub in zip(self.step, self.lb, self.ub)
          ]
      )
  
      self.grid = np.array(([m.ravel() for m in mesh])).T
      self.n_agents = len(self.grid)
  
file_path: opytimizer/opytimizer/spaces/grid.py
imports: import copy
  from typing import List, Optional, Tuple, Union
  import numpy
  import opytimizer.utils.exception
  from opytimizer.core import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 6 for calling the GridSpace obj's underlying member method code with example usage: obj._create_grid() without return types