Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperjo committed Oct 22, 2023
1 parent 2eb2f2f commit da80f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experiments/taming.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def unconstrained_markowitz(inputs: OptimizationInput) -> np.ndarray:
chol = np.linalg.cholesky(Sigma)
constraints = [
cp.sum(w) + c == 1,
cp.norm2(chol @ w) <= inputs.risk_target,
cp.norm2(chol.T @ w) <= inputs.risk_target,
]
problem = cp.Problem(cp.Maximize(objective), constraints)
problem.solve(get_solver())
Expand Down

0 comments on commit da80f7d

Please sign in to comment.