HOW QUANTUM FORMULAS DEAL WITH COMPLEX OPTIMIZATION PROBLEMS