I am new to R and am trying to solve a QP problem using R. I keep getting the following error :
Amat and dvec are incompatible.
here my code:
d <- 4
Fr <- as.vector(Fr) ;
Aeq <- matrix(data=1, nrow=1, ncol=d) %*% U
Amat <- rbind(Aeq,U);
bv <- vector( mode= "integer", length = nrow(Amat))
bv[1] <- 1
neq <- 1
output_qp <- solve.QP(S, Fr, Amat, bv, neq, factorized=FALSE)