Objective

The objective is to maximize the following function, where $\Variable{Profit[year]} = \Variable{Revenue[year]} - \Variable{Cost[year]}$ and Revenue and Cost are linear functions of other variables:

\begin{multline*}  \Variable{TotalProfit} = \\ \sum _{\text {year} \in \text {YEARS}} \left(\Variable{Profit[year]} - \Argument{yearly\_ loan\_ payment} \cdot (\Argument{num\_ years} - 1 + \text {year}) \cdot \Variable{CapitalOutlay[year]}\right) \end{multline*}