Coverage for docs/source/examples/primal_infeasible_ex1.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-03 16:47 -0500

1"A simple primal infeasible example" 

2from gpkit import Variable, Model 

3 

4x = Variable("x") 

5y = Variable("y") 

6 

7m = Model(x*y, [ 

8 x >= 1, 

9 y >= 2, 

10 x*y >= 0.5, 

11 x*y <= 1.5 

12]) 

13 

14# raises UnknownInfeasible on cvxopt, PrimalInfeasible on mosek 

15# m.solve()