LinearStandardFormInfo

(class from pyomo.repn.plugins.standard_form)

class pyomo.repn.plugins.standard_form.LinearStandardFormInfo(c, c_offset, A, rhs, rows, columns, objectives, eliminated_vars)[source]

Bases: object

Return type for LinearStandardFormCompiler.write()

c

The objective coefficients. Note that this is a sparse array and may contain multiple rows (for multiobjective problems). The objectives may be calculated by c @ x

Type:

scipy.sparse.csc_array

c_offset

The list of objective constant offsets

Type:

numpy.ndarray

A

The constraint coefficients. The constraint bodies may be calculated by A @ x

Type:

scipy.sparse.csc_array

rhs

The constraint right-hand sides.

Type:

numpy.ndarray

rows

The list of Pyomo constraint objects corresponding to the rows in A. Each element in the list is a 2-tuple of (ConstraintData, row_multiplier). The row_multiplier will be +/- 1 indicating if the row was multiplied by -1 (corresponding to a constraint lower bound) or +1 (upper bound).

Type:

List[Tuple[ConstraintData, int]]

columns

The list of Pyomo variable objects corresponding to columns in the A and c matrices.

Type:

List[VarData]

objectives

The list of Pyomo objective objects corresponding to the active objectives

Type:

List[ObjectiveData]

eliminated_vars

The list of variables from the original model that do not appear in the standard form (usually because they were replaced by nonnegative variables). 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 appeared in the standard form, or appear earlier in this list.

Type:

List[Tuple[VarData, NumericExpression]]

__init__(c, c_offset, A, rhs, rows, columns, objectives, eliminated_vars)[source]

Methods

__init__(c, c_offset, A, rhs, rows, columns, ...)

Attributes

b

Alias for rhs

x

Alias for columns

Member Documentation

property b

Alias for rhs

property x

Alias for columns