/****************************************************************************
* This program is taken from the following book. If using please cite it as: *
* Emrouznejad, A. and W. Ho (2012). Applied Operations Research with SAS, *
* CRC Press: Taylor Francis Ltd, ISBN: 9781439841303.*
* For details please visit: http://www.sas-or.com. *
****************************************************************************/
*Program 1.4: Set and indexing in PROC OPTMODEL;
proc optmodel;
set row ;
set col ;
row={“Bank1”, “Bank2”, “Bank3”, “Bank4”};
col={“Labour”, “Capital”, “Profit”};
number bank{r in row, c in col}=
[10, 2000, 30,
50, 40000, 68,
8, 25000, 45,
18, 70000, 50;
print bank;
quit;
/****************************************************************************
******************************END of the program*****************************
****************************************************************************/>