title: How do you use solve.QP in R using quadprog for investment portfolio optimization with no short sales
body: <p>In R, using quadprog, in the function solve.QP for investment portfolio optimization, how do you set the constraint for the sum of the weights to equal one, and every weight is non-negative, (no short sales)?</p>