Skip to content

Commit 2adc8d1

Browse files
committed
fix formatting of Portfolio docs
1 parent c83e902 commit 2adc8d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/portfolio.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ is to minimize the portfolio variance (risk) subject to constraints on the expec
6262
Mathematically, the problem can be stated as:
6363
6464
Minimize: w' * Covmat * w
65+
6566
Subject to:
67+
6668
- sum(w) == 1 (the weights must sum to 1)
6769
- sum(w[i] * means[i] for i in 1:m) >= thresholdreturn
6870
- 0 <= w[i] <= 1 for all i (weights must be between 0 and 1)
@@ -116,4 +118,4 @@ function solve(p::PortfolioProblem)::PortfolioResult
116118
end
117119

118120

119-
end # end of module
121+
end # end of module

0 commit comments

Comments
 (0)