To obtain results in more readable form you can use the printf
statement, for example:

...
minimize obj: sum{j in J} used[j];
/* objective is to minimize the number of bins used */

solve;

for {j in J}
{       printf "Items in bin %d:", j;
        printf{i in I: x[i,j]} " %d", i;
        printf "\n";
}

data;
...




_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to