copy_var_list_values

(function from pyomo.contrib.mindtpy.util)

pyomo.contrib.mindtpy.util.copy_var_list_values(from_list, to_list, config, skip_stale=False, skip_fixed=True, ignore_integrality=False)[source]

Copy variable values from one list to another. Rounds to Binary/Integer if necessary Sets to zero for NonNegativeReals if necessary

from_listlist

The variables that provide the values to copy from.

to_listlist

The variables that need to set value.

configConfigBlock

The specific configurations for MindtPy.

skip_stalebool, optional

Whether to skip the stale variables, by default False.

skip_fixedbool, optional

Whether to skip the fixed variables, by default True.

ignore_integralitybool, optional

Whether to ignore the integrality of integer variables, by default False.