PortfolioPathAggregationCorrelated.java

  1. package org.drip.sample.netting;

  2. import org.drip.analytics.date.*;
  3. import org.drip.exposure.evolver.LatentStateVertexContainer;
  4. import org.drip.exposure.universe.*;
  5. import org.drip.measure.discrete.SequenceGenerator;
  6. import org.drip.measure.dynamics.*;
  7. import org.drip.measure.process.DiffusionEvolver;
  8. import org.drip.measure.realization.*;
  9. import org.drip.numerical.common.FormatUtil;
  10. import org.drip.numerical.linearalgebra.Matrix;
  11. import org.drip.service.env.EnvManager;
  12. import org.drip.state.identifier.OTCFixFloatLabel;
  13. import org.drip.xva.gross.*;
  14. import org.drip.xva.netting.CollateralGroupPath;
  15. import org.drip.xva.strategy.*;
  16. import org.drip.xva.vertex.AlbaneseAndersen;

  17. /*
  18.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  19.  */

  20. /*!
  21.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  22.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  23.  *
  24.  *  This file is part of DRIP, a free-software/open-source library for buy/side financial/trading model
  25.  *      libraries targeting analysts and developers
  26.  *      https://lakshmidrip.github.io/DRIP/
  27.  *  
  28.  *  DRIP is composed of four main libraries:
  29.  *  
  30.  *  - DRIP Fixed Income - https://lakshmidrip.github.io/DRIP-Fixed-Income/
  31.  *  - DRIP Asset Allocation - https://lakshmidrip.github.io/DRIP-Asset-Allocation/
  32.  *  - DRIP Numerical Optimizer - https://lakshmidrip.github.io/DRIP-Numerical-Optimizer/
  33.  *  - DRIP Statistical Learning - https://lakshmidrip.github.io/DRIP-Statistical-Learning/
  34.  *
  35.  *  - DRIP Fixed Income: Library for Instrument/Trading Conventions, Treasury Futures/Options,
  36.  *      Funding/Forward/Overnight Curves, Multi-Curve Construction/Valuation, Collateral Valuation and XVA
  37.  *      Metric Generation, Calibration and Hedge Attributions, Statistical Curve Construction, Bond RV
  38.  *      Metrics, Stochastic Evolution and Option Pricing, Interest Rate Dynamics and Option Pricing, LMM
  39.  *      Extensions/Calibrations/Greeks, Algorithmic Differentiation, and Asset Backed Models and Analytics.
  40.  *
  41.  *  - DRIP Asset Allocation: Library for model libraries for MPT framework, Black Litterman Strategy
  42.  *      Incorporator, Holdings Constraint, and Transaction Costs.
  43.  *
  44.  *  - DRIP Numerical Optimizer: Library for Numerical Optimization and Spline Functionality.
  45.  *
  46.  *  - DRIP Statistical Learning: Library for Statistical Evaluation and Machine Learning.
  47.  *
  48.  *  Licensed under the Apache License, Version 2.0 (the "License");
  49.  *      you may not use this file except in compliance with the License.
  50.  *  
  51.  *  You may obtain a copy of the License at
  52.  *      http://www.apache.org/licenses/LICENSE-2.0
  53.  *  
  54.  *  Unless required by applicable law or agreed to in writing, software
  55.  *      distributed under the License is distributed on an "AS IS" BASIS,
  56.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  57.  *  
  58.  *  See the License for the specific language governing permissions and
  59.  *      limitations under the License.
  60.  */

  61. /**
  62.  * PortfolioPathAggregationCorrelated generates the Aggregation of the Portfolio Paths evolved using
  63.  *  Correlated Market Parameters. The References are:
  64.  *  
  65.  *  - Burgard, C., and M. Kjaer (2014): PDE Representations of Derivatives with Bilateral Counter-party Risk
  66.  *      and Funding Costs, Journal of Credit Risk, 7 (3) 1-19.
  67.  *  
  68.  *  - Burgard, C., and M. Kjaer (2014): In the Balance, Risk, 24 (11) 72-75.
  69.  *  
  70.  *  - Gregory, J. (2009): Being Two-faced over Counter-party Credit Risk, Risk 20 (2) 86-90.
  71.  *  
  72.  *  - Li, B., and Y. Tang (2007): Quantitative Analysis, Derivatives Modeling, and Trading Strategies in the
  73.  *      Presence of Counter-party Credit Risk for the Fixed Income Market, World Scientific Publishing,
  74.  *      Singapore.
  75.  *
  76.  *  - Piterbarg, V. (2010): Funding Beyond Discounting: Collateral Agreements and Derivatives Pricing, Risk
  77.  *      21 (2) 97-102.
  78.  *
  79.  * @author Lakshmi Krishnamurthy
  80.  */

  81. public class PortfolioPathAggregationCorrelated {

  82.     private static final double[] NumeraireValueRealization (
  83.         final DiffusionEvolver deNumeraireValue,
  84.         final double dblNumeraireValueInitial,
  85.         final double dblTime,
  86.         final double dblTimeWidth,
  87.         final double[] adblRandom,
  88.         final int iNumStep)
  89.         throws Exception
  90.     {
  91.         double[] adblNumeraireValue = new double[iNumStep + 1];
  92.         adblNumeraireValue[0] = dblNumeraireValueInitial;
  93.         double[] adblTimeWidth = new double[iNumStep];

  94.         for (int i = 0; i < iNumStep; ++i)
  95.             adblTimeWidth[i] = dblTimeWidth;

  96.         JumpDiffusionEdge[] aJDE = deNumeraireValue.incrementSequence (
  97.             new JumpDiffusionVertex (
  98.                 dblTime,
  99.                 dblNumeraireValueInitial,
  100.                 0.,
  101.                 false
  102.             ),
  103.             JumpDiffusionEdgeUnit.Diffusion (
  104.                 adblTimeWidth,
  105.                 adblRandom
  106.             ),
  107.             dblTimeWidth
  108.         );

  109.         for (int j = 1; j <= iNumStep; ++j)
  110.             adblNumeraireValue[j] = aJDE[j - 1].finish();

  111.         return adblNumeraireValue;
  112.     }

  113.     private static final double[] VertexNumeraireRealization (
  114.         final DiffusionEvolver deNumeraireValue,
  115.         final double dblNumeraireValueInitial,
  116.         final double dblTime,
  117.         final double dblTimeWidth,
  118.         final double[] adblRandom,
  119.         final int iNumStep)
  120.         throws Exception
  121.     {
  122.         double[] adblNumeraireValue = new double[iNumStep + 1];
  123.         double[] adblTimeWidth = new double[iNumStep];

  124.         for (int i = 0; i < iNumStep; ++i)
  125.             adblTimeWidth[i] = dblTimeWidth;

  126.         JumpDiffusionVertex[] aJDV = deNumeraireValue.vertexSequenceReverse (
  127.             new JumpDiffusionVertex (
  128.                 dblTime,
  129.                 dblNumeraireValueInitial,
  130.                 0.,
  131.                 false
  132.             ),
  133.             JumpDiffusionEdgeUnit.Diffusion (
  134.                 adblTimeWidth,
  135.                 adblRandom
  136.             ),
  137.             adblTimeWidth
  138.         );

  139.         for (int j = 0; j <= iNumStep; ++j)
  140.             adblNumeraireValue[j] = aJDV[j].value();

  141.         return adblNumeraireValue;
  142.     }

  143.     public static final void main (
  144.         final String[] astrArgs)
  145.         throws Exception
  146.     {
  147.         EnvManager.InitEnv ("");

  148.         int iNumStep = 10;
  149.         double dblTime = 5.;
  150.         int iNumPath = 10000;
  151.         double dblCollateralPortfolioDrift = 0.06;
  152.         double dblCollateralPortfolioVolatility = 0.15;
  153.         double dblCollateralPortfolioInitial = 1.;
  154.         double dblOvernightDrift = 0.004;
  155.         double dblOvernightVolatility = 0.02;
  156.         double dblOvernightInitial = 1.;
  157.         double dblCSADrift = 0.01;
  158.         double dblCSAVolatility = 0.05;
  159.         double dblCSAInitial = 1.;
  160.         double dblBankHazardRateDrift = 0.002;
  161.         double dblBankHazardRateVolatility = 0.20;
  162.         double dblBankHazardRateInitial = 0.015;
  163.         double dblBankRecoveryRateDrift = 0.002;
  164.         double dblBankRecoveryRateVolatility = 0.02;
  165.         double dblBankRecoveryRateInitial = 0.40;
  166.         double dblCounterPartyHazardRateDrift = 0.002;
  167.         double dblCounterPartyHazardRateVolatility = 0.30;
  168.         double dblCounterPartyHazardRateInitial = 0.030;
  169.         double dblCounterPartyRecoveryRateDrift = 0.002;
  170.         double dblCounterPartyRecoveryRateVolatility = 0.02;
  171.         double dblCounterPartyRecoveryRateInitial = 0.30;
  172.         double dblBankFundingSpreadDrift = 0.00002;
  173.         double dblBankFundingSpreadVolatility = 0.002;
  174.         double dblCounterPartyFundingSpreadDrift = 0.000022;
  175.         double dblCounterPartyFundingSpreadVolatility = 0.0022;

  176.         double[][] aadblCorrelation = new double[][] {
  177.             {1.00,  0.00,  0.03,  0.07,  0.04,  0.05,  0.08,  0.00,  0.00},  // PORTFOLIO
  178.             {0.00,  1.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  1.00},  // OVERNIGHT
  179.             {0.03,  0.00,  1.00,  0.26,  0.33,  0.21,  0.35,  0.13,  0.00},  // CSA
  180.             {0.07,  0.00,  0.26,  1.00,  0.45, -0.17,  0.07,  0.77,  0.00},  // BANK HAZARD
  181.             {0.04,  0.00,  0.33,  0.45,  1.00, -0.22, -0.54,  0.58,  0.00},  // COUNTER PARTY HAZARD
  182.             {0.05,  0.00,  0.21, -0.17, -0.22,  1.00,  0.47, -0.23,  0.00},  // BANK RECOVERY
  183.             {0.08,  0.00,  0.35,  0.07, -0.54,  0.47,  1.00,  0.01,  0.00},  // COUNTER PARTY RECOVERY
  184.             {0.00,  0.00,  0.13,  0.77,  0.58, -0.23,  0.01,  1.00,  0.00},  // BANK FUNDING SPREAD
  185.             {0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  1.00}   // COUNTER PARTY FUNDING SPREAD
  186.         };

  187.         double dblTimeWidth = dblTime / iNumStep;
  188.         JulianDate[] adtVertex = new JulianDate[iNumStep + 1];
  189.         double[][] aadblCollateralBalance = new double[iNumPath][iNumStep + 1];
  190.         double[][] aadblCollateralPortfolio = new double[iNumPath][iNumStep + 1];
  191.         MonoPathExposureAdjustment[] aMPEA = new MonoPathExposureAdjustment[iNumPath];
  192.         double dblBankFundingSpreadInitial = dblBankHazardRateInitial / (1. - dblBankRecoveryRateInitial);
  193.         double dblCounterPartyFundingSpreadInitial = dblCounterPartyHazardRateInitial / (1. - dblCounterPartyRecoveryRateInitial);

  194.         JulianDate dtSpot = DateUtil.Today();

  195.         for (int j = 0; j <= iNumStep; ++j)
  196.             adtVertex[j] = dtSpot.addMonths (6 * j + 6);

  197.         DiffusionEvolver deCollateralPortfolio = new DiffusionEvolver (
  198.             DiffusionEvaluatorLogarithmic.Standard (
  199.                 dblCollateralPortfolioDrift,
  200.                 dblCollateralPortfolioVolatility
  201.             )
  202.         );

  203.         DiffusionEvolver deOvernight = new DiffusionEvolver (
  204.             DiffusionEvaluatorLogarithmic.Standard (
  205.                 dblOvernightDrift,
  206.                 dblOvernightVolatility
  207.             )
  208.         );

  209.         DiffusionEvolver deCSA = new DiffusionEvolver (
  210.             DiffusionEvaluatorLogarithmic.Standard (
  211.                 dblCSADrift,
  212.                 dblCSAVolatility
  213.             )
  214.         );

  215.         DiffusionEvolver deBankHazardRate = new DiffusionEvolver (
  216.             DiffusionEvaluatorLogarithmic.Standard (
  217.                 dblBankHazardRateDrift,
  218.                 dblBankHazardRateVolatility
  219.             )
  220.         );

  221.         DiffusionEvolver deCounterPartyHazardRate = new DiffusionEvolver (
  222.             DiffusionEvaluatorLogarithmic.Standard (
  223.                 dblCounterPartyHazardRateDrift,
  224.                 dblCounterPartyHazardRateVolatility
  225.             )
  226.         );

  227.         DiffusionEvolver deBankRecoveryRate = new DiffusionEvolver (
  228.             DiffusionEvaluatorLogarithmic.Standard (
  229.                 dblBankRecoveryRateDrift,
  230.                 dblBankRecoveryRateVolatility
  231.             )
  232.         );

  233.         DiffusionEvolver deCounterPartyRecoveryRate = new DiffusionEvolver (
  234.             DiffusionEvaluatorLogarithmic.Standard (
  235.                 dblCounterPartyRecoveryRateDrift,
  236.                 dblCounterPartyRecoveryRateVolatility
  237.             )
  238.         );

  239.         DiffusionEvolver deBankFundingSpread = new DiffusionEvolver (
  240.             DiffusionEvaluatorLinear.Standard (
  241.                 dblBankFundingSpreadDrift,
  242.                 dblBankFundingSpreadVolatility
  243.             )
  244.         );

  245.         DiffusionEvolver deCounterPartyFundingSpread = new DiffusionEvolver (
  246.             DiffusionEvaluatorLinear.Standard (
  247.                 dblCounterPartyFundingSpreadDrift,
  248.                 dblCounterPartyFundingSpreadVolatility
  249.             )
  250.         );

  251.         for (int i = 0; i < iNumPath; ++i) {
  252.             double[][] aadblNumeraire = Matrix.Transpose (
  253.                 SequenceGenerator.GaussianJoint (
  254.                     iNumStep,
  255.                     aadblCorrelation
  256.                 )
  257.             );

  258.             aadblCollateralPortfolio[i] = NumeraireValueRealization (
  259.                 deCollateralPortfolio,
  260.                 dblCollateralPortfolioInitial,
  261.                 dblTime,
  262.                 dblTimeWidth,
  263.                 aadblNumeraire[0],
  264.                 iNumStep
  265.             );

  266.             double[] adblOvernightNumeraire = VertexNumeraireRealization (
  267.                 deOvernight,
  268.                 dblOvernightInitial,
  269.                 dblTime,
  270.                 dblTimeWidth,
  271.                 aadblNumeraire[1],
  272.                 iNumStep
  273.             );

  274.             double[] adblCSA = VertexNumeraireRealization (
  275.                 deCSA,
  276.                 dblCSAInitial,
  277.                 dblTime,
  278.                 dblTimeWidth,
  279.                 aadblNumeraire[2],
  280.                 iNumStep
  281.             );

  282.             double[] adblBankHazardRate = NumeraireValueRealization (
  283.                 deBankHazardRate,
  284.                 dblBankHazardRateInitial,
  285.                 dblTime,
  286.                 dblTimeWidth,
  287.                 aadblNumeraire[3],
  288.                 iNumStep
  289.             );

  290.             double[] adblCounterPartyHazardRate = NumeraireValueRealization (
  291.                 deCounterPartyHazardRate,
  292.                 dblCounterPartyHazardRateInitial,
  293.                 dblTime,
  294.                 dblTimeWidth,
  295.                 aadblNumeraire[4],
  296.                 iNumStep
  297.             );

  298.             double[] adblBankRecoveryRate = NumeraireValueRealization (
  299.                 deBankRecoveryRate,
  300.                 dblBankRecoveryRateInitial,
  301.                 dblTime,
  302.                 dblTimeWidth,
  303.                 aadblNumeraire[5],
  304.                 iNumStep
  305.             );

  306.             double[] adblCounterPartyRecoveryRate = NumeraireValueRealization (
  307.                 deCounterPartyRecoveryRate,
  308.                 dblCounterPartyRecoveryRateInitial,
  309.                 dblTime,
  310.                 dblTimeWidth,
  311.                 aadblNumeraire[6],
  312.                 iNumStep
  313.             );

  314.             double[] adblBankFundingSpread = NumeraireValueRealization (
  315.                 deBankFundingSpread,
  316.                 dblBankFundingSpreadInitial,
  317.                 dblTime,
  318.                 dblTimeWidth,
  319.                 aadblNumeraire[7],
  320.                 iNumStep
  321.             );

  322.             double[] adblCounterPartyFundingSpread = NumeraireValueRealization (
  323.                 deCounterPartyFundingSpread,
  324.                 dblCounterPartyFundingSpreadInitial,
  325.                 dblTime,
  326.                 dblTimeWidth,
  327.                 aadblNumeraire[8],
  328.                 iNumStep
  329.             );

  330.             MarketVertex[] aMV = new MarketVertex [iNumStep + 1];
  331.             AlbaneseAndersen[] aHGVR = new AlbaneseAndersen[iNumStep + 1];

  332.             for (int j = 0; j <= iNumStep; ++j)
  333.             {
  334.                 LatentStateVertexContainer latentStateVertexContainer = new LatentStateVertexContainer();

  335.                 latentStateVertexContainer.add (
  336.                     OTCFixFloatLabel.Standard ("USD-3M-10Y"),
  337.                     Double.NaN
  338.                 );

  339.                 aMV[j] = MarketVertex.Nodal (
  340.                     adtVertex[j] = dtSpot.addMonths (6 * j),
  341.                     dblOvernightDrift,
  342.                     adblOvernightNumeraire[j],
  343.                     dblCSADrift,
  344.                     adblCSA[j],
  345.                     new MarketVertexEntity (
  346.                         Math.exp (-0.5 * adblBankHazardRate[j] * j),
  347.                         adblBankHazardRate[j],
  348.                         adblBankRecoveryRate[j],
  349.                         adblBankFundingSpread[j],
  350.                         Math.exp (-0.5 * adblBankHazardRate[j] * (1. - adblBankRecoveryRate[j]) * (iNumStep - j)),
  351.                         Double.NaN,
  352.                         Double.NaN,
  353.                         Double.NaN
  354.                     ),
  355.                     new MarketVertexEntity (
  356.                         Math.exp (-0.5 * adblCounterPartyHazardRate[j] * j),
  357.                         adblCounterPartyHazardRate[j],
  358.                         adblCounterPartyRecoveryRate[j],
  359.                         adblCounterPartyFundingSpread[j],
  360.                         Math.exp (-0.5 * adblCounterPartyHazardRate[j] * (1. - adblCounterPartyRecoveryRate[j]) * (iNumStep - j)),
  361.                         Double.NaN,
  362.                         Double.NaN,
  363.                         Double.NaN
  364.                     ),
  365.                     latentStateVertexContainer
  366.                 );

  367.                 aadblCollateralBalance[i][j] = 0.;

  368.                 aHGVR[j] = new AlbaneseAndersen (
  369.                     adtVertex[j],
  370.                     aadblCollateralPortfolio[i][j],
  371.                     0.,
  372.                     0.
  373.                 );
  374.             }

  375.             MarketPath marketPath = MarketPath.FromMarketVertexArray (aMV);

  376.             CollateralGroupPath[] aHGP = new CollateralGroupPath[] {
  377.                 new CollateralGroupPath (
  378.                     aHGVR,
  379.                     marketPath
  380.                 )
  381.             };

  382.             aMPEA[i] = new MonoPathExposureAdjustment (
  383.                 new AlbaneseAndersenFundingGroupPath[] {
  384.                     new AlbaneseAndersenFundingGroupPath (
  385.                         new AlbaneseAndersenNettingGroupPath[] {
  386.                             new AlbaneseAndersenNettingGroupPath (
  387.                                 aHGP,
  388.                                 marketPath
  389.                             )
  390.                         },
  391.                         marketPath
  392.                     )
  393.                 }
  394.             );
  395.         }

  396.         ExposureAdjustmentAggregator eaa = new ExposureAdjustmentAggregator (aMPEA);

  397.         JulianDate[] adtVertexNode = eaa.vertexDates();

  398.         System.out.println();

  399.         System.out.println ("\t|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|");

  400.         String strDump = "\t|         DATE         =>" ;

  401.         for (int i = 0; i < adtVertexNode.length; ++i)
  402.             strDump = strDump + " " + adtVertexNode[i] + " |";

  403.         System.out.println (strDump);

  404.         System.out.println ("\t|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|");

  405.         double[] adblExposure = eaa.collateralizedExposure();

  406.         strDump = "\t|       EXPOSURE       =>";

  407.         for (int j = 0; j < adblExposure.length; ++j)
  408.             strDump = strDump + "   " + FormatUtil.FormatDouble (adblExposure[j], 1, 4, 1.) + "   |";

  409.         System.out.println (strDump);

  410.         double[] adblPositiveExposure = eaa.collateralizedPositiveExposure();

  411.         strDump = "\t|  POSITIVE EXPOSURE   =>";

  412.         for (int j = 0; j < adblPositiveExposure.length; ++j)
  413.             strDump = strDump + "   " + FormatUtil.FormatDouble (adblPositiveExposure[j], 1, 4, 1.) + "   |";

  414.         System.out.println (strDump);

  415.         double[] adblNegativeExposure = eaa.collateralizedNegativeExposure();

  416.         strDump = "\t|  NEGATIVE EXPOSURE   =>";

  417.         for (int j = 0; j < adblNegativeExposure.length; ++j)
  418.             strDump = strDump + "   " + FormatUtil.FormatDouble (adblNegativeExposure[j], 1, 4, 1.) + "   |";

  419.         System.out.println (strDump);

  420.         double[] adblExposurePV = eaa.collateralizedExposurePV();

  421.         strDump = "\t|      EXPOSURE PV     =>";

  422.         for (int j = 0; j < adblExposurePV.length; ++j)
  423.             strDump = strDump + "   " + FormatUtil.FormatDouble (adblExposurePV[j], 1, 4, 1.) + "   |";

  424.         System.out.println (strDump);

  425.         double[] adblPositiveExposurePV = eaa.collateralizedPositiveExposurePV();

  426.         strDump = "\t| POSITIVE EXPOSURE PV =>";

  427.         for (int j = 0; j < adblPositiveExposurePV.length; ++j)
  428.             strDump = strDump + "   " + FormatUtil.FormatDouble (adblPositiveExposurePV[j], 1, 4, 1.) + "   |";

  429.         System.out.println (strDump);

  430.         double[] adblNegativeExposurePV = eaa.collateralizedNegativeExposurePV();

  431.         strDump = "\t| NEGATIVE EXPOSURE PV =>";

  432.         for (int j = 0; j < adblNegativeExposurePV.length; ++j)
  433.             strDump = strDump + "   " + FormatUtil.FormatDouble (adblNegativeExposurePV[j], 1, 4, 1.) + "   |";

  434.         System.out.println (strDump);

  435.         System.out.println ("\t|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|");

  436.         System.out.println();

  437.         System.out.println ("\t||-------------------||");

  438.         System.out.println ("\t||  UCVA  => " + FormatUtil.FormatDouble (eaa.ucva().amount(), 2, 2, 100.) + "% ||");

  439.         System.out.println ("\t|| FTDCVA => " + FormatUtil.FormatDouble (eaa.ftdcva().amount(), 2, 2, 100.) + "% ||");

  440.         System.out.println ("\t||  CVA   => " + FormatUtil.FormatDouble (eaa.cva().amount(), 2, 2, 100.) + "% ||");

  441.         System.out.println ("\t||  CVACL => " + FormatUtil.FormatDouble (eaa.cvacl().amount(), 2, 2, 100.) + "% ||");

  442.         System.out.println ("\t||  DVA   => " + FormatUtil.FormatDouble (eaa.dva().amount(), 2, 2, 100.) + "% ||");

  443.         System.out.println ("\t||  FVA   => " + FormatUtil.FormatDouble (eaa.fva().amount(), 2, 2, 100.) + "% ||");

  444.         System.out.println ("\t||  FDA   => " + FormatUtil.FormatDouble (eaa.fda().amount(), 2, 2, 100.) + "% ||");

  445.         System.out.println ("\t||  FCA   => " + FormatUtil.FormatDouble (eaa.fca().amount(), 2, 2, 100.) + "% ||");

  446.         System.out.println ("\t||  FBA   => " + FormatUtil.FormatDouble (eaa.fba().amount(), 2, 2, 100.) + "% ||");

  447.         System.out.println ("\t||  SFVA  => " + FormatUtil.FormatDouble (eaa.sfva().amount(), 2, 2, 100.) + "% ||");

  448.         System.out.println ("\t||-------------------||");

  449.         EnvManager.TerminateEnv();
  450.     }
  451. }