'Test scalar LP problems.'

def test_scalar_lp(self):

    x1 = Variable()
    x2 = Variable()
    obj = Minimize(((- x1) - x2))
    constraints = [(((2 * x1) + x2) >= 1), ((x1 + (3 * x2)) >= 1), (x1 >= 0), (x2 >= 0)]
    p_unb = Problem(obj, constraints)
    p_inf = Problem(Minimize(x1), [(0 <= x1), (x1 <= (-1))])
    for solver in [ECOS, CVXOPT, SCS]:
        if (CVXOPT in installed_solvers()):
            print solver
            p_unb.solve(solver=solver)
            self.assertEqual(p_unb.status, UNBOUNDED)
            p_inf.solve(solver=solver)
            self.assertEqual(p_inf.status, INFEASIBLE)
