From ee88a2964da94a72a754d7e9fe2c564f0eb9a203 Mon Sep 17 00:00:00 2001 From: Stuart Mitchell Date: Tue, 17 Mar 2015 23:57:58 +1300 Subject: [PATCH] fix for dummy issue again --- .travis.yml | 2 +- src/pulp/pulp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 56e36c2..57a5162 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/src/pulp/pulp.py b/src/pulp/pulp.py index de2c2c6..2e46f9c 100644 --- a/src/pulp/pulp.py +++ b/src/pulp/pulp.py @@ -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