View source: R/validateMatrices.R
validateMatrices | R Documentation |
Validates the input of a goal programming problem
validateMatrices( A, b, m, w = NULL, p = NULL, setDefaults = FALSE, silent = FALSE )
A |
Numeric matrix with the coefficients of the variables. One row per equation, one column per variable. |
b |
Numeric vector with the values on the right hand side of the goals. |
m |
Character vector with the relationship between the left and
right-hand side of the goals. It can be any of
|
w |
Numeric matrix with the weights associated to the deviations from each goal. It should have as many rows as goals, and two columns: the first column corresponding to the weight of the positive deviation (excess), and the second column corresponding to the weight of the negative deviation (lack). |
p |
Numeric matrix indicating the priority of each deviation under a lexicographic approach. Lower numbers represent higher priority (e.g. from lower to higher priority: 1, 2, 3, ...). It must have as many rows as goals, and two columns. |
setDefaults |
Scalar logical. If TRUE, A, b, m, w, and p are filled in with default values as required. |
silent |
Logical. TRUE to prevent the function writing anything to the console (or the default output). Default is FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.