public InvestmentsSolver(Investor investor) { this.investor = investor; assets = investor.Assets; this.startCapital = investor.Capital; this.periodLength = investor.PeriodLength; }
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); }