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
|
\ This file was automatically generated by Zimpl
\ set I := { 1 .. 10 };
\ set J := { "a", "b", "c", "x", "y", "z" };
\ param a := 5;
\ param b := "hallo";
\ param c[I] := <1> "a", <2> "b", <3> "c";
\ param d[I] := <2> "x", <3> "y" default "z";
\ param e[<i> in I with i > 5] := i + 2;
\ param f[<5,j> in I * { "a", "b" }] := j;
\ param g[J] := <"a"> 1, <"b"> 2, <"c"> 3, <"x"> 4, <"y"> 5, <"z"> 9;
\ param h[I*J] := | "a", "c", "x", "z" | |1| 12, 17, 99, 23 | |3| 4, 3,-17, 66*5.5 | |5| 2/3, -.4, 3, abs(-4)|
\ |9| 1, 2, 0, 3 | default -99;
\ var x[I];
\ subto a1: a * x[1] >= 0;
\ subto b2: if b == "hallo" then 5 else 3 end * x[1] >= 0;
\ subto c1 : sum <i> in I with i < 4: g[c[i]] * x[i] >= 0;
\ subto d1 : sum <i> in I : g[d[i]] * x[i] >= 0;
\ subto e1 : sum <i> in I with i > 5: e[i] * x[i] >= 0;
\ subto f1 : g[f[5,"a"]] * x[1] + g[f[5,"b"]] * x[2] >= 0;
\ subto h1 : sum <i,j> in I*J with h[i,j] != -99: h[i,j] * x[i] >= 0;
\Problem name: param.zpl
Minimize
Objective:
Subject to
a1_1:
+5 x#1 >= 0
b2_1:
+5 x#1 >= 0
c1_1:
+3 x#3 +2 x#2 + x#1 >= 0
d1_1:
+9 x#10 +9 x#9 +9 x#8 +9 x#7 +9 x#6 +9 x#5
+9 x#4 +5 x#3 +4 x#2 +9 x#1 >= 0
e1_1:
+12 x#10 +11 x#9 +10 x#8 +9 x#7 +8 x#6 >= 0
f1_1:
+2 x#2 + x#1 >= 0
h1_1:
+6 x#9 +7.26666666666667 x#5 +353 x#3 +151 x#1 >= 0
Bounds
0 <= x#1 <= +inf
0 <= x#2 <= +inf
0 <= x#3 <= +inf
0 <= x#4 <= +inf
0 <= x#5 <= +inf
0 <= x#6 <= +inf
0 <= x#7 <= +inf
0 <= x#8 <= +inf
0 <= x#9 <= +inf
0 <= x#10 <= +inf
End
|