Stepwise optimality and uniqueness of solutions