\HeaderA{monomvn.solve.QP}{Solve a Quadratic Program}{monomvn.solve.QP}
\keyword{optimize}{monomvn.solve.QP}
\begin{Description}\relax
Solve a Quadratic Program specified by a \code{QP} object
using the covariance matrix and mean vector specified
\end{Description}
\begin{Usage}
\begin{verbatim}
monomvn.solve.QP(S, QP, mu = NULL)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{S}] a positive-definite covariance \code{matrix} whose
dimensions agree with the Quadratic Program, e.g.,
\code{nrow(QP\$Amat)} 
\item[\code{QP}] a Quadratic Programming object like one that can
be generated automatically by \code{default.QP} 
\item[\code{mu}] an mean vector with
\code{length(mu) = nrow(QP\$Amat)} that is required
if \code{QP\$dmu == TRUE} or \code{QP\$mu.constr[1] != 0}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The protocol executed by this function is identical to
the one used on samples of \eqn{\Sigma}{} and \eqn{\mu}{}
obtained in \code{\LinkA{bmonomvn}{bmonomvn}} when a Quadratic Program
is specified through the \code{QP} argument.  For more details
on the specification of the Quadratic Program implied by a
\code{QP} object, please see \code{\LinkA{default.QP}{default.QP}} and
the examples therein
\end{Details}
\begin{Value}
The output is a vector whose length agrees with
the dimension of \code{S}, describing the solution to the
Quadratic Program given
\end{Value}
\begin{Author}\relax
Robert B. Gramacy \email{bobby@statslab.cam.ac.uk}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{default.QP}{default.QP}}, \code{\LinkA{bmonomvn}{bmonomvn}},
and \code{\LinkA{solve.QP}{solve.QP}} in the \pkg{quadprog} package
\end{SeeAlso}

