We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c83e902 commit 2adc8d1Copy full SHA for 2adc8d1
1 file changed
src/portfolio.jl
@@ -62,7 +62,9 @@ is to minimize the portfolio variance (risk) subject to constraints on the expec
62
Mathematically, the problem can be stated as:
63
64
Minimize: w' * Covmat * w
65
+
66
Subject to:
67
68
- sum(w) == 1 (the weights must sum to 1)
69
- sum(w[i] * means[i] for i in 1:m) >= thresholdreturn
70
- 0 <= w[i] <= 1 for all i (weights must be between 0 and 1)
@@ -116,4 +118,4 @@ function solve(p::PortfolioProblem)::PortfolioResult
116
118
end
117
119
120
-end # end of module
121
+end # end of module
0 commit comments