(class from pyomo.contrib.solver.common.persistent)
pyomo.contrib.solver.common.persistent
Bases: ABC
ABC
treat_fixed_vars_as_params (bool) – This is an advanced option that should only be used in special circumstances. With the default setting of True, fixed variables will be treated like parameters. This means that z == x*y will be linear if x or y is fixed and the constraint can be written to an LP file. If the value of the fixed variable gets changed, we have to completely reprocess all constraints using that variable. If treat_fixed_vars_as_params is False, then constraints will be processed as if fixed variables are not fixed, and the solver will be told the variable is fixed. This means z == x*y could not be written to an LP file even if x and/or y is fixed. However, updating the values of fixed variables is much faster this way.
Methods
__init__([treat_fixed_vars_as_params])
__init__
add_block(block)
add_block
add_constraints(cons)
add_constraints
add_parameters(params)
add_parameters
add_sos_constraints(cons)
add_sos_constraints
add_variables(variables)
add_variables
remove_block(block)
remove_block
remove_constraints(cons)
remove_constraints
remove_parameters(params)
remove_parameters
remove_sos_constraints(cons)
remove_sos_constraints
remove_variables(variables)
remove_variables
set_instance(model)
set_instance
set_objective(obj)
set_objective
update([timer])
update
update_parameters()
update_parameters
update_variables(variables)
update_variables
Member Documentation