Description Usage Arguments Details
From a coefficient matrix, add slack variables.
1 2 3 |
A |
Coefficient matrix. |
rows |
Index of rows which are _not_ equality constraints. If left blank, all are assumed to be inequality constraints. |
This operation comes in two flavors, goverened by functions
slack()
and slackdir()
. For the former, given a
coefficient matrix A
and an index of rows rows
,
this will return the coefficient matrix with slack variables
added appropriately. The latter does the same, but for
extreme direction problems; in particular, it adds the constraint
for the sum of the d
's.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.