class_docstr: Class to handle problems with one single objective function.
  
  param func: objective function.
  param batch_size: size of the batches (default, 1)
  param num_cores: number of cores to use in the process of evaluating the objective (default, 1).
  param objective_name: name of the objective function.
  param batch_type: Type of batch used. Only 'synchronous' evaluations are possible at the moment.
  param space: Not in use.
  
  .. Note:: the objective function should take 2-dimensional numpy arrays as input and outputs. Each row should
  contain a location (in the case of the inputs) or a function evaluation (in the case of the outputs).
class_docstr_tok: ["Class","to","handle","problems","with","one","single","objective","function",".","param","func",":","objective","function",".","param","batch_size",":","size","of","the","batches","(","default",",","1",")","param","num_cores",":","number","of","cores","to","use","in","the","process","of","evaluating","the","objective","(","default",",","1",")",".","param","objective_name",":","name","of","the","objective","function",".","param","batch_type",":","Type","of","batch","used",".","Only","'synchronous","'","evaluations","are","possible","at","the","moment",".","param","space",":","Not","in","use",".","..","Note",":",":","the","objective","function","should","take","2-dimensional","numpy","arrays","as","input","and","outputs",".","Each","row","should","contain","a","location","(","in","the","case","of","the","inputs",")","or","a","function","evaluation","(","in","the","case","of","the","outputs",")","."]
code: def __init__(
      self,
      func,
      num_cores=1,
      objective_name="no_name",
      batch_type="synchronous",
      space=None,
  ):
      self.func = func
      self.n_procs = num_cores
      self.num_evaluations = 0
      self.space = space
      self.objective_name = objective_name
  
file_path: GPyOpt/GPyOpt/core/task/objective.py
imports: import time
  import numpy
  from ...util.general import spawn
  from ...util.general import get_d_moments
  import GPy
  import GPyOpt
label_desc: Use image node_id 1 to create a new SingleObjective object from inherited base classes: Objective with example: obj = SingleObjective(func, num_cores, objective_name, batch_type, space)