Skip to content

Handle equal-return edge case in CLA max_sharpe#744

Open
Whning0513 wants to merge 1 commit into
PyPortfolio:mainfrom
Whning0513:fix-cla-equal-returns-738
Open

Handle equal-return edge case in CLA max_sharpe#744
Whning0513 wants to merge 1 commit into
PyPortfolio:mainfrom
Whning0513:fix-cla-equal-returns-738

Conversation

@Whning0513

Copy link
Copy Markdown

Summary

  • treat None lambdas consistently in CLA case-b comparisons
  • let max_sharpe() fall back to the same solution as min_volatility() when expected returns are equal
  • add a regression test covering equal expected returns

Closes #738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] CLA crashes with TypeError and produces non-deterministic results when expected returns are equal

1 participant