Optimization: Algorithms and Consistent Approximations