fix for dummy issue again

This commit is contained in:
Stuart Mitchell
2015-03-17 23:57:58 +13:00
parent 045a0ce53e
commit ee88a2964d
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ python:
- "pypy"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq glpk
- sudo apt-get install -qq glpk python-glpk
#- pip install glpk
#- sudo apt-get install coinor-cbc
# command to install dependencies

View File

@@ -1502,7 +1502,7 @@ class LpProblem(object):
dummyVar = self.get_dummyVar()
constraint += dummyVar
#set this dummyvar to zero so infeasible problems are not made feasible
f.write((dummyVar == 0.0).asCplexLpConstraint(k))
f.write((dummyVar == 0.0).asCplexLpConstraint("_dummy"))
f.write(constraint.asCplexLpConstraint(k))
vs = self.variables()
# check if any names are longer than 100 characters