calc_jacobians

(function from pyomo.contrib.mindtpy.util)

pyomo.contrib.mindtpy.util.calc_jacobians(constraint_list, differentiate_mode)[source]

Generates a map of jacobians for the variables in the model.

This function generates a map of jacobians corresponding to the variables in the constraint list.

Parameters:
  • constraint_list (List) – The list of constraints to calculate Jacobians.

  • differentiate_mode (String) – The differentiate mode to calculate Jacobians.