Previous Page | Next Page

The OPTMODEL Procedure

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 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 that correspond to the solvers.

PROC OPTMODEL options ;
CONSTRAINT constraints ;
IMPVAR optimization expression declarations ;
MAX objective ;
MIN objective ;
NUMBER parameter declarations ;
PROBLEM problem declaration ;
SET [ <types> ] parameter declarations ;
STRING parameter declarations ;
VAR variable declarations ;
Assignment parameter = expression ;
CALL name [ ( expressions ) ] ;
CLOSEFILE files ;
CONTINUE ;
CREATE DATA SAS-data-set columns ;
DO ; statements ; ;
DO variable = specifications ; statements ; ;
DO UNTIL ( logic ) ; statements ; ;
DO WHILE ( logic ) ; statements ; ;
DROP constraint ;
EXPAND name [ / options ] ;
FILE file ;
FIX variable [ = expression ] ;
FOR { index-set } statement ;
IF logic statement ; [ statement ] ;
LEAVE ;
;
PRINT print items ;
PUT put items ;
QUIT ;
READ DATA SAS-data-set columns ;
RESET OPTIONS options ;
RESTORE constraint ;
SAVE MPS SAS-data-set ;
SAVE QPS SAS-data-set ;
SOLVE [ solver ] [ name ] [ ] [ / options ] ;
STOP ;
UNFIX variable [ = expression ] ;
USE PROBLEM problem ;
Previous Page | Next Page | Top of Page