-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Holdings Container - unDirty #1 (1, 2, 3) - Holdings Container - unDirty #2 (4, 5, 6) - Holdings Container - unDirty #3 (7, 8, 9) - Holdings Container - unDirty #4 (10, 11) - Holdings Container - unDirty #5 (12, 13) - Holdings Container - Asset Weight Map (14) - Holdings Container - Asset Market Value (15) - Holdings Container - Asset Set #1 (16, 17) - Holdings Container - Asset Set #2 (18, 19) - Holdings Container - Set Cash #1 (20, 21) - Holdings Container - Set Cash #2 (22, 23, 24) - Holdings Container - Set Cash #3 (25, 26, 27) - Holdings Container - Set Cash #4 (28, 29, 30) - Holdings Container - Set Cash #5 (31, 32, 33) - Holdings Container - Set Cash #6 (34) - Lean Portfolio Construction Trades Container (35, 36, 37) - Trades Container - Asset Quantity Map (38, 39, 40) - Holdings Container - Remove Asset #1 (41, 42) - Holdings Container - Remove Asset #2 (43, 44, 45) - Holdings Container - Remove Asset #3 (46, 47, 48) - Holdings Container - Remove Asset #4 (49, 50) - Trades Container - Annotated Constructor #1 (51, 52, 53) - Trades Container - Annotated Constructor #2 (54, 55, 56) - Trades Container - Annotated Constructor #3 (57, 58) - Trades Container - Starting/Ending Holdings #1 (59, 60) - Trades Container - Starting/Ending Holdings #2 (61, 62, 63) - Trades Container - Starting/Ending Holdings #3 (64, 65, 66) - Trades Container - Starting/Ending Holdings #4 (67, 68, 69) - Trades Container - Starting/Ending Holdings #5 (70, 71, 72) - Trades Container - Starting/Ending Holdings #6 (73, 74, 75) - Trades Container - Starting/Ending Holdings #7 (76, 77, 78) - Trades Container - Starting/Ending Holdings #8 (79, 80, 81) - Trades Container - Starting/Ending Holdings #9 (82, 83) - Lean Portfolio Construction Post Processor Settings (84, 85, 86) - Post Processor Settings - Filter Sells #1 (87, 88, 89) - Post Processor Settings - Filter Sells #2 (90, 91) - Post Processor Settings - Constructor #1 (92, 93) - Post Processor Settings - Constructor #2 (94, 95, 96) - Lean Portfolio Construction Allocator Shell (97, 98, 99) - Lean Portfolio Construction Allocator Allocate #1 (100, 101) - Lean Portfolio Construction Allocator Allocate #2 (102, 103) - Lean Portfolio Construction Optimizer Optimize (104, 105) - Construction/Usage of Lean Portfolio Allocator (106, 107, 108) - Lean Allocator Buy Only Allocation (109, 110, 111) - Buy Only Allocation - Main #1 (112, 113, 114) - Buy Only Allocation - Main #2 (115, 116, 117) - Buy Only Allocation - Zero to Hundred (118, 119) - Buy Only Allocation - Random Holdings (120) Bug Fixes/Re-organization: Samples: IdeaDRIP:
- Loading branch information
Showing
7 changed files
with
724 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
Features: | ||
|
||
- Holdings Container - unDirty #1 (1, 2, 3) | ||
- Holdings Container - unDirty #2 (4, 5, 6) | ||
- Holdings Container - unDirty #3 (7, 8, 9) | ||
- Holdings Container - unDirty #4 (10, 11) | ||
- Holdings Container - unDirty #5 (12, 13) | ||
- Holdings Container - Asset Weight Map (14) | ||
- Holdings Container - Asset Market Value (15) | ||
- Holdings Container - Asset Set #1 (16, 17) | ||
- Holdings Container - Asset Set #2 (18, 19) | ||
- Holdings Container - Set Cash #1 (20, 21) | ||
- Holdings Container - Set Cash #2 (22, 23, 24) | ||
- Holdings Container - Set Cash #3 (25, 26, 27) | ||
- Holdings Container - Set Cash #4 (28, 29, 30) | ||
- Holdings Container - Set Cash #5 (31, 32, 33) | ||
- Holdings Container - Set Cash #6 (34) | ||
- Lean Portfolio Construction Trades Container (35, 36, 37) | ||
- Trades Container - Asset Quantity Map (38, 39, 40) | ||
- Holdings Container - Remove Asset #1 (41, 42) | ||
- Holdings Container - Remove Asset #2 (43, 44, 45) | ||
- Holdings Container - Remove Asset #3 (46, 47, 48) | ||
- Holdings Container - Remove Asset #4 (49, 50) | ||
- Trades Container - Annotated Constructor #1 (51, 52, 53) | ||
- Trades Container - Annotated Constructor #2 (54, 55, 56) | ||
- Trades Container - Annotated Constructor #3 (57, 58) | ||
- Trades Container - Starting/Ending Holdings #1 (59, 60) | ||
- Trades Container - Starting/Ending Holdings #2 (61, 62, 63) | ||
- Trades Container - Starting/Ending Holdings #3 (64, 65, 66) | ||
- Trades Container - Starting/Ending Holdings #4 (67, 68, 69) | ||
- Trades Container - Starting/Ending Holdings #5 (70, 71, 72) | ||
- Trades Container - Starting/Ending Holdings #6 (73, 74, 75) | ||
- Trades Container - Starting/Ending Holdings #7 (76, 77, 78) | ||
- Trades Container - Starting/Ending Holdings #8 (79, 80, 81) | ||
- Trades Container - Starting/Ending Holdings #9 (82, 83) | ||
- Lean Portfolio Construction Post Processor Settings (84, 85, 86) | ||
- Post Processor Settings - Filter Sells #1 (87, 88, 89) | ||
- Post Processor Settings - Filter Sells #2 (90, 91) | ||
- Post Processor Settings - Constructor #1 (92, 93) | ||
- Post Processor Settings - Constructor #2 (94, 95, 96) | ||
- Lean Portfolio Construction Allocator Shell (97, 98, 99) | ||
- Lean Portfolio Construction Allocator Allocate #1 (100, 101) | ||
- Lean Portfolio Construction Allocator Allocate #2 (102, 103) | ||
- Lean Portfolio Construction Optimizer Optimize (104, 105) | ||
- Construction/Usage of Lean Portfolio Allocator (106, 107, 108) | ||
- Lean Allocator Buy Only Allocation (109, 110, 111) | ||
- Buy Only Allocation - Main #1 (112, 113, 114) | ||
- Buy Only Allocation - Main #2 (115, 116, 117) | ||
- Buy Only Allocation - Zero to Hundred (118, 119) | ||
- Buy Only Allocation - Random Holdings (120) | ||
|
||
|
||
Bug Fixes/Re-organization: | ||
|
||
Samples: | ||
|
||
IdeaDRIP: |
This file contains 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
104 changes: 104 additions & 0 deletions
104
src/main/java/org/drip/portfolioconstruction/lean/Optimizer.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
|
||
package org.drip.portfolioconstruction.lean; | ||
|
||
/* | ||
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- | ||
*/ | ||
|
||
/*! | ||
* Copyright (C) 2024 Lakshmi Krishnamurthy | ||
* | ||
* This file is part of DROP, an open-source library targeting analytics/risk, transaction cost analytics, | ||
* asset liability management analytics, capital, exposure, and margin analytics, valuation adjustment | ||
* analytics, and portfolio construction analytics within and across fixed income, credit, commodity, | ||
* equity, FX, and structured products. It also includes auxiliary libraries for algorithm support, | ||
* numerical analysis, numerical optimization, spline builder, model validation, statistical learning, | ||
* graph builder/navigator, and computational support. | ||
* | ||
* https://lakshmidrip.github.io/DROP/ | ||
* | ||
* DROP is composed of three modules: | ||
* | ||
* - DROP Product Core - https://lakshmidrip.github.io/DROP-Product-Core/ | ||
* - DROP Portfolio Core - https://lakshmidrip.github.io/DROP-Portfolio-Core/ | ||
* - DROP Computational Core - https://lakshmidrip.github.io/DROP-Computational-Core/ | ||
* | ||
* DROP Product Core implements libraries for the following: | ||
* - Fixed Income Analytics | ||
* - Loan Analytics | ||
* - Transaction Cost Analytics | ||
* | ||
* DROP Portfolio Core implements libraries for the following: | ||
* - Asset Allocation Analytics | ||
* - Asset Liability Management Analytics | ||
* - Capital Estimation Analytics | ||
* - Exposure Analytics | ||
* - Margin Analytics | ||
* - XVA Analytics | ||
* | ||
* DROP Computational Core implements libraries for the following: | ||
* - Algorithm Support | ||
* - Computation Support | ||
* - Function Analysis | ||
* - Graph Algorithm | ||
* - Model Validation | ||
* - Numerical Analysis | ||
* - Numerical Optimizer | ||
* - Spline Builder | ||
* - Statistical Learning | ||
* | ||
* Documentation for DROP is Spread Over: | ||
* | ||
* - Main => https://lakshmidrip.github.io/DROP/ | ||
* - Wiki => https://github.com/lakshmiDRIP/DROP/wiki | ||
* - GitHub => https://github.com/lakshmiDRIP/DROP | ||
* - Repo Layout Taxonomy => https://github.com/lakshmiDRIP/DROP/blob/master/Taxonomy.md | ||
* - Javadoc => https://lakshmidrip.github.io/DROP/Javadoc/index.html | ||
* - Technical Specifications => https://github.com/lakshmiDRIP/DROP/tree/master/Docs/Internal | ||
* - Release Versions => https://lakshmidrip.github.io/DROP/version.html | ||
* - Community Credits => https://lakshmidrip.github.io/DROP/credits.html | ||
* - Issues Catalog => https://github.com/lakshmiDRIP/DROP/issues | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* <i>Optimizer</i> exposes Functionality for optimizing the given Portfolio | ||
* | ||
* <br><br> | ||
* <ul> | ||
* <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/PortfolioCore.md">Portfolio Core Module</a></li> | ||
* <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/AssetAllocationAnalyticsLibrary.md">Asset Allocation Analytics</a></li> | ||
* <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/portfolioconstruction/README.md">Portfolio Construction under Allocation Constraints</a></li> | ||
* <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/portfolioconstruction/lean/README.md">"Lean" Portfolio Construction Utilities Suite</a></li> | ||
* </ul> | ||
* | ||
* @author Lakshmi Krishnamurthy | ||
*/ | ||
|
||
public interface Optimizer | ||
{ | ||
|
||
/** | ||
* Optimize from the Starting Holdings | ||
* | ||
* @param startingHoldingsContainer Starting Holdings | ||
* | ||
* @return The Allocated Holdings | ||
*/ | ||
|
||
public abstract HoldingsContainer optimize ( | ||
final HoldingsContainer startingHoldingsContainer | ||
); | ||
} |
Oops, something went wrong.