 More generally, if the objective function is not a quadratic function, then many optimization methods use other methods to ensure that some subsequence of iterations converges to an optimal solution.The first and still popular method for ensuring convergence relies on line searches, which optimize a function along one dimension.A second and increasingly popular method for ensuring convergence uses trust regions.