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
methodargument isIncidenceMethod.ampl_repnand noAMPLRepnVisitorhas been provided, a newAMPLRepnVisitoris constructed. This function should generally be used by callers such asIncidenceGraphInterfaceto ensure that a visitor is created then re-used when callingget_incident_variablesin a loop.