Integration Methods and Optimization Algorithms