constraint-class function

Class 'constraint': a single constraint

Class 'constraint': a single constraint

constraint is an S4 class for representing a single constraint. class

Slots

  • constraint: the numeric index of the constraint.

  • constraint_id: the character ID of the constraint.

  • nc: the number of MIP-format constraints translated from this constraint.

  • mat,dir,rhs: these represent MIP-format constraints. A single MIP-format constraint is associated with a row in mat, a value in rhs, and a value in dir.

      * the **i**-th row of `mat` represents LHS coefficients to use on decision variables in the **i**-th MIP-format constraint.
      * the **i**-th value of `rhs` represents RHS values to use in the **i**-th MIP-format constraint.
      * the **i**-th value of `dir` represents the imposed constraint between LHS and RHS.
    
  • suspend: TRUE if the constraint is not to be imposed.

  • Maintainer: Seung W. Choi
  • License: GPL (>= 2)
  • Last published: 2024-08-22