Skip to content

feat: joint convex portfolio optimization and Barra risk contracts - #27

Merged
PureSaber merged 6 commits into
mainfrom
codex/optimizer-barra-v2
Oct 14, 2026
Merged

PureSaber merged 6 commits into
mainfrom
codex/optimizer-barra-v2

Conversation

@PureSaber

Copy link
Copy Markdown
Owner

Portfolio constraints previously used a faulty bounded-simplex projection and post-hoc turnover interpolation, while the research risk bridge could omit tracking-error inputs. Solve the complete problem against real holdings with CVXPY/OSQP/Clarabel and independently verify every published target.

Adds versioned whole-account allocation, dense or factor-form PIT risk snapshots, absolute/active risk, mature non-overlapping IC forecasts, convex tail-risk and positive-domain ratio objectives, explicit solver failure states, structured diagnostics, and deterministic exact-cash integer repair. The legacy mean–variance implementation is an explicitly selected comparison backend. Existing score configurations keep their declared meaning; fixed historical environments remain the exact reproduction route.

Validation: 529 tests passed, one skipped, 80.78% coverage on a normally installed Python 3.10 environment; Python 3.11 ordinary install also passed 529 tests with 80.76% coverage and pip check. Includes 200 seeded independent SLSQP comparisons, projection KKT checks, the joint-turnover maximum-Sharpe regression, pool-external benchmark and partial-cash cases, inaccurate-result rejection, minimum fees and known unsellable holdings. CI now covers Python 3.10–3.12 on Windows and Linux. Factor-only 200/1,000/6,000-asset benchmark script is included.

Dependencies: PureSaber/quant-data-kit#46 and PureSaber/quant-execution#34. Integer repair is a feasible local search, not a global integer optimality claim. Ratio definitions retain their explicit ratio objective; estimated costs are reported and verified during execution repair.

@PureSaber
PureSaber marked this pull request as ready for review October 14, 2026 16:09
@PureSaber
PureSaber merged commit f1636ab into main Oct 14, 2026
8 checks passed
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.

1 participant