Adding yaposib and pyglpk in another test case for the slack and duals

This commit is contained in:
Christophe-Marie Duquesne
2012-04-04 13:14:55 +02:00
parent a8f60823a5
commit 1217cadaac

View File

@@ -340,7 +340,8 @@ def pulpTest075(solver):
x = LpVariable("x", 0, 4, LpContinuous, obj + b) x = LpVariable("x", 0, 4, LpContinuous, obj + b)
y = LpVariable("y", -1, 1, LpContinuous, 4*obj - c) y = LpVariable("y", -1, 1, LpContinuous, 4*obj - c)
z = LpVariable("z", 0, None, LpContinuous, 9*obj + b + c) z = LpVariable("z", 0, None, LpContinuous, 9*obj + b + c)
if solver.__class__ in [CPLEX_DLL, CPLEX_CMD, COINMP_DLL]: if solver.__class__ in [CPLEX_DLL, CPLEX_CMD, COINMP_DLL, YAPOSIB,
PYGLPK]:
print "\t Testing column based modelling with empty constraints" print "\t Testing column based modelling with empty constraints"
pulpTestCheck(prob, solver, [LpStatusOptimal], {x:4, y:-1, z:6}) pulpTestCheck(prob, solver, [LpStatusOptimal], {x:4, y:-1, z:6})