fp_converged

(函数来自 pyomo.contrib.mindtpy.util)

pyomo.contrib.mindtpy.util.fp_converged(working_model, mip_model, proj_zero_tolerance, discrete_only=True)[source]

计算MIP和NLP模型中离散变量之间的欧几里得范数。

Parameters:
  • working_model (Pyomo 模型) – 工作模型(原始模型)。

  • mip_model (Pyomo 模型) – mip 模型。

  • proj_zero_tolerance (Float) – Feasibility Pump的投影零容忍度。

  • discrete_only (bool, optional) – 是否仅优化离散变量之间的距离,默认为 True。

Returns:

distance – MIP和NLP模型中离散变量之间的欧几里得范数。

Return type:

float