Coverage for docs\source\examples\primal_infeasible_ex1.py: 0%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

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()