Exemplo n.º 1
0
 public InvestmentsSolver(Investor investor)
 {
     this.investor     = investor;
     assets            = investor.Assets;
     this.startCapital = investor.Capital;
     this.periodLength = investor.PeriodLength;
 }
Exemplo n.º 2
0
        public static InvestmentPlan solve(Tranche tranche)
        {
            Investor investor = new Investor(tranche.period, tranche.capital, tranche.assets);

            InvestmentsSolver solver = new InvestmentsSolver(investor);

            InvestmentPlan plan = solver.TheoreticalProfitPlan();

            return(plan);
        }