Study of Optimization Problems by Quantum Annealing