add_ecp_cuts

(function from pyomo.contrib.mindtpy.cut_generation)

pyomo.contrib.mindtpy.cut_generation.add_ecp_cuts(target_model, jacobians, config, timing, linearize_active=True, linearize_violated=True)[source]

Linearizes nonlinear constraints. Adds the cuts for the ECP method.

Parameters:
  • target_model (Pyomo model) – The relaxed linear model.

  • jacobians (ComponentMap) – Map nonlinear_constraint –> Map(variable –> jacobian of constraint w.r.t. variable)

  • config (ConfigBlock) – The specific configurations for MindtPy.

  • timing (Timing) – Timing.

  • linearize_active (bool, optional) – Whether to linearize the active nonlinear constraints, by default True.

  • linearize_violated (bool, optional) – Whether to linearize the violated nonlinear constraints, by default True.