COIN-OR::LEMON - Graph Library

source: lemon-project-template-glpk/deps/glpk/examples/plan.mod @ 10:5545663ca997

subpack-glpk
Last change on this file since 10:5545663ca997 was 9:33de93886c88, checked in by Alpar Juttner <alpar@…>, 13 years ago

Import GLPK 4.47

File size: 929 bytes
Line 
1/* plan.mod */
2
3var bin1, >= 0, <= 200;
4var bin2, >= 0, <= 2500;
5var bin3, >= 400, <= 800;
6var bin4, >= 100, <= 700;
7var bin5, >= 0, <= 1500;
8var alum, >= 0;
9var silicon, >= 0;
10
11minimize
12
13value: .03 * bin1 + .08 * bin2 + .17 * bin3 + .12 * bin4 + .15 * bin5 +
14       .21 * alum + .38 * silicon;
15
16subject to
17
18yield: bin1 + bin2 + bin3 + bin4 + bin5 + alum + silicon = 2000;
19
20fe: .15 * bin1 + .04 * bin2 + .02 * bin3 + .04 * bin4 + .02 * bin5 +
21    .01 * alum + .03 * silicon <= 60;
22
23cu: .03 * bin1 + .05 * bin2 + .08 * bin3 + .02 * bin4 + .06 * bin5 +
24    .01 * alum <= 100;
25
26mn: .02 * bin1 + .04 * bin2 + .01 * bin3 + .02 * bin4 + .02 * bin5
27    <= 40;
28
29mg: .02 * bin1 + .03 * bin2 + .01 * bin5 <= 30;
30
31al: .70 * bin1 + .75 * bin2 + .80 * bin3 + .75 * bin4 + .80 * bin5 +
32    .97 * alum >= 1500;
33
34si: 250 <= .02 * bin1 + .06 * bin2 + .08 * bin3 + .12 * bin4 +
35    .02 * bin5 + .01 * alum + .97 * silicon <= 300;
36
37end;
38
39/* eof */
Note: See TracBrowser for help on using the repository browser.