Skip to content

qp: add portfolio_large and risk_parity finance benchmarks#6

Open
dhru189 wants to merge 1 commit intocvxpy:mainfrom
dhru189:qp/add-finance-benchmarks
Open

qp: add portfolio_large and risk_parity finance benchmarks#6
dhru189 wants to merge 1 commit intocvxpy:mainfrom
dhru189:qp/add-finance-benchmarks

Conversation

@dhru189
Copy link

@dhru189 dhru189 commented Mar 6, 2026

##summary
Added 3 new QP benchmark problems for quantitative finance:

  • qp/portfolio_large: large scale portfolio (2000 assets)
  • qp/risk_parity_small: risk parity portfolio (50 assets)
  • qp/risk_parity_medium: risk parity portfolio (500 assets)

These problems complement the existing portfolio_small and
portfolio_medium benchmarks and cover missing finance problem
types commonly used in production quant systems.

Bug Fix

Also fixed existing test failure in test_problems_have_type_tag
by adding "ecp" to valid_types set.

Testing

  • All 11 tests passing ✅
  • Benchmark results included in results/ folder
  • Tested on Windows with SCS, CLARABEL, OSQP solvers

Closes #2

cc @WilliamZijieZhang

Added 3 new QP benchmark problems for quantitative finance:
- qp/portfolio_large: large scale portfolio (2000 assets)
- qp/risk_parity_small: risk parity portfolio (50 assets)
- qp/risk_parity_medium: risk parity portfolio (500 assets)
Also fixed existing test failure by adding ecp to valid_types.
Closes cvxpy#2
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.

Add benchmarks from cvxpy/benchmarks

1 participant