NLWriterInfo

(class from pyomo.repn.plugins.nl_writer)

class pyomo.repn.plugins.nl_writer.NLWriterInfo(var, con, obj, external_libs, row_labels, col_labels, eliminated_vars, scaling)[source]

Bases: object

Return type for NLWriter.write()

variables

The list of (unfixed) Pyomo model variables in the order written to the NL file

Type:

List[VarData]

constraints

The list of (active) Pyomo model constraints in the order written to the NL file

Type:

List[ConstraintData]

objectives

The list of (active) Pyomo model objectives in the order written to the NL file

Type:

List[ObjectiveData]

external_function_libraries

The list of paths to external function libraries referenced by the constraints / objectives written to the NL file

Type:

List[str]

row_labels

The list of string names for the constraints / objectives written to the NL file in the same order as constraints + objectives and the generated .row file.

Type:

List[str]

column_labels

The list of string names for the variables written to the NL file in the same order as the variables and generated .col file.

Type:

List[str]

eliminated_vars

The list of variables in the model that were eliminated by the presolve. Each entry is a 2-tuple of (VarData, :py:class`NumericExpression`|`float`). The list is in the necessary order for correct evaluation (i.e., all variables appearing in the expression must either have been sent to the solver, or appear earlier in this list.

Type:

List[Tuple[VarData, NumericExpression]]

scaling

namedtuple holding 3 lists of (variables, constraints, objectives) scaling factors in the same order (and size) as the variables, constraints, and objectives attributes above.

Type:

ScalingFactors or None

__init__(var, con, obj, external_libs, row_labels, col_labels, eliminated_vars, scaling)[source]

Methods

__init__(var, con, obj, external_libs, ...)

Member Documentation