white space in comment
Move allocating final decision variable out of inner loop into constructor
Replace inline conditionals with Math.max
Use the optimal flag as intended -- by testing the objective function