-
Notifications
You must be signed in to change notification settings - Fork 4
/
oilseed.run
77 lines (59 loc) · 1.23 KB
/
oilseed.run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
reset;
model oilseed.mod;
data oilseed.dat;
option solver gurobi;
solve;
#for
#display x,U,z,y;
printf "\n";
{
for {i in TechPlant}
{
for {t in Tech}
{
if x[t,i] > 0 then
printf "oil processing plant technology %s at growing area %s \n" , t,i;
}
#printf ""
}
}
printf "\n";
{
for {t in Tech}
{
for {i in TechPlant}
{
for {g in GrowingArea}
{
if U[t,i,g] > 0 then
printf "oilseed from %s going to oil technology plant %s \n", g,i;
}
}
}
}
printf "\n";
{
for {i in ExtractPlant}
{
for {t in ExTech}
{
if y[t,i] > 0 then
printf "Extraction plant of level %s at location %s \n" , t,i;
}
#printf ""
}
}
printf "\n";
{
for {t in TechPlant}
{
for {i in ExtractPlant}
{
for {g in ExTech}
{
if z[g,i,t] > 1 then
printf "%s tonnes seed cake going from oil technology plant %s to extraction plant %s \n", z[g,i,t],t,i;
}
}
}
}