Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import json,pulp
|
|
3 |
def fx(x,y):
|
4 |
m=pulp.LpProblem()
|
5 |
x=list(map(int,x.split(',')))
|
6 |
-
y=int(y)
|
7 |
t=[pulp.LpVariable('t'+str(i),cat=pulp.LpBinary) for i in range(len(x))]
|
8 |
m+=pulp.lpDot(x,t)
|
9 |
m+=(pulp.lpDot(x,t)==y)
|
|
|
3 |
def fx(x,y):
|
4 |
m=pulp.LpProblem()
|
5 |
x=list(map(int,x.split(',')))
|
|
|
6 |
t=[pulp.LpVariable('t'+str(i),cat=pulp.LpBinary) for i in range(len(x))]
|
7 |
m+=pulp.lpDot(x,t)
|
8 |
m+=(pulp.lpDot(x,t)==y)
|