Configuration options for incidence graph generation
Methods for identifying variables that participate in expressions
Use pyomo.core.expr.visitor.identify_variables
pyomo.core.expr.visitor.identify_variables
Use pyomo.repn.standard_repn.generate_standard_repn
pyomo.repn.standard_repn.generate_standard_repn
Use pyomo.repn.standard_repn.generate_standard_repn with compute_values=True
compute_values=True
Use pyomo.repn.ampl.AMPLRepnVisitor
pyomo.repn.ampl.AMPLRepnVisitor
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.
method
IncidenceMethod.ampl_repn
AMPLRepnVisitor
IncidenceGraphInterface
get_incident_variables
Options for incidence graph generation
include_fixed – Flag indicating whether fixed variables should be included in the incidence graph
include_fixed
linear_only – Flag indicating whether only variables that participate linearly should be included.
linear_only
method – Method used to identify incident variables. Must be a value of the IncidenceMethod enum.
IncidenceMethod
_ampl_repn_visitor – Expression visitor used to generate AMPLRepn of each constraint. Must be an instance of AMPLRepnVisitor. This option is constructed automatically when needed and should not be set by users!
_ampl_repn_visitor
AMPLRepn