Resources

A Simple Integer Program (lp8)

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: LP8                                                 */
/*   TITLE: A Simple Integer Program (lp8)                      */
/* PRODUCT: OR                                                  */
/*  SYSTEM: ALL                                                 */
/*    KEYS: LP                                                  */
/*   PROCS: LP                                                  */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT:                             UPDATE:                 */
/*     REF:                                                     */
/*    MISC:                                                     */
/*                                                              */
/****************************************************************/

data;
   format _row_ $10. ;
   input _row_ $ choco gumdr ichoco igumdr _type_ $ _rhs_;
   datalines;
object        .25    .75   -100    -75 max        .
cooking        15     40      0      0 le     27000
color           0  56.25      0      0 le     27000
package     18.75      0      0      0 le     27000
condiments     12     50      0      0 le     27000
chocolate       1      0 -10000      0 le         0
gum             0      1      0 -10000 le         0
only_one        0      0      1      1 eq         1
binary          .      .      1      2 binary     .
;


proc lp;
run;