tee (TextIO_or_Logger, default=False) – tee
accepts bool
, io.TextIOBase
, or
logging.Logger
(or a list of these types). True
is
mapped to sys.stdout
. The solver log will be printed to each of
these streams / destinations.
working_dir (Path, optional) – The directory in which generated files should be saved. This replaces
the keepfiles option.
load_solutions (Bool, default=True) – If True, the values of the primal variables will be loaded into the
model.
raise_exception_on_nonoptimal_result (Bool, default=True) – If False, the solve method will continue processing even if the
returned result is nonoptimal.
symbolic_solver_labels (Bool, default=False) – If True, the names given to the solver will reflect the names of the
Pyomo components. Cannot be changed after set_instance is called.
timer (optional) – A timer object for recording relevant process timing data.
threads (NonNegativeInt, optional) – Number of threads to be used by a solver.
time_limit (NonNegativeFloat, optional) – Time limit applied to the solver (in seconds).
solver_options (dict, optional) – Options to pass to the solver.
auto_updates (dict, optional) –
Configuration options to detect changes in model between solves
check_for_new_or_removed_constraints: bool, default=True
If False, new/old constraints will not be automatically detected
on subsequent solves. Use False only when manually updating the
solver with opt.add_constraints() and opt.remove_constraints() or
when you are certain constraints are not being added to/removed
from the model.
check_for_new_or_removed_vars: bool, default=True
If False, new/old variables will not be automatically detected on
subsequent solves. Use False only when manually updating the
solver with opt.add_variables() and opt.remove_variables() or when
you are certain variables are not being added to / removed from
the model.
check_for_new_or_removed_params: bool, default=True
If False, new/old parameters will not be automatically detected on
subsequent solves. Use False only when manually updating the
solver with opt.add_parameters() and opt.remove_parameters() or
when you are certain parameters are not being added to / removed
from the model.
check_for_new_objective: bool, default=True
If False, new/old objectives will not be automatically detected on
subsequent solves. Use False only when manually updating the
solver with opt.set_objective() or when you are certain objectives
are not being added to / removed from the model.
update_constraints: bool, default=True
If False, changes to existing constraints will not be
automatically detected on subsequent solves. This includes changes
to the lower, body, and upper attributes of constraints. Use False
only when manually updating the solver with
opt.remove_constraints() and opt.add_constraints() or when you are
certain constraints are not being modified.
update_vars: bool, default=True
If False, changes to existing variables will not be automatically
detected on subsequent solves. This includes changes to the lb,
ub, domain, and fixed attributes of variables. Use False only when
manually updating the solver with opt.update_variables() or when
you are certain variables are not being modified.
update_parameters: bool, default=True
If False, changes to parameter values will not be automatically
detected on subsequent solves. Use False only when manually
updating the solver with opt.update_parameters() or when you are
certain parameters are not being modified.
update_named_expressions: bool, default=True
If False, changes to Expressions will not be automatically
detected on subsequent solves. Use False only when manually
updating the solver with opt.remove_constraints() and
opt.add_constraints() or when you are certain Expressions are not
being modified.
update_objective: bool, default=True
If False, changes to objectives will not be automatically detected
on subsequent solves. This includes the expr and sense attributes
of objectives. Use False only when manually updating the solver
with opt.set_objective() or when you are certain objectives are
not being modified.