Incidence Options
Configuration options for incidence graph generation
- pyomo.contrib.incidence_analysis.config.IncidenceConfig = <pyomo.common.config.ConfigDict object>
Options for incidence graph generation
include_fixed
– Flag indicating whether fixed variables should be included in the incidence graphlinear_only
– Flag indicating whether only variables that participate linearly should be included.method
– Method used to identify incident variables. Must be a value of theIncidenceMethod
enum._ampl_repn_visitor
– Expression visitor used to generateAMPLRepn
of each constraint. Must be an instance ofAMPLRepnVisitor
. This option is constructed automatically when needed and should not be set by users!
- enum pyomo.contrib.incidence_analysis.config.IncidenceMethod(value)[source]
Methods for identifying variables that participate in expressions
Valid values are as follows:
- identify_variables = <IncidenceMethod.identify_variables: 0>
- standard_repn = <IncidenceMethod.standard_repn: 1>
- standard_repn_compute_values = <IncidenceMethod.standard_repn_compute_values: 2>
- ampl_repn = <IncidenceMethod.ampl_repn: 3>
- enum pyomo.contrib.incidence_analysis.config.IncidenceOrder(value)[source]
An enumeration.
Valid values are as follows:
- dulmage_mendelsohn_upper = <IncidenceOrder.dulmage_mendelsohn_upper: 0>
- dulmage_mendelsohn_lower = <IncidenceOrder.dulmage_mendelsohn_lower: 1>
- pyomo.contrib.incidence_analysis.config.get_config_from_kwds(**kwds)[source]
Get an instance of IncidenceConfig from provided keyword arguments.
If the
method
argument isIncidenceMethod.ampl_repn
and noAMPLRepnVisitor
has been provided, a newAMPLRepnVisitor
is constructed. This function should generally be used by callers such asIncidenceGraphInterface
to ensure that a visitor is created then re-used when callingget_incident_variables
in a loop.