Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
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()