Skip to content

Commit

Permalink
Update taming.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm authored Oct 23, 2023
1 parent 2eb2f2f commit 97601aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion experiments/taming.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def unconstrained_markowitz(inputs: OptimizationInput) -> np.ndarray:
c = cp.Variable()
objective = mu @ w

chol = np.linalg.cholesky(Sigma)
chol = np.transpose(np.linalg.cholesky(Sigma))
# chol should now be an upper triangular matrix

constraints = [
cp.sum(w) + c == 1,
cp.norm2(chol @ w) <= inputs.risk_target,
Expand Down

0 comments on commit 97601aa

Please sign in to comment.