Optimization and Equilibrium Problems