check_RealProblem_is_single_objective#

pybrops.opt.prob.RealProblem.check_RealProblem_is_single_objective(v, vname)[source]#

Check if a RealProblem is single objective in nature, otherwise raise TypeError.

Parameters:
  • v (RealProblem) – A RealProblem for which to check the number of objectives.

  • vname (str) – Name of variable to print in TypeError message.

Return type:

None