P - a subtype of Productpublic class PortfolioOptimComparisons2Demo<P extends Product> extends Object
Using this example. Compares allocation algorithms on historical price data. Some branches reference local China datasets and an absolute Windows Compustat path; choose the intended branch and configure those inputs before running. Consistent asset ordering and common estimation periods are essential to the comparison.
Model and publication. Related theory and the scope of this example are distinguished below.
Implementation in this tutorial. Compares allocation methods on selected historical/local data. A common estimation window and asset ordering are required for a fair comparison. Several alternative dataset branches are embedded in main; results depend on the branch and its data coverage.
| Constructor and Description |
|---|
PortfolioOptimComparisons2Demo(Collection<NamedParam> params,
DynamicCacheProvider<P> dataProvider) |
PortfolioOptimComparisons2Demo(Collection<NamedParam> params,
DynamicCacheProvider<P> dataProvider,
TradabilityLookup tradabilityLookup) |
public PortfolioOptimComparisons2Demo(Collection<NamedParam> params, DynamicCacheProvider<P> dataProvider)
public PortfolioOptimComparisons2Demo(Collection<NamedParam> params, DynamicCacheProvider<P> dataProvider, TradabilityLookup tradabilityLookup)
public void run()
throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2026. All rights reserved.