copy_var_list_values_from_solution_pool

(function from pyomo.contrib.mindtpy.util)

pyomo.contrib.mindtpy.util.copy_var_list_values_from_solution_pool(from_list, to_list, config, solver_model, var_map, solution_name, ignore_integrality=False)[source]

Copy variable values from the solution pool to another list.

Parameters:
  • from_list (list) – The variables that provides the values to copy from.

  • to_list (list) – The variables that need to set value.

  • config (ConfigBlock) – The specific configurations for MindtPy.

  • solver_model (solver model) – The solver model derived from pyomo model.

  • var_map (dict) – The map of pyomo variables to solver variables.

  • solution_name (int or str) – The name of the solution in the solution pool.

  • ignore_integrality (bool, optional) – Whether to ignore the integrality of integer variables, by default False.