def testBasicBasis(self): # this should work as it's in the examples lp = LP() lp.addConstraint( (0, 1), "<", 3) lp.addConstraint( (1, 1), "<", 3) lp.setMaximize() lp.setObjective([1,1]) lp.solve(guess = [3,3]) self.assert_(lp.getInfo("Iterations") == 0, lp.getInfo("Iterations"))
def testBasicBasis(self): # this should work as it's in the examples lp = LP() lp.addConstraint((0, 1), "<", 3) lp.addConstraint((1, 1), "<", 3) lp.setMaximize() lp.setObjective([1, 1]) lp.solve(guess=[3, 3]) self.assert_(lp.getInfo("Iterations") == 0, lp.getInfo("Iterations"))