generate_lag_objective_function
(function from pyomo.contrib.mindtpy.util
)
- pyomo.contrib.mindtpy.util.generate_lag_objective_function(model, setpoint_model, config, timing, discrete_only=False)[source]
The function generates the second-order Taylor approximation of the Lagrangean.
- 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.
config (ConfigBlock) – The specific configurations for MindtPy.
timing (Timing) – Timing
discrete_only (bool, optional) – Whether to only optimize on distance between the discrete variables, by default False.
- Returns:
The taylor extension(1st order or 2nd order) of the Lagrangean function.
- Return type: