<t>The solution to the classical mean-variance optimization problem allowing short positions is...w = lambda * MINV(V) * mu...with w being a vector containing asset weights, lambda representing the risk aversion coefficient, MINV() a matrix inversion operator, V the covariance matrix and mu a vector...