Method for adding constraints to a linear program

Share:

Description

Additional arguments to the addCon-method pertinent to the defined S4-classes in this package are detailed below.

Usage

1
2
## S4 method for signature 'CLPD'
addCon(object, A, dir, rhs)  

Arguments

object

CLPD: an object of class "CLPD", ordinarily returned by a call to LPD().

A

matrix: The row(s) to be added to the constraint matrix.

dir

vector: The character vector of the relational operators '<=', '==', '>='.

rhs

vector: The corresponding rhs-values. The length of this vector must be identical to the row dimension of A.

Value

"CLPD": The LP definition with the newly included constraints.

Author(s)

Bernhard Pfaff

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.