lemon-project-template-glpk
annotate deps/glpk/examples/plan.lp @ 9:33de93886c88
Import GLPK 4.47
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 20:59:10 +0100 |
parents | |
children |
rev | line source |
---|---|
alpar@9 | 1 \* plan.lp *\ |
alpar@9 | 2 |
alpar@9 | 3 Minimize |
alpar@9 | 4 value: .03 bin1 + .08 bin2 + .17 bin3 + .12 bin4 + .15 bin5 + |
alpar@9 | 5 .21 alum + .38 silicon |
alpar@9 | 6 |
alpar@9 | 7 Subject To |
alpar@9 | 8 yield: bin1 + bin2 + bin3 + bin4 + bin5 + |
alpar@9 | 9 alum + silicon = 2000 |
alpar@9 | 10 |
alpar@9 | 11 fe: .15 bin1 + .04 bin2 + .02 bin3 + .04 bin4 + .02 bin5 + |
alpar@9 | 12 .01 alum + .03 silicon <= 60 |
alpar@9 | 13 |
alpar@9 | 14 cu: .03 bin1 + .05 bin2 + .08 bin3 + .02 bin4 + .06 bin5 + |
alpar@9 | 15 .01 alum <= 100 |
alpar@9 | 16 |
alpar@9 | 17 mn: .02 bin1 + .04 bin2 + .01 bin3 + .02 bin4 + .02 bin5 <= 40 |
alpar@9 | 18 |
alpar@9 | 19 mg: .02 bin1 + .03 bin2 + .01 bin5 <= 30 |
alpar@9 | 20 |
alpar@9 | 21 al: .70 bin1 + .75 bin2 + .80 bin3 + .75 bin4 + .80 bin5 + |
alpar@9 | 22 .97 alum >= 1500 |
alpar@9 | 23 |
alpar@9 | 24 si1: .02 bin1 + .06 bin2 + .08 bin3 + .12 bin4 + .02 bin5 + |
alpar@9 | 25 .01 alum + .97 silicon >= 250 |
alpar@9 | 26 |
alpar@9 | 27 si2: .02 bin1 + .06 bin2 + .08 bin3 + .12 bin4 + .02 bin5 + |
alpar@9 | 28 .01 alum + .97 silicon <= 300 |
alpar@9 | 29 |
alpar@9 | 30 Bounds |
alpar@9 | 31 bin1 <= 200 |
alpar@9 | 32 bin2 <= 2500 |
alpar@9 | 33 400 <= bin3 <= 800 |
alpar@9 | 34 100 <= bin4 <= 700 |
alpar@9 | 35 bin5 <= 1500 |
alpar@9 | 36 |
alpar@9 | 37 End |
alpar@9 | 38 |
alpar@9 | 39 \* eof *\ |