report_timing

(class from pyomo.common.timing)

class pyomo.common.timing.report_timing(stream=True, level=20)[source]

Bases: object

__init__(stream=True, level=20)[source]

Set reporting of Pyomo timing information.

For historical reasons, this class may be used as a function (the reporting logger is configured as part of the instance initializer). However, the preferred usage is as a context manager (thereby ensuring that the timing logger is restored upon exit).

Parameters:
  • stream (bool, TextIOBase) – The destination stream to emit timing information. If True, defaults to sys.stdout. If False or None, disables reporting of timing information.

  • level (int) – The logging level for the timing logger

Methods

__init__([stream, level])

Set reporting of Pyomo timing information.

reset()

Member Documentation