Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The NLP Procedure

Program Statements

This section lists the program statements used to code the objective function and nonlinear constraints and their derivatives, and it documents the differences between program statements in the NLP procedure and program statements in the DATA step. The syntax of program statements used in PROC NLP is identical to those used in the CALIS, GENMOD, and MODEL procedures (refer to the SAS ETS User's Guide).

Most of the program statements which can be used in the SAS DATA step can also be used in the NLP procedure. See the SAS Language Guide or the SAS Base documentation for a description of the SAS program statements.


ABORT;  
CALL name [ ( expression [, expression ... ] ) ]; 
DELETE; 
DO [ variable = expression
		 		 [ TO expression ] [                BY expression ]
		 		 [, expression [ TO expression ] [                BY expression ] ... ]
		 ]
		 [ WHILE expression ] [                UNTIL expression ]; 
END;  
GOTO statement_label; 
IF expression; 
IF expression THEN program_statement;
		 ELSE program_statement; 
variable = expression; 
variable + expression; 
LINK statement_label; 
PUT [ variable] [=] [...] ; 
RETURN; 
SELECT [( expression )]; 
STOP; 
SUBSTR( variable, index, length             ) = expression; 
WHEN ( expression) program_statement;
		 OTHERWISE program_statement; 

For the most part, the SAS program statements work as they do in the SAS DATA step as documented in the SAS Language Guide. However, there are several differences that should be noted.

It is recommended to keep some kind of order in the input of NLP, that is, between the statements that define decision variables and constraints and the program code used to specify objective functions and derivatives.

Use of Special Variables in Program Code

Except for the quadratic programming techniques (QUADAS and LICOMP) that do not execute program statements during the iteration process, several special variables in the program code can be used to communicate with PROC NLP in special situations:

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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