feat: v0.5 optimization suite#4
Merged
Merged
Conversation
…ng optimizers) Implements ADR-034 through ADR-036 and CONTRACT-019: - Glide-path allocation with linear interpolation (resolveWeights) - Mean-variance efficient frontier with long-only QP solver (computeEfficientFrontier) - SS claiming optimizer with SSA adjustment factors (optimizeSsClaiming) - Pension claiming optimizer with early/late factors (optimizePensionClaiming) - Annuity timing optimizer with bundled rate table (optimizeAnnuityTiming) - Projection and MC integration for per-year glide-path weights - 20+ new smoke test assertions; 141 total passing Co-Authored-By: claude-flow <ruv@ruv.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/glide-path.ts):resolveWeights()linearly interpolates portfolio weights across age-based steps. Integrated intorunProjectionand MC loop for per-year weight resolution.src/efficient-frontier.ts):computeEfficientFrontier()with inline long-only QP solver, 20 frontier points, current-portfolio position, max-Sharpe tangency, min-variance, and distance-to-frontier.src/claiming-optimizers.ts):optimizeSsClaiming(62-70, SSA factors),optimizePensionClaiming(55-75, early/late factors),optimizeAnnuityTiming(current to retirement age, bundled rate table). All grid-search with configurable metric.SSA_ADJUSTMENT_FACTORS(9 ages, 2025 rates),ANNUITY_RATE_TABLE(31 ages, male/female).GlidePathStep,FrontierPoint,EfficientFrontierResult,ClaimingOptimizerResultplus new optional Scenario fields.Test plan
🤖 Generated with claude-flow