revert_solver_max_time_adjustment
(function from pyomo.contrib.pyros.util
)
- pyomo.contrib.pyros.util.revert_solver_max_time_adjustment(solver, original_max_time_setting, custom_setting_present, config)[source]
Revert solver options attribute to its state prior to a time limit adjustment performed via the routine adjust_solver_time_settings.
- Parameters:
solver (solver type) – Solver of interest.
original_max_time_setting (float, list, or None) – Original solver settings. Type depends on the solver type.
custom_setting_present (bool or None) – Was the max time, or other custom solver settings, specified prior to the adjustment? Can be None if
config.time_limit
is None.config (ConfigDict) – PyROS solver config.