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
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
1"A simple primal infeasible example"
2from gpkit import Variable, Model
4x = Variable("x")
5y = Variable("y")
7m = Model(x*y, [
8 x >= 1,
9 y >= 2,
10 x*y >= 0.5,
11 x*y <= 1.5
12])
14# raises UnknownInfeasible on cvxopt, PrimalInfeasible on mosek
15# m.solve()