public class PortfolioOptimizationAlgorithmDemo extends Object
Using this example. Calls getOptimalWeights on a returns matrix, then applies TopNOptimizationAlgorithm and associates the vector with products using PortfolioWeights. Rows are observations and columns are products. The zero initial vector and null optional arguments shown here belong to this optimizer configuration; check the concrete algorithm contract before reusing them.
Model and publication. Related theory and the scope of this example are distinguished below.
Implementation in this tutorial. Builds a composable Lai2010OptimizationAlgorithm with a long-only/shrunk-mean optimizer, Ledoit–Wolf moments and a resampler, then uses getOptimalWeights and a TopN transformation. The selected components and post-processing define an adaptation, not a paper replication.
| Constructor and Description |
|---|
PortfolioOptimizationAlgorithmDemo() |
public static void main(String[] args) throws IOException, Exception
IOExceptionExceptionCopyright © 2026. All rights reserved.