Hello RobPratt. I have tested your code, it worked greatl. Thank you so much. For my question 2 using SAS macro, I tried using %let group=5, group 1..&group.; it worked. For my question 1: I still have some details to work on, should I consider the objective function you wrote, means to minimize each y-value in group 1..5? min z = sum{j in groups} y[j];<code></code> I tried both using and not using "decomp" option, it made a difference in speed. For the last statement using "decomp", can I also have “iis=on”?Are they comparable? I wish to use MILP/branch and bound/indicate IIS for my project (is that possible?) solve with milp /decomp iis=on;<code></code> I tried to replace “decomp” with "IIS=on"(line 384), it gave me the following error: 384 solve with milp /decomp iis=on; --- 688 22 ERROR 688-782: The option IIS is unrecognized. ERROR 22-322: Expecting one of the following: ABSOBJGAP, ALLCUTS, CONFLICTSEARCH, CUTCLIQUE, CUTFLOWCOVER, CUTFLOWPATH, CUTGOMORY, CUTGUB, CUTIMPLIED, CUTKNAPSACK, CUTLAP, CUTMILIFTED, CUTMIR, CUTOFF, CUTS, CUTSFACTOR, CUTSTRATEGY, CUTZEROHALF, DECOMP, DECOMP_MASTER, DECOMP_MASTER_IP, DECOMP_SUBPROB, EMPHASIS, FEASTOL, HEURISTICS, INTTOL, LOGFREQ, LOGLEVEL, MAXNODES, MAXSOLS, MAXTIME, NODESEL, NOPRIMALIN, OPTTOL, PRESOLVER, PRIMALIN, PRINTFREQ, PRINTLEVEL2, PRIORITY, PROBE, RELOBJGAP, RESTARTS, SCALE, SEED, STRONGITER, STRONGLEN, SYMMETRY, TARGET, TIMETYPE, VARSEL. when I switched to LP, it relax all the constraints and did not pick any x[i] for me. solve with lp / iis=on; WARNING: The problem contains integer variables. The relaxed LP will be solved. Specify the RELAXINT keyword on the SOLVE statement to avoid this warning. NOTE: The IIS= option is enabled. Objective Phase Iteration Value Time P 1 1 1.774000E+03 0 P 1 138 1.121796E+02 0 P 1 233 8.137021E+00 0 P 1 328 3.910344E-01 0 P 1 358 0.000000E+00 0 P 1 359 0.000000E+00 0 NOTE: The IIS= option found this problem to be feasible. NOTE: The IIS solve time is 0.02 seconds.
... View more