sparseConstraints: DEPRECATED Generate sparse set of constraints.

Description Usage Arguments Value Details

Description

This function is deprecated. Please use function sparse_constraints from package lintools instead.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
sparseConstraints(x, ...)

## S3 method for class 'editmatrix'
sparseConstraints(x, tol = 1e-08, ...)

## S3 method for class 'matrix'
sparseConstraints(x, b, neq = length(b), tol = 1e-08,
  ...)

## S3 method for class 'data.frame'
sparseConstraints(x, b, neq = length(b),
  base = min(x[, 2]), sorted = FALSE, ...)

## S3 method for class 'sparseConstraints'
print(x, range = 1L:10L, ...)

Arguments

x

R object to be translated to sparseConstraints format.

...

options to be passed to other methods

tol

Tolerance for testing where coefficients are zero

b

Constant vector

neq

The first new equations are interpreted as equality constraints, the rest as '<='

base

are the indices in x[,1:2] base 0 or base 1?

sorted

is x sorted by the first column?

range

integer vector stating which constraints to print

Value

Object of class sparseConstraints (see details).

Details

The sparseConstraints objects holds the system \boldsymbol{Ax}≤q \boldsymbol{b} in column sparse format, outside of R's memory. In R, it is a reference object. In particular, it is meaningless to


rspa documentation built on June 19, 2019, 5:03 p.m.