(function from pyomo.contrib.mindtpy.util)
pyomo.contrib.mindtpy.util
This function generates objective (PF-OA main problem) for minimum Norm1 distance to setpoint_model.
Norm1 distance of \((x,y) = \sum_i |x_i - y_i|\).
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.
The norm1 objective function.
Objective