first Order Loss Function
First order loss function G1(x) = Emax(X-x,0).
The components are named rather than destructured. ProbPoint is (value, prob, cumProb), so the positional form previously here bound the VALUE to a variable called p and the PROBABILITY to one called v: the guard then compared a probability against a stock level and the accumulation multiplied a value by a difference of probabilities. Naming them is also what stops the same transposition recurring if ProbPoint ever gains a field.