When I was forming a portfolio in fPortfolio.

I set:

Constraints=“Short”

setSolver= “solveRquadprog”

tg=tangencyPortfolio(tt, Spec, Constraints)

then get an error:

Error in .rquadprog(Dmat = args$Dmat, dvec = args$dvec, Amat = args$Amat, :
  NA/NaN/Inf in foreign function call (arg 8)

If I use "LongOnly", there is NO problem?

who can help me to fix it?thanks

	[[alternative HTML version deleted]]

