function ex1
cvx_begin
variable x1;
variable x2;
minimize( 0.5*x1*x1 + x2*x2 - 2*x1 - 6*x2);
subject to
x1 + x2 <= 2;
x1 + 2*x2 <= 2;
2*x1 + x2 <= 3;
0 <= x1, 0 <= x2;
cvx_end
display(x1);
display(x2);
display(cvx_optval);
end
