Indiana University   Hangeul KB Help Sitemap Calc Links

SAS/OR

This page provides a summary of SAS/OR for policy modeling.

SAS icon

SAS/OR BASICS

SAS icon

INDENSE FORMAT

DATA mixing;
INPUT _ID_ $ x y z _TYPE_ $ _RHS_;
DATALINES;
object 5 3 2 MAX .
C1 4 1 0 LE 15
C2 2 0 4 LE 20;
RUN;

PROC LP; RUN;

SAS icon

SPARSE FORMAT

DATA mixing;
FORMAT _TYPE_ $4. _ROW_ $7. _COL_ $5.;
INPUT _TYPE_ $ _ROW_ $ _COL_ $ _COEF_;
DATALINES;
MAX Object . .
. Object x 5
. Object y 3
. Object z 2
LE C1 . .
. C1 x 4
. C1 y 1
. C1 _RHS_ 15
LE C2 . .
. C2 x 2
. C2 z 4
. C2 _RHS_ 20;
RUN;

PROC LP DATA=mixing SPARSEDATA DUALOUT=mix_dual RANGE x y z;
RUN;

SAS icon

PROC LP

PROC LP PRIMALOUT=mix_prim TABLEAUOUT=mix_tabl RANGEPRICE;
   PIVOT;
   COEF coeff;
   RHS rhs;
   RANGE x y z;
RUN;

PROC PRINT DATA=mix_prim; RUN; /*to print primal solution*/
RUN;

SAS icon

PROC CPM

DATA software;
INPUT id $char10. days 3.0 act $char2. sc1 $char2. sc2 $char2.
DATALINES;
Analysis 03 A B
Design 04 B C D
Coding 05 C D
Test 03 D E
Producing 03 E F
Packing 06 F
; RUN;

PROC CPM DATA=software OUT=soft_out INTERVAL=day DATE='01dec2001'd;
   ID id;
   ACTIVITY act;
   DURATION days;
   SUCCESSOR sc1 sc2;
RUN;
SAS icon

PROC PM

SAS icon

REFERENCES