class_docstr: An Optimizer class that holds meta-heuristics-related properties
  and methods.
class_docstr_tok: ["An","Optimizer","class","that","holds","meta-heuristics-related","properties","and","methods","."]
docstr: Evaluates the search space according to the objective function.
  
  If you need a specific evaluate method, please re-implement
  it on child's class.
  
  Also, note that function only accept arguments that are
  found on Opytimizer class.
  
  Args:
      space: A Space object that will be evaluated.
      function: A Function object serving as an objective function.
docstr_tok: ["Evaluates","the","search","space","according","to","the","objective","function",".","If","you","need","a","specific","evaluate","method",",","please","re-implement","it","on","child","'s","class",".","Also",",","note","that","function","only","accept","arguments","that","are","found","on","Opytimizer","class",".","Args",":","space",":","A","Space","object","that","will","be","evaluated",".","function",":","A","Function","object","serving","as","an","objective","function","."]
code: def evaluate(self, space: Space, function: Function) -> None:
      """Evaluates the search space according to the objective function.
  
      If you need a specific evaluate method, please re-implement
      it on child's class.
  
      Also, note that function only accept arguments that are
      found on Opytimizer class.
  
      Args:
          space: A Space object that will be evaluated.
          function: A Function object serving as an objective function.
  
      """
  
      for agent in space.agents:
          agent.fit = function(agent.position)
  
          if agent.fit < space.best_agent.fit:
              space.best_agent.position = copy.deepcopy(agent.position)
              space.best_agent.fit = copy.deepcopy(agent.fit)
              space.best_agent.ts = int(time.time())
  
file_path: opytimizer/opytimizer/core/optimizer.py
imports: import copy
  import time
  from typing import Any, Dict
  import opytimizer.utils.exception
  from opytimizer.core.function import Function
  from opytimizer.core.space import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 10 for calling the Optimizer obj's underlying member method code with example usage: obj.evaluate(space, function) without return types