There are different ways to formulate this problem, but all formulations are likely to use the SUMIF, IF, and
MAX or MIN functions. Evolutionary Solver is able to handle the nonlinear and non-smooth conditions
resulting from the use of these functions.