fp_converged
(function from pyomo.contrib.mindtpy.util
)
- pyomo.contrib.mindtpy.util.fp_converged(working_model, mip_model, proj_zero_tolerance, discrete_only=True)[source]
Calculates the euclidean norm between the discrete variables in the MIP and NLP models.
- Parameters:
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.
- Returns:
distance – The euclidean norm between the discrete variables in the MIP and NLP models.
- Return type: