Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The NLP Procedure

MATRIX Statement

MATRIX M_name pattern_definitions ;

The MATRIX statement defines a matrix H and the vector g, which can be given in the MINQUAD or MAXQUAD statement. The matrix H and vector g are initialized to zero, so that only the nonzero elements are given. The five different forms of the MATRIX statement are illustrated with the following example.
H = [ 100 & 10 & 1 & 0 \ 10 & 100 & 10 & 1 \ 1 & 10 & 100 & 10 \ 0 & 1 & 10 & 100 \ ] 
 g = [ 1 \ 2 \ 3 \ 4 \ ]  c = 0.
Each MATRIX statement first names the matrix or vector and then lists its elements. If more than one MATRIX statement is given for the same matrix, then later definitions override the earlier ones.

The rows and columns in matrix H and vector g correspond to the order of decision variables in the DECVAR statement.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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