(function from pyomo.contrib.mindtpy.util)
pyomo.contrib.mindtpy.util
Calculates the euclidean norm between the discrete variables in the MIP and NLP models.
working_model (Pyomo model) – The working model(original model).
mip_model (Pyomo model) – The mip model.
proj_zero_tolerance (Float) – The projection zero tolerance of Feasibility Pump.
discrete_only (bool, optional) – Whether to only optimize on distance between the discrete variables, by default True.
distance – The euclidean norm between the discrete variables in the MIP and NLP models.
float