(class from pyomo.contrib.pyros.util)
pyomo.contrib.pyros.util
Bases: object
object
PyROS solver timing data object.
Implemented as a wrapper around common.timing.HierarchicalTimer, with added functionality for enforcing a standardized hierarchy of identifiers.
(Class attribute.) Valid identifiers for use with the encapsulated hierarchical timer.
set of str
Initialize self (see class docstring).
Methods
__init__()
__init__
get_main_elapsed_time()
get_main_elapsed_time
Get total time elapsed for main timer of the HierarchicalTimer contained in self.
get_total_time(full_identifier)
get_total_time
Get total time spent with identifier active.
start_timer(full_identifier)
start_timer
Start timer for self.hierarchical_timer.
stop_timer(full_identifier)
stop_timer
Stop timer for self.hierarchical_timer.
Attributes
hierarchical_timer_full_ids
Member Documentation
Total elapsed time.
float
Note
This method is meant for use while the main timer is active. Otherwise, use self.get_total_time("main").
self.get_total_time("main")
full_identifier (str) – Full identifier for the timer of interest.
Total time spent with identifier active.
full_identifier (str) – Full identifier for the timer to be started. Must be an entry of TimingData.hierarchical_timer_full_ids.
full_identifier (str) – Full identifier for the timer to be stopped. Must be an entry of TimingData.hierarchical_timer_full_ids.