class_docstr: A Space class for agents, variables and methods
  related to the search space.
class_docstr_tok: ["A","Space","class","for","agents",",","variables","and","methods","related","to","the","search","space","."]
docstr: Builds the object by creating and initializing the agents.
docstr_tok: ["Builds","the","object","by","creating","and","initializing","the","agents","."]
code: def build(self) -> None:
      """Builds the object by creating and initializing the agents."""
  
      self._create_agents()
      self._initialize_agents()
  
      self.built = True
  
      logger.debug(
          "Agents: %d | Size: (%d, %d) | "
          "Lower Bound: %s | Upper Bound: %s | "
          "Mapping: %s | Built: %s.",
          self.n_agents,
          self.n_variables,
          self.n_dimensions,
          self.lb,
          self.ub,
          self.mapping,
          self.built,
      )
  
imports: from typing import List, Optional, Tuple, Union
  import numpy
  import opytimizer.utils.exception
  from opytimizer.core import Agent
  from opytimizer.utils import logging
label_desc: Use image node_id 22 for calling the Space obj's underlying member method code with example usage: obj.build() without return types