algpy_src.base.utils.print_problem_instance#
- print_problem_instance(instance, verbosity_level, min_verbosity_level=1)#
Convenience function to print the given ProblemInstance if the current verbosity_level is greater than or equal to min_verbosity_level.
- Parameters:
instance (ProblemInstance) – ProblemInstance to print.
verbosity_level (int) – The amount of information to print throughout run of the algorithm. One of 0, 1, 2 with 0 typically referring to no printing, 1 leading to print of given ProblemInstance before and after and 2 meaning every step.
min_verbosity_level (int (default 0)) – Minimal verbosity level needed for the print to happen.
- Return type:
None