A linear constraint for a linear optimization problem.
A linear constraint has one of the forms:
- c1x1 + ... cnxn = v
- c1x1 + ... cnxn <= v
- c1x1 + ... cnxn >= v
- l1x1 + ... lnxn + lcst = r1x1 + ... rnxn + rcst
- l1x1 + ... lnxn + lcst <= r1x1 + ... rnxn + rcst
- l1x1 + ... lnxn + lcst >= r1x1 + ... rnxn + rcst
The c
i, l
i or r
i are the coefficients of the constraints, the x
i are the coordinates of the current point and v is the value of the constraint.
@deprecated As of 3.1 (to be removed in 4.0).
@since 2.0