Iterative procedures for constrained and unilateral optimization problems