-
Notifications
You must be signed in to change notification settings - Fork 0
/
gpt.eqn.simplex.py
150 lines (136 loc) · 16.5 KB
/
gpt.eqn.simplex.py
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# import the library pulp as p
import pulp as p
# Create a LP Minimization problem
Lp_prob = p.LpProblem('Problem', p.LpMinimize)
# Create problem Variables
x0 = p.LpVariable("x0")
x1 = p.LpVariable("x1")
x2 = p.LpVariable("x2")
x3 = p.LpVariable("x3")
x4 = p.LpVariable("x4")
x5 = p.LpVariable("x5")
x7 = p.LpVariable("x7")
x6 = p.LpVariable("x6")
x8 = p.LpVariable("x8")
x9 = p.LpVariable("x9")
z0 = p.LpVariable("z0", cat = p.LpBinary)
z1 = p.LpVariable("z1", cat = p.LpBinary)
z2 = p.LpVariable("z2", cat = p.LpBinary)
z3 = p.LpVariable("z3", cat = p.LpBinary)
z4 = p.LpVariable("z4", cat = p.LpBinary)
z5 = p.LpVariable("z5", cat = p.LpBinary)
z6 = p.LpVariable("z6", cat = p.LpBinary)
z7 = p.LpVariable("z7", cat = p.LpBinary)
z8 = p.LpVariable("z8", cat = p.LpBinary)
z9 = p.LpVariable("z9", cat = p.LpBinary)
z10 = p.LpVariable("z10", cat = p.LpBinary)
z11 = p.LpVariable("z11", cat = p.LpBinary)
z12 = p.LpVariable("z12", cat = p.LpBinary)
z13 = p.LpVariable("z13", cat = p.LpBinary)
z14 = p.LpVariable("z14", cat = p.LpBinary)
z15 = p.LpVariable("z15", cat = p.LpBinary)
z16 = p.LpVariable("z16", cat = p.LpBinary)
z17 = p.LpVariable("z17", cat = p.LpBinary)
z18 = p.LpVariable("z18", cat = p.LpBinary)
z19 = p.LpVariable("z19", cat = p.LpBinary)
# Objective Function
Lp_prob += z0 + z1 + z2 + z3 + z4 + z5 + z6 + z7 + z8 + z9 + z10 + z11 + z12 + z13 + z14 + z15 + z16 + z17 + z18 + z19
# Constraints:
#Lp_prob += 98*x0+1*x1+37*x2+93*x3+6*x4+33*x5+91*x6+29*x7+37*x8+38*x9<=94+int(1000)*z0
#Lp_prob += 6*x0+93*x1+90*x2+51*x3+30*x4+33*x5+94*x6+98*x7+19*x8+35*x9<=91+int(1000)*z1
#Lp_prob += 36*x0+16*x1+63*x2+55*x3+69*x4+86*x5+96*x6+58*x7+74*x8+84*x9<=85+int(1000)*z2
#Lp_prob += 61*x0+79*x1+76*x2+0*x3+51*x4+73*x5+10*x6+81*x7+8*x8+52*x9<=39+int(1000)*z3
#Lp_prob += 16*x0+82*x1+23*x2+40*x3+48*x4+30*x5+101*x6+62*x7+66*x8+59*x9<=32+int(1000)*z4
#Lp_prob += 33*x0+83*x1+23*x2+64*x3+12*x4+45*x5+93*x6+39*x7+25*x8+89*x9<=39+int(1000)*z5
#Lp_prob += 40*x0+28*x1+97*x2+16*x3+76*x4+71*x5+6*x6+21*x7+87*x8+7*x9<=100+int(1000)*z6
#Lp_prob += 68*x0+34*x1+14*x2+94*x3+75*x4+85*x5+0*x6+1*x7+29*x8+5*x9<=50+int(1000)*z7
#Lp_prob += 58*x0+57*x1+81*x2+73*x3+68*x4+46*x5+65*x6+54*x7+83*x8+49*x9<=57+int(1000)*z8
#Lp_prob += 37*x0+74*x1+0*x2+1*x3+98*x4+88*x5+65*x6+82*x7+25*x8+4*x9<=0+int(1000)*z9
#Lp_prob += 65*x0+53*x1+88*x2+81*x3+33*x4+56*x5+53*x6+84*x7+37*x8+93*x9<=0+int(1000)*z10
#Lp_prob += 99*x0+25*x1+55*x2+53*x3+32*x4+48*x5+77*x6+80*x7+91*x8+54*x9<=0+int(1000)*z11
#Lp_prob += 32*x0+98*x1+10*x2+91*x3+2*x4+34*x5+87*x6+0*x7+30*x8+43*x9<=0+int(1000)*z12
#Lp_prob += 83*x0+24*x1+1*x2+60*x3+66*x4+3*x5+57*x6+29*x7+71*x8+81*x9<=0+int(1000)*z13
#Lp_prob += 52*x0+13*x1+90*x2+77*x3+101*x4+97*x5+63*x6+101*x7+69*x8+87*x9<=0+int(1000)*z14
#Lp_prob += 5*x0+74*x1+90*x2+81*x3+64*x4+5*x5+95*x6+87*x7+12*x8+32*x9<=0+int(1000)*z15
#Lp_prob += 46*x0+16*x1+80*x2+53*x3+94*x4+33*x5+70*x6+88*x7+37*x8+21*x9<=0+int(1000)*z16
#Lp_prob += 34*x0+81*x1+54*x2+49*x3+26*x4+6*x5+51*x6+17*x7+61*x8+14*x9<=0+int(1000)*z17
#Lp_prob += 17*x0+53*x1+25*x2+81*x3+97*x4+99*x5+97*x6+33*x7+41*x8+8*x9<=0+int(1000)*z18
#Lp_prob += 80*x0+28*x1+23*x2+24*x3+29*x4+48*x5+42*x6+11*x7+62*x8+14*x9<=0+int(1000)*z19
#
#Lp_prob += 98*x0+1*x1+37*x2+93*x3+6*x4+33*x5+91*x6+29*x7+37*x8+38*x9>=94-int(1000)*z0
#Lp_prob += 6*x0+93*x1+90*x2+51*x3+30*x4+33*x5+94*x6+98*x7+19*x8+35*x9>=91-int(1000)*z1
#Lp_prob += 36*x0+16*x1+63*x2+55*x3+69*x4+86*x5+96*x6+58*x7+74*x8+84*x9>=85-int(1000)*z2
#Lp_prob += 61*x0+79*x1+76*x2+0*x3+51*x4+73*x5+10*x6+81*x7+8*x8+52*x9>=39-int(1000)*z3
#Lp_prob += 16*x0+82*x1+23*x2+40*x3+48*x4+30*x5+101*x6+62*x7+66*x8+59*x9>=32-int(1000)*z4
#Lp_prob += 33*x0+83*x1+23*x2+64*x3+12*x4+45*x5+93*x6+39*x7+25*x8+89*x9>=39-int(1000)*z5
#Lp_prob += 40*x0+28*x1+97*x2+16*x3+76*x4+71*x5+6*x6+21*x7+87*x8+7*x9>=100-int(1000)*z6
#Lp_prob += 68*x0+34*x1+14*x2+94*x3+75*x4+85*x5+0*x6+1*x7+29*x8+5*x9>=50-int(1000)*z7
#Lp_prob += 58*x0+57*x1+81*x2+73*x3+68*x4+46*x5+65*x6+54*x7+83*x8+49*x9>=57-int(1000)*z8
#Lp_prob += 37*x0+74*x1+0*x2+1*x3+98*x4+88*x5+65*x6+82*x7+25*x8+4*x9>=0-int(1000)*z9
#Lp_prob += 65*x0+53*x1+88*x2+81*x3+33*x4+56*x5+53*x6+84*x7+37*x8+93*x9>=0-int(1000)*z10
#Lp_prob += 99*x0+25*x1+55*x2+53*x3+32*x4+48*x5+77*x6+80*x7+91*x8+54*x9>=0-int(1000)*z11
#Lp_prob += 32*x0+98*x1+10*x2+91*x3+2*x4+34*x5+87*x6+0*x7+30*x8+43*x9>=0-int(1000)*z12
#Lp_prob += 83*x0+24*x1+1*x2+60*x3+66*x4+3*x5+57*x6+29*x7+71*x8+81*x9>=0-int(1000)*z13
#Lp_prob += 52*x0+13*x1+90*x2+77*x3+101*x4+97*x5+63*x6+101*x7+69*x8+87*x9>=0-int(1000)*z14
#Lp_prob += 5*x0+74*x1+90*x2+81*x3+64*x4+5*x5+95*x6+87*x7+12*x8+32*x9>=0-int(1000)*z15
#Lp_prob += 46*x0+16*x1+80*x2+53*x3+94*x4+33*x5+70*x6+88*x7+37*x8+21*x9>=0-int(1000)*z16
#Lp_prob += 34*x0+81*x1+54*x2+49*x3+26*x4+6*x5+51*x6+17*x7+61*x8+14*x9>=0-int(1000)*z17
#Lp_prob += 17*x0+53*x1+25*x2+81*x3+97*x4+99*x5+97*x6+33*x7+41*x8+8*x9>=0-int(1000)*z18
#Lp_prob += 80*x0+28*x1+23*x2+24*x3+29*x4+48*x5+42*x6+11*x7+62*x8+14*x9>=0-int(1000)*z19
Lp_prob += 0.24466453676910788*x1 + 0.2781043939034571*x2 + 0.14786383361159017*x3 + 0.45565781276939105*x4 + 0.27004821180971417*x5 + 0.3663814998295694*x6 + 0.25741174739771017*x7 + 0.1491644797697745*x8 + 0.5807482580003583*x9 + 0.019199632764130295*x0 <= 5.656548674990785 + 1000*z0
Lp_prob += 0.2603961948947088*x1 + 0.13669314610624958*x2 + 0.20126871632010582*x3 + 0.3599909406935211*x4 + 0.28365998310703*x5 + 0.425053682916124*x6 + 0.4964810294294548*x7 + 0.16451775610870856*x8 + 0.10093900867264508*x9 + 0.44556079768573614*x0 <= 4.913954957074022 + 1000*z1
Lp_prob += 0.3674818010605704*x1 + 0.16494703176576408*x2 + 0.04433381131357559*x3 + 0.4006391196599958*x4 + 0.24303578558478256*x5 + 0.4678049324898671*x6 + 0.04728218445295529*x7 + 0.33999935700309075*x8 + 0.43201257147003197*x9 + 0.3047860462676234*x0 <= 5.448607445968843 + 1000*z2
Lp_prob += 0.39809800619734226*x1 + 0.04700473651476128*x2 + 0.36702369812048263*x3 + 0.3315961720086052*x4 + 0.3808150309700967*x5 + 0.16980128502273278*x6 + 0.2538608745574636*x7 + 0.1663401911299869*x8 + 0.43224947351823273*x9 + 0.37661590719581384*x0 <= 5.455714247173259 + 1000*z3
Lp_prob += 0.5583208755498502*x1 + 0.09797775257831252*x2 + 0.41411925436678304*x3 + 0.012124251477773709*x4 + 0.3054660126430288*x5 + 0.19195028092054803*x6 + 0.4273415982287373*x7 + 0.28058920491334866*x8 + 0.24210887503364295*x9 + 0.23856688690510613*x0 <= 5.148954783393769 + 1000*z4
Lp_prob += 0.31903198455958093*x1 + 0.023957399644520625*x2 + 0.39619819736544815*x3 + 0.05272902818840289*x4 + 0.33719256502461303*x5 + 0.25644337421606117*x6 + 0.18604291336380332*x7 + 0.6707033042391682*x8 + 0.021045780908523853*x9 + 0.27116679536670396*x0 <= 4.913739316765195 + 1000*z5
Lp_prob += 0.32074905631409306*x1 + 0.26271834021926055*x2 + 0.3899740609781428*x3 + 0.4012997289679811*x4 + 0.25954889312352736*x5 + 0.36276692566925706*x6 + 0.34939454589992514*x7 + 0.1211834093297481*x8 + 0.40514229395271784*x9 + 0.12292339016093425*x0 <= 5.954917848488359 + 1000*z6
Lp_prob += 0.5170738814603976*x1 + 0.4307635678246414*x2 + 0.22382899286471106*x3 + 0.27268580022806893*x4 + 0.09058553407287019*x5 + 0.16741031871002685*x6 + 0.2530192251610357*x7 + 0.12735966153324146*x8 + 0.0766148082217892*x9 + 0.5479775467425073*x0 <= 4.291736339843097 + 1000*z7
Lp_prob += 0.14775033968402151*x1 + 0.10429423636298214*x2 + 0.40587793057019544*x3 + 0.3742256652590062*x4 + 0.38176840653581173*x5 + 0.40851098680267445*x6 + 0.0447596020444885*x7 + 0.4016593714963907*x8 + 0.39628152270336275*x9 + 0.17178400924617032*x0 <= 6.145974965252754 + 1000*z8
Lp_prob += 0.10539386350190508*x1 + 0.1045270307009827*x2 + 0.11235435043217443*x3 + 0.5000255377862876*x4 + 0.5841992621225499*x5 + 0.3039878844176746*x6 + 0.1066189503799995*x7 + 0.29876758813361237*x8 + 0.15835698357059833*x9 + 0.3948584260305494*x0 <= 4.805982194874375 + 1000*z9
Lp_prob += 0.27793167435485927*x1 + 0.4810411686873334*x2 + 0.36103937546019116*x3 + 0.09313199677849099*x4 + 0.47653420351045095*x5 + 0.3958827016842261*x6 + 0.2680018023528979*x7 + 0.08276368635447502*x8 + 0.15145224725051332*x9 + 0.2586693667847804*x0 <= 5.703535930560339 + 1000*z10
Lp_prob += 1.4186809323625395*x1 + 0.3813129407492526*x2 + 0.37926970478574873*x3 + 0.19924064683090492*x4 + 0.20379737941922635*x5 + 0.3765745572434498*x6 + 0.22545407199573247*x7 + 0.33347396404509*x8 + 0.0017279781482134277*x9 + 0.3877953011192852*x0 <= 5.341056241267836 + 1000*z11
Lp_prob += 1.5202671629503469*x1 + 0.18541867238264292*x2 + 0.15084595348947885*x3 + 0.03493337634934467*x4 + 0.4178035028744957*x5 + 0.24668379054185557*x6 + 0.034174328505124404*x7 + 0.3772273356074758*x8 + 0.4993549641991878*x9 + 0.20671421180262403*x0 <= 5.447642226028235 + 1000*z12
Lp_prob += 1.014691944742953817*x1 + 0.027324848684938938*x2 + 0.03424776894649583*x3 + 0.43052968333132696*x4 + 0.5517044014682866*x5 + 0.29719230309498584*x6 + 0.3303367219065805*x7 + 0.24799602119527112*x8 + 0.033356363508346636*x9 + 0.49806701007321874*x0 <= 4.022065209400558 + 1000*z13
Lp_prob += 1.0240676037865917*x1 + 0.2633210995233208*x2 + 0.27133569076003416*x3 + 0.4080530199726757*x4 + 0.21611083611856513*x5 + 0.3784106408017536*x6 + 0.04533440441823957*x7 + 0.367280186771303*x8 + 0.2675638021038474*x9 + 0.539919981321223*x0 <= 5.462729655322013 + 1000*z14
Lp_prob += 1.3903486666650724*x1 + 0.03749810856245416*x2 + 0.3875591685601036*x3 + 0.25652091773449526*x4 + 0.14456981029218166*x5 + 0.13201783342717716*x6 + 0.24228057671217038*x7 + 0.43580143491639867*x8 + 0.4364830728264769*x9 + 0.39082904208202274*x0 <= 5.383898135177103 + 1000*z15
Lp_prob += 1.48381386723117714*x1 + 0.13834930883866606*x2 + 0.16046113512085658*x3 + 0.26256346180482126*x4 + 0.12254395619171772*x5 + 0.13586766694273156*x6 + 0.02031528602807332*x7 + 0.5134538939825981*x8 + 0.5040099495273302*x9 + 0.3170892269142149*x0 <= 5.0334924147770055 + 1000*z16
Lp_prob += 1.20066723669562797*x1 + 0.08551122408149313*x2 + 0.2916303712216822*x3 + 0.16486359275290882*x4 + 0.4942616095561689*x5 + 0.4192415863611676*x6 + 0.5197235142166257*x7 + 0.27508625001081577*x8 + 0.03956307751021546*x9 + 0.2697850131980609*x0 <= 5.116062629439375 + 1000*z17
Lp_prob += 1.014994164278647021*x1 + 0.3123045199762394*x2 + 0.5939106597096707*x3 + 0.005163845666642987*x4 + 0.11619208844468808*x5 + 0.2533728217349328*x6 + 0.3352571918809283*x7 + 0.060941638530927954*x8 + 0.558043580113219*x9 + 0.2103859103880091*x0 <= 5.760658790791407 + 1000*z18
Lp_prob += 1.07675247623558781*x1 + 0.022755888457226408*x2 + 0.03092072970501835*x3 + 0.5060944242038976*x4 + 0.4748042048877033*x5 + 0.34678081951045187*x6 + 0.13220169411643656*x7 + 0.44149754824121823*x8 + 0.38126721624031723*x9 + 0.1817843123791879*x0 <= 5.051854486474768 + 1000*z19
Lp_prob += 0.24466453676910788*x1 + 0.2781043939034571*x2 + 0.14786383361159017*x3 + 0.45565781276939105*x4 + 0.27004821180971417*x5 + 0.3663814998295694*x6 + 0.25741174739771017*x7 + 0.1491644797697745*x8 + 0.5807482580003583*x9 + 0.019199632764130295*x0 >= 5.656548674990785 - 1000*z0
Lp_prob += 0.2603961948947088*x1 + 0.13669314610624958*x2 + 0.20126871632010582*x3 + 0.3599909406935211*x4 + 0.28365998310703*x5 + 0.425053682916124*x6 + 0.4964810294294548*x7 + 0.16451775610870856*x8 + 0.10093900867264508*x9 + 0.44556079768573614*x0 >= 4.913954957074022 - 1000*z1
Lp_prob += 0.3674818010605704*x1 + 0.16494703176576408*x2 + 0.04433381131357559*x3 + 0.4006391196599958*x4 + 0.24303578558478256*x5 + 0.4678049324898671*x6 + 0.04728218445295529*x7 + 0.33999935700309075*x8 + 0.43201257147003197*x9 + 0.3047860462676234*x0 >= 5.448607445968843 - 1000*z2
Lp_prob += 0.39809800619734226*x1 + 0.04700473651476128*x2 + 0.36702369812048263*x3 + 0.3315961720086052*x4 + 0.3808150309700967*x5 + 0.16980128502273278*x6 + 0.2538608745574636*x7 + 0.1663401911299869*x8 + 0.43224947351823273*x9 + 0.37661590719581384*x0 >= 5.455714247173259 - 1000*z3
Lp_prob += 0.5583208755498502*x1 + 0.09797775257831252*x2 + 0.41411925436678304*x3 + 0.012124251477773709*x4 + 0.3054660126430288*x5 + 0.19195028092054803*x6 + 0.4273415982287373*x7 + 0.28058920491334866*x8 + 0.24210887503364295*x9 + 0.23856688690510613*x0 >= 5.148954783393769 - 1000*z4
Lp_prob += 0.31903198455958093*x1 + 0.023957399644520625*x2 + 0.39619819736544815*x3 + 0.05272902818840289*x4 + 0.33719256502461303*x5 + 0.25644337421606117*x6 + 0.18604291336380332*x7 + 0.6707033042391682*x8 + 0.021045780908523853*x9 + 0.27116679536670396*x0 >= 4.913739316765195 - 1000*z5
Lp_prob += 0.32074905631409306*x1 + 0.26271834021926055*x2 + 0.3899740609781428*x3 + 0.4012997289679811*x4 + 0.25954889312352736*x5 + 0.36276692566925706*x6 + 0.34939454589992514*x7 + 0.1211834093297481*x8 + 0.40514229395271784*x9 + 0.12292339016093425*x0 >= 5.954917848488359 - 1000*z6
Lp_prob += 0.5170738814603976*x1 + 0.4307635678246414*x2 + 0.22382899286471106*x3 + 0.27268580022806893*x4 + 0.09058553407287019*x5 + 0.16741031871002685*x6 + 0.2530192251610357*x7 + 0.12735966153324146*x8 + 0.0766148082217892*x9 + 0.5479775467425073*x0 >= 4.291736339843097 - 1000*z7
Lp_prob += 0.14775033968402151*x1 + 0.10429423636298214*x2 + 0.40587793057019544*x3 + 0.3742256652590062*x4 + 0.38176840653581173*x5 + 0.40851098680267445*x6 + 0.0447596020444885*x7 + 0.4016593714963907*x8 + 0.39628152270336275*x9 + 0.17178400924617032*x0 >= 6.145974965252754 - 1000*z8
Lp_prob += 0.10539386350190508*x1 + 0.1045270307009827*x2 + 0.11235435043217443*x3 + 0.5000255377862876*x4 + 0.5841992621225499*x5 + 0.3039878844176746*x6 + 0.1066189503799995*x7 + 0.29876758813361237*x8 + 0.15835698357059833*x9 + 0.3948584260305494*x0 >= 4.805982194874375 - 1000*z9
Lp_prob += 0.27793167435485927*x1 + 0.4810411686873334*x2 + 0.36103937546019116*x3 + 0.09313199677849099*x4 + 0.47653420351045095*x5 + 0.3958827016842261*x6 + 0.2680018023528979*x7 + 0.08276368635447502*x8 + 0.15145224725051332*x9 + 0.2586693667847804*x0 >= 5.703535930560339 - 1000*z10
Lp_prob += 1.4186809323625395*x1 + 0.3813129407492526*x2 + 0.37926970478574873*x3 + 0.19924064683090492*x4 + 0.20379737941922635*x5 + 0.3765745572434498*x6 + 0.22545407199573247*x7 + 0.33347396404509*x8 + 0.0017279781482134277*x9 + 0.3877953011192852*x0 >= 5.341056241267836 - 1000*z11
Lp_prob += 1.5202671629503469*x1 + 0.18541867238264292*x2 + 0.15084595348947885*x3 + 0.03493337634934467*x4 + 0.4178035028744957*x5 + 0.24668379054185557*x6 + 0.034174328505124404*x7 + 0.3772273356074758*x8 + 0.4993549641991878*x9 + 0.20671421180262403*x0 >= 5.447642226028235 - 1000*z12
Lp_prob += 1.014691944742953817*x1 + 0.027324848684938938*x2 + 0.03424776894649583*x3 + 0.43052968333132696*x4 + 0.5517044014682866*x5 + 0.29719230309498584*x6 + 0.3303367219065805*x7 + 0.24799602119527112*x8 + 0.033356363508346636*x9 + 0.49806701007321874*x0 >= 4.022065209400558 - 1000*z13
Lp_prob += 1.0240676037865917*x1 + 0.2633210995233208*x2 + 0.27133569076003416*x3 + 0.4080530199726757*x4 + 0.21611083611856513*x5 + 0.3784106408017536*x6 + 0.04533440441823957*x7 + 0.367280186771303*x8 + 0.2675638021038474*x9 + 0.539919981321223*x0 >= 5.462729655322013 - 1000*z14
Lp_prob += 1.3903486666650724*x1 + 0.03749810856245416*x2 + 0.3875591685601036*x3 + 0.25652091773449526*x4 + 0.14456981029218166*x5 + 0.13201783342717716*x6 + 0.24228057671217038*x7 + 0.43580143491639867*x8 + 0.4364830728264769*x9 + 0.39082904208202274*x0 >= 5.383898135177103 - 1000*z15
Lp_prob += 1.48381386723117714*x1 + 0.13834930883866606*x2 + 0.16046113512085658*x3 + 0.26256346180482126*x4 + 0.12254395619171772*x5 + 0.13586766694273156*x6 + 0.02031528602807332*x7 + 0.5134538939825981*x8 + 0.5040099495273302*x9 + 0.3170892269142149*x0 >= 5.0334924147770055 - 1000*z16
Lp_prob += 1.20066723669562797*x1 + 0.08551122408149313*x2 + 0.2916303712216822*x3 + 0.16486359275290882*x4 + 0.4942616095561689*x5 + 0.4192415863611676*x6 + 0.5197235142166257*x7 + 0.27508625001081577*x8 + 0.03956307751021546*x9 + 0.2697850131980609*x0 >= 5.116062629439375 - 1000*z17
Lp_prob += 1.014994164278647021*x1 + 0.3123045199762394*x2 + 0.5939106597096707*x3 + 0.005163845666642987*x4 + 0.11619208844468808*x5 + 0.2533728217349328*x6 + 0.3352571918809283*x7 + 0.060941638530927954*x8 + 0.558043580113219*x9 + 0.2103859103880091*x0 >= 5.760658790791407 - 1000*z18
Lp_prob += 1.07675247623558781*x1 + 0.022755888457226408*x2 + 0.03092072970501835*x3 + 0.5060944242038976*x4 + 0.4748042048877033*x5 + 0.34678081951045187*x6 + 0.13220169411643656*x7 + 0.44149754824121823*x8 + 0.38126721624031723*x9 + 0.1817843123791879*x0 >= 5.051854486474768 - 1000*z19
# Display the problem
print(Lp_prob)
solver = p.PULP_CBC_CMD(threads=16)
status = Lp_prob.solve(solver) # Solver
print(p.LpStatus[status]) # The solution status
# Printing the final solution
print(p.value(Lp_prob.objective))
print("x0 = ", p.value(x0))
print("x1 = ", p.value(x1))
print("x2 = ", p.value(x2))
print("x3 = ", p.value(x3))
print("x4 = ", p.value(x4))
print("x5 = ", p.value(x5))
print("x6 = ", p.value(x6))
print("x7 = ", p.value(x7))
print("x8 = ", p.value(x8))
print("x9 = ", p.value(x9))