| compact {lintools} | R Documentation |
Remove spurious variables and restrictions
Description
A system of linear (in)equations can be compactified by removing
zero-rows and zero-columns (=variables). Such rows and columns may
arise after substitution (see subst_value) or eliminaton
of a variable (see eliminate).
Usage
compact(
A,
b,
x = NULL,
neq = nrow(A),
nleq = 0,
eps = 1e-08,
remove_columns = TRUE,
remove_rows = TRUE,
deduplicate = TRUE,
implied_equations = TRUE
)
Arguments
A |
[ |
b |
[ |
x |
[ |
neq |
[ |
nleq |
[ |
eps |
[ |
remove_columns |
[ |
remove_rows |
[ |
deduplicate |
[ |
implied_equations |
[ |
Value
A list with the following elements.
A: The compactified version of inputAb: The compactified version of inputbx: The compactified version of inputxneq: number of equations in new systemnleq: number of inequations of the forma.x<=bin the new systemcols_removed: [logical] indicates what elements ofx(columns ofA) have been removed
Details
It is assumend that the system of equations is in normalized form (see link{normalize}).