Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
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 a column, and defines a coefficient or a numerical value in the model. 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. 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 specify the coefficients or other numerical data. The SAS data set can contain multiple pairs of row 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 shows the keywords that are recognized by PROC LP and in which variables can appear in the problem data set. The SAS data set that describes the sparse model must contain at least four SAS variables: a type variable, a column variable, a row variable, and a coefficient variable. Each observation in the data set defines one or more rows or coefficients in the model. The value of the type variable is a keyword that tells PROC LP how to interpret the observation. The values of the row and column variables name the rows and columns in the model. The values of the coefficient variables define coefficients and lower and upper bounds and identify model variables with type BASIC, FIXED, BINARY, and INTEGER. All character values in the sparse data input format are case insensitive.

Table 3.4: Variable Keywords Used in the Problem Data Set
TYPE (_TYPE_) COL (_COL_)
MIN 
MAX 
EQ 
LE 
GE 
SOSEQ 
SOSLE 
UNRSTRCT 
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.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.