adding capcity to handle multiple cost and time moment_probabilities