Optimal decision-making