'Tests basic LPs. (from test_elemental.py)'

def test_lp(self):

    if (CBC in installed_solvers()):
        prob = Problem(Minimize(0), [(self.x == 2)])
        prob.solve(verbose=False, solver=CBC)
        self.assertAlmostEqual(prob.value, 0)
        self.assertItemsAlmostEqual(self.x.value, [2, 2])
        prob = Problem(Minimize((- self.a)), [(self.a <= 1)])
        prob.solve(verbose=False, solver=CBC)
        self.assertAlmostEqual(prob.value, (-1))
        self.assertAlmostEqual(self.a.value, 1)
