(function from pyomo.contrib.solver.solvers.knitro.utils)
pyomo.contrib.solver.solvers.knitro.utils
Set the values of a list of Pyomo variables from a list of values.
variables (Iterable[VarData]) – The variables to set.
values (list[float]) – The list of values to assign to the variables.
var_map (Mapping[int, int]) – A mapping from variable id to index in the values list.