The LP Procedure

Sparse Data Input Format

The sparse format to PROC LP is designed to enable you to specify only the nonzero coefficients in the description of linear programs, integer programs, and mixed-integer programs. The SAS data set that describes the sparse model must contain at least four SAS variables:

Each observation in the data set associates a type with a row or column, and defines a coefficient or numerical value in the model. The value of the type variable is a keyword that tells PROC LP how to interpret the observation. In addition to the keywords in the dense format, PROC LP also recognizes the keywords RHS, RHSSEN, and RANGE as values of the type variable. Table 3.4 shows the keywords that are recognized by PROC LP and in which variables can appear in the problem data set.

The values of the row and column variables are the names of the rows and columns in the model. The values of the coefficient variables define basic coefficients and lower and upper bounds, and identify model variables with types BASIC, FIXED, BINARY, and INTEGER. All character values in the sparse data input format are case insensitive.

The SAS data set can contain multiple pairs of rows and coefficient variables. In this way, more information about the model can be specified in each observation in the data set. See Example 3.2 for details.


Table 3.4: Variable Keywords Used in the Problem Data Set
TYPE (_TYPE_) COL (_COL_)
MIN 
MAX 
EQ 
LE 
GE 
SOSEQ 
SOSLE 
UNRSTRT 
LOWERBD 
UPPERBD 
FIXED 
INTEGER 
BINARY 
BASIC 
PRICESEN 
FREE 
RHS_RHS_
RHSSEN_RHSSEN_
RANGE_RANGE_
*xxxxxxx 
Follow these rules for sparse data input:

When the column names appear in the Variable Summary in the PROC LP output, they are listed in alphabetical order. The row names appear in the order in which they appear in the problem data set.

Previous Page | Next Page | Top of Page