Syntax: OPTMODEL Procedure
PROC OPTMODEL statements are divided into three categories: the
PROC statement, the declaration
statements, and the programming statements.
The PROC statement invokes the procedure and sets initial option
values. The declaration statements declare optimization model
components. The programming statements are used to read and write
data, invoke the solver, and print results. The statements are listed
in the order in which they appear in the following text, with
declaration statements first.
Note: Solver specific options are described in the individual chapters corresponding to the solvers.
- PROC OPTMODEL options ;
- Declaration Statements:
- CONSTRAINT constraints ;
- MAX objective ;
- MIN objective ;
- NUMBER parameter declarations ;
- SET [ < types > ] parameter declarations ;
- STRING parameter declarations ;
- VAR variable declarations ;
- Programming Statements:
- parameter = expression ;
(Assignment)
- CALL name [ ( expressions ) ] ;
- CLOSEFILE files ;
- CONTINUE ;
- CREATE DATA SAS-data-set FROM columns ;
- DO ; statements ; END ;
- DO variable = specifications ; statements ; END ;
- DO UNTIL ( logic ) ; statements ; END ;
- DO WHILE ( logic ) ; statements ; END ;
- DROP constraint ;
- EXPAND name [ / options ] ;
- FILE file ;
- FIX variable [ = expression ] ;
- FOR { index set } statement ;
- IF logic THEN statement ; [ ELSE statement ; ]
- LEAVE ;
- ; (Null)
- PRINT print items ;
- PUT put items ;
- READ DATA SAS-data-set INTO columns ;
- RESET OPTIONS options ;
- RESTORE constraint ;
- SAVE MPS SAS-data-set ;
- SAVE QPS SAS-data-set ;
- SOLVE
[ WITH solver ] [
OBJECTIVE name ] [
/ options
;
- STOP ;
- UNFIX variable [ = expression ] ;
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.