get_config_from_kwds

(function from pyomo.contrib.incidence_analysis.config)

pyomo.contrib.incidence_analysis.config.get_config_from_kwds(**kwds)[source]

Get an instance of IncidenceConfig from provided keyword arguments.

If the method argument is IncidenceMethod.ampl_repn and no AMPLRepnVisitor has been provided, a new AMPLRepnVisitor is constructed. This function should generally be used by callers such as IncidenceGraphInterface to ensure that a visitor is created then re-used when calling get_incident_variables in a loop.