A two-parameter family of pension contribution functions and stochastic optimization☆