generate_norm_inf_objective_function

(function from pyomo.contrib.mindtpy.util)

pyomo.contrib.mindtpy.util.generate_norm_inf_objective_function(model, setpoint_model, discrete_only=False)[source]

This function generates objective (PF-OA main problem) for minimum Norm Infinity distance to setpoint_model.

Norm-Infinity distance of \((x,y) = \max_i |x_i - y_i|\).

Parameters:
  • model (Pyomo model) – The model that needs new objective function.

  • setpoint_model (Pyomo model) – The model that provides the base point for us to calculate the distance.

  • discrete_only (bool, optional) – Whether to only optimize on distance between the discrete variables, by default False.

Returns:

The norm infinity objective function.

Return type:

Objective