Portfolio Optimization, Quantitative Finance, Python Programming, Convex Optimization, Data Science.
the variable in the problem, has to be a convex set. Supposed there are K available assets. w and r are K-dimensional vectors, representing weights and expected returns of K assets respectively, and Σ is a K x K covariance matrix, storing the volatilities and correlations of the asset pairs.