I got following error while I was using solve.QP() in my problem:
> Dmat = matrix(c(0.0001741, 0.0001280, 0.0001280, 0.0002570), nrow=2)
> dvec = t(c(0,0))
> Amat = matrix(c(-1,1,0,-1,0, 1,0,1,0,-1), nrow=5)
> bvec = c(-20000, 1, 1, -50000, -50000)
> solve.QP(Dmat,dvec,Amat,bvec=bvec)
Error in solve.QP(Dmat, dvec, Amat, bvec = bvec) :
Amat and dvec are incompatible!
>
Can anyone tell me where is the error in my definition?
Regards,
---------------------------------
[[elided Yahoo spam]]
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.