generate_norm1_objective_function
(function from pyomo.contrib.mindtpy.util
)
- pyomo.contrib.mindtpy.util.generate_norm1_objective_function(model, setpoint_model, discrete_only=False)[source]
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|\).
- 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 norm1 objective function.
- Return type: