#define FU 0 #define HA 1 #define HU 2 #define KO 3 #define CHIPS 3 #define STATIONS 4 int chips[CHIPS]; double revenue[STATIONS]; int rqd_chps[CHIPS][STATIONS]; string models[STATIONS]; continuous Workstations[STATIONS],Revenue; data() { chips = { 6200, 5500, 8800 }; revenue = { 70, 78.50, 42.50, 230 }; rqd_chps = { 1, 1, 0, 3, 2, 1, 2, 1, 1, 1, 1, 3 }; } constraints() { and(int i=0; i= 750; Workstations[b] == 0.0; } 2lp_main() { data(); constraints(); objective(); // Revenue is maximized here Revenue >= .875*wp(Revenue); either one_but_not_the_other(FU,HA); or one_but_not_the_other(HA,FU); either Workstations[HU] == 0.0; or Workstations[KO] == 0.0; max: Revenue; output(); }