% Initial guess
x0 = [0.1; -0.2];

% Objective function
H = [1 0; 0 0];  q = [-2; 0];

% Equality constraint
A = [0 1];  b = 0;

% Bounds
lb = [-1; -1];  ub = [2 2];

% This doesn't work
A_lb = [];  A_in = [];  A_ub = [];
[x obj info lambda] = qp (x0, H, q, A, b, lb, ub, A_lb, A_in, A_ub);

%% This works
%A_lb = [];  A_in = zeros (0, 2);  A_ub = [];
%[x obj info lambda] = qp (x0, H, q, A, b, lb, ub, A_lb, A_in, A_ub);

assert (x, [2; 0], eps);
