restore_vars_to_original_values_enumerate

(function from pyomo.contrib.gdpopt.nlp_initialization)

pyomo.contrib.gdpopt.nlp_initialization.restore_vars_to_original_values_enumerate(true_disjuncts, boolean_var_values, discrete_var_values, nlp_util_block)[source]

Perform initialization of the subproblem.

This just restores the continuous variables to the original model values, which were saved on the subproblem’s utility block when it was created.