Monotonicity and the principle of optimality