changxin commited on
Commit
a43574f
·
1 Parent(s): e907ccd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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)