I want to solve an overdetermined system of the form Ax=b
where A
is a (m x n)
matrix (with m>n
), b
is a (m)
vector and x
is the vector of the unknowns. I want also to bound the solution with lb
and ub
.
Giving the following program:
(QP)minimize transpose(x).D.x+transpose(c).x+c0
subject to Ax⋛b,l≤x≤u
I wonder how to calculate the matrix D and the vector c. Because the matrix D has to be symmetric I have defined it as D=transpose(A).A
and c
as c=-transpose(A).b
. My question is: Is this representation correct? If no, how should I define D and c?