check_is_OptimizationAlgorithm#

pybrops.opt.algo.OptimizationAlgorithm.check_is_OptimizationAlgorithm(v, vname)[source]#

Check if object is of type OptimizationAlgorithm. Otherwise raise TypeError.

Parameters:
  • v (object) – Any Python object to test.

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

Return type:

None