check_BinaryProblem_is_multi_objective#

pybrops.opt.prob.BinaryProblem.check_BinaryProblem_is_multi_objective(v, vname)[source]#

Check if a BinaryProblem is multi objective in nature, otherwise raise TypeError.

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

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

Return type:

None