Fitting data with a concave nonnegative nondecreasing quadratic function. We are given the data
x1,…,xN∈Rn,y1,…,yN∈R,
and wish to fit a quadratic function of the form
f(x)=(1/2)xTPx+qTx+r,
where P∈Sn, q∈Rn, and r∈R are the parameters in the model (and, therefore, the variables in the fitting problem).
Our model will be used only on the box B={x∈Rn∣l⪯x⪯u}. You can assume that l≺u, and that the given data points xi are in this box.
We will use the simple sum of squared errors objective,
i=1∑N(f(xi)−yi)2,
as the criterion for the fit. We also impose several constraints on the function f. First, it must be concave. Second, it must be nonnegative on B, i.e., f(z)≥0 for all z∈B. Third, f must be nondecreasing on B, i.e., whenever z,z~∈B satisfy z⪯z~, we have f(z)≤f(z~).
Show how to formulate this fitting problem as a convex problem. Simplify your formulation as much as you can.