Complexity and performance of an Augmented Lagrangian algorithm
E. G. Birgin, J. M. Mart\'inez

TL;DR
This paper analyzes the complexity and worst-case performance of the Algencan augmented Lagrangian algorithm and demonstrates its effectiveness for large-scale constrained optimization problems.
Contribution
It provides new complexity results for Algencan and evaluates a new software version showing improved computational performance.
Findings
Complexity bounds for Algencan's iteration and evaluation counts.
Empirical evidence of the new version's efficiency on large-scale problems.
Algencan's robustness and practicality in constrained optimization.
Abstract
Algencan is a well established safeguarded Augmented Lagrangian algorithm introduced in [R. Andreani, E. G. Birgin, J. M. Mart\'{\i}nez and M. L. Schuverdt, On Augmented Lagrangian methods with general lower-level constraints, SIAM Journal on Optimization 18, pp. 1286-1309, 2008]. Complexity results that report its worst-case behavior in terms of iterations and evaluations of functions and derivatives that are necessary to obtain suitable stopping criteria are presented in this work. In addition, the computational performance of a new version of the method is presented, which shows that the updated software is a useful tool for solving large-scale constrained optimization problems.
| Problem type | # of problems | # of problems with | |||
|---|---|---|---|---|---|
| unconstrained | 217 | 100,000 | 15 | 87 | 97 |
| bound-constrained | 144 | 149,624 | 5 | 60 | 72 |
| feasibility | 156 | 123,200 | 5 | 40 | 55 |
| NLP | 740 | 250,997 | 67 | 263 | 379 |
| Algencan | 1,132 | 1,132 | 1,131 | 1,131 | 1,131 | 1,130 | 1,130 | 1,130 | 1,121 | 1,115 | 1,112 | 1,105 | 1,092 | 1,082 | 1,077 | 1,069 | 1,058 |
| Ipopt | 1,073 | 1,072 | 1,070 | 1,068 | 1,056 | 1,044 | 1,016 | 970 | 794 | 793 | 793 | 793 | 793 | 792 | 792 | 792 | 791 |
| 0 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Algencan | 722 | 715 | 706 | 694 | 691 | 678 | 675 | 663 | 498 |
| Ipopt | 723 | 708 | 699 | 694 | 683 | 653 | 623 | 592 | 383 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Complexity and performance of an
Augmented Lagrangian algorithm111This work was supported by FAPESP (grants 2013/07375-0, 2016/01860-1, and 2018/24293-0) and CNPq (grants 309517/2014-1 and 303750/2014-6).
E. G. Birgin Dept. of Computer Science, Institute of Mathematics and Statistics, University of São Paulo, Rua do Matão, 1010, Cidade Universitária, 05508-090, São Paulo, SP, Brazil. email: [email protected]
J. M. Martínez Dept. of Applied Mathematics, Institute of Mathematics, Statistics, and Scientific Computing, State University of Campinas, 13083-859, Campinas, SP, Brazil. email: [email protected]
(July 4, 2019)
Abstract
Algencan is a well established safeguarded Augmented Lagrangian algorithm introduced in [R. Andreani, E. G. Birgin, J. M. Martínez and M. L. Schuverdt, On Augmented Lagrangian methods with general lower-level constraints, SIAM Journal on Optimization 18, pp. 1286-1309, 2008]. Complexity results that report its worst-case behavior in terms of iterations and evaluations of functions and derivatives that are necessary to obtain suitable stopping criteria are presented in this work. In addition, the computational performance of a new version of the method is presented, which shows that the updated software is a useful tool for solving large-scale constrained optimization problems.
Keywords: Nonlinear programming, Augmented Lagrangian methods, complexity, numerical experiments.
1 Introduction
Augmented Lagrangian methods have a long tradition in numerical optimization. The main ideas were introduced by Powell [43], Hestenes [39], and Rockafellar [45]. At each (outer) iteration of an Augmented Lagrangian method one minimizes the objective function plus a term that penalizes the non-fulfillment of the constraints with respect to suitable shifted tolerances. Whereas the classical external penalty method [34, 35] needs to employ penalty parameters that tend to infinity, the shifting technique aims to produce convergence by means of displacements of the constraints that generate approximations to a solution with moderate penalty parameters [20]. As a by-product, one obtains approximations of the Lagrange multipliers associated with the original optimization problem. The safeguarded version of the method [3] discards Lagrange multiplier approximations when they become very large. The convergence theory for safeguarded Augmented Lagrangian methods was given in [3, 20]. Recently, examples that illustrate the convenience of safeguarded Augmented Lagrangians were given in [41].
Conn, Gould, and Toint [27] produced the celebrated package Lancelot, that solves constrained optimization problems using Augmented Lagrangians in which the constraints are defined by equalities and bounds. The technique was extended to the case of equality constraints plus linear constraints in [26]. Differently from Lancelot, in Algencan [3, 20] (see, also, [4, 5, 14, 15, 17, 18, 19]), the Augmented Lagrangian is defined not only with respect to equality constraints but also with respect to inequalities. The theory presented in [3] and [20] admits the presence of lower-level constraints not restricted to boxes or polytopes. However, in the practical implementations of Algencan, lower-level constraints are always boxes.
In the last 10 years, the interest in Augmented Lagrangian methods was renewed due to their ability to solve large-scale problems. Dostál and Beremlijski [31, 32] employed Augmented Lagrangian methods for solving quadratic programming problems that appear in structural optimization. Fletcher [36] applied Augmented Lagrangian ideas to the minimization of quadratics with box constraints. Armand and Omheni [12] employed an Augmented Lagrangian technique for solving equality constrained optimization problems and handled inequality constraints by means of logarithmic barriers [13]. Curtis, Gould, Jiang, and Robinson [28, 29] defined an Augmented Lagrangian algorithm in which decreasing the penalty parameters is possible following intrinsic algorithmic criteria. Local convergence results without constraint qualifications were proved in [33]. The case with (possibly complementarity) degenerate constraints was analyzed in [40]. Chatzipanagiotis and Zavlanos [25] defined and analyzed Augmented Lagrangian methods in the context of distributed computation. An Exact Penalty algorithm for constrained optimization with complexity results was introduced in [24]. Grapiglia and Yuan [38] analyzed the complexity of an Augmented Lagrangian algorithm for inequality constraints based on the approach of Sun and Yuan [46] and assuming that a feasible initial point is available.
In this paper, we report the main features of a new implementation of Algencan. The new Algencan preserves the main characteristics of the previous algorithm: constraints are considered in the form of equalities and inequalities, without slack variables; box-constrained subproblems are solved using active-set strategies; and global convergence properties are fully preserved. A new acceleration procedure is introduced by means of which an approximate KKT point may be obtained. It consists in applying a local Newton method to a semismooth KKT system [42, 44] starting from every Augmented Lagrangian iterate. Special attention is given to the box-constraint algorithm used for solving subproblems. The algorithm presented in this paper is able to handle large-scale problems but not “huge” ones. This means that we deal with number of variables and Hessian structures that make it affordable to use sparse factorizations. Larger problems need the help of iterative linear solvers which are not available in the new Algencan yet. Exhaustive numerical experimentation is given and all the software employed is available on a free basis in http://www.ime.usp.br/~egbirgin/, so that computational results are fully reproducible.
The paper is organized as follows. In Section 2, we recall the definition of Algencan with box lower-level constraints and we review global convergence results. In Section 3, we prove complexity properties. In Section 4, we describe the algorithm for solving box-constrained subproblems. In Section 5, we describe the computer implementation. In Section 6, we report numerical experiments. Conclusions are given in Section 7.
Notation. If is a convex set, denotes the Euclidean projection of onto . If , denotes the box defined by . . If , denotes the vector with components for . If , denotes the vector with components for . The symbol denotes the Euclidean norm.
2 Augmented Lagrangian
In this section, we consider constrained optimization problems defined by
[TABLE]
where , , and are continuously differentiable.
We consider the Augmented Lagrangian method in the way analyzed in [3] and [20]. This method has interesting global theoretical properties. On the one hand, every limit point is a stationary point of the problem of minimizing infeasibility. On the other hand, every feasible limit point satisfies a sequential optimality condition [7, 8, 9]. This implies that every feasible limit point is KKT-stationary under very mild constraint qualifications [8, 9]. The basic definition of the method and the main theoretical results are reviewed in this section.
The Augmented Lagrangian function [39, 43, 45] associated with problem (1) is defined by
[TABLE]
for all , , , and . The Augmented Lagrangian model algorithm follows.
Algorithm 2.1: Assume that , , , , , , , , and are given. Initialize .
Step 1.
Find as an approximate solution to
[TABLE]
satisfying
[TABLE]
Step 2.
Define
[TABLE]
If or
[TABLE]
choose . Otherwise, define .
Step 3.
Compute
[TABLE]
Compute and . Set and go to Step 1.
The problem of finding an approximate minimizer of onto in the sense of (3) can always be solved. In fact, due to the compactness of , a global minimizer, that obviously satisfies (3), always exists. Moreover, local minimization algorithms are able to find an approximate stationary point satisfying (3) in a finite number of iterations. Therefore, given an iterate , the iterate is well defined. So, Algorithm 2.1 generates an infinite sequence whose properties are surveyed below. Of course, as it will be seen later, suitable stopping criteria can be defined by means of which acceptable approximate solutions to (1) are usually obtained.
Algorithm 2.1 has been presented without a “stopping criterion”. This means that, in principle, the algorithm generates an infinite sequence of primal iterates and Lagrange-multiplier estimators. Complexity results presented in this work report the worst-case effort that could be necessary to obtain different properties, that may be used as stopping criteria in practical implementations or not. We believe that the interpretation of these results helps to decide which stopping criteria should be used in a practical application.
The relevant theoretical properties of this algorithm are the following:
Every limit point of the sequence generated by the algorithm satisfies the complementarity condition
[TABLE]
for large enough. (See [20, Thm.4.1].) 2. 2.
Every limit point of the sequence generated by the algorithm satisfies the first-order optimality conditions of the feasibility problem
[TABLE]
(See [20, Thm.6.5].) 3. 3.
If, for all , is an approximate global minimizer of onto with tolerance , every limit point of is a global minimizer of the infeasibility function . Condition (3) does not need to hold in this case. (See [20, Thm.5.1].) 4. 4.
If, for all , is an approximate global minimizer of onto with tolerance , every feasible limit point of is a global minimizer of the general constrained minimization problem (1). As before, condition (3) is not necessary in this case. (See [20, Thm.5.2].) 5. 5.
If , every feasible limit point of the sequence satisfies the sequential optimality condition AKKT [7] given by
[TABLE]
and
[TABLE]
where the sequence of indices is such that . (See [20, Thm.6.4].)
Under an additional Lojasiewicz-like condition, it is obtained that (see [10]). Moreover, in [6], it was proved that an even stronger sequential optimality condition is satisfied by the sequence , perhaps associated with different Lagrange multipliers approximations than the ones generated by the Augmented Lagrangian algorithm.
These properties say that, even if does not tend to zero, Algorithm 2.1 finds stationary points of the infeasibility measure and that, when tends to zero, feasible limit points satisfy a sequential optimality condition. Thus, under very weak constraint qualifications, feasible limit points satisfy Karush-Kuhn-Tucker conditions. See [8, 9]. Some of these properties, but not all, are shared by other constrained optimization algorithms. For example, the property that feasible limit points satisfy optimality KKT conditions is proved to be satisfied by other optimization algorithms only under much stronger constraint qualifications than the ones required by Algorithm 2.1. Moreover, the Newton-Lagrange method may fail to satisfy approximate KKT conditions even when it converges to the solution of rather simple constrained optimization problems [1, 2].
Augmented Lagrangian implementations have a modular structure. At each iteration, a box-constrained optimization problem is approximately solved. The efficiency of the Augmented Lagrangian algorithm is strongly linked to the efficiency of the box-constraint solver.
Algencan may be considered to be a conservative visit to the Augmented Lagrangian framework. For example, subproblems are solved with relatively high precision, instead of stopping subproblem solvers prematurely according to information related to the constrained optimization landscape. It could be argued that solving subproblems with high precision at points that may be far from the solution represents a waste of time. Nevertheless, our point of view is that saving subproblem iterations when one is close to a subproblem solution is not worthwhile because in that region Newton-like solvers tend to be very fast; and accurate subproblems’ solutions help to produce better approximations of Lagrange multipliers. Algencan is also conservative when subproblems’ solvers use minimal information about the structure of the Augmented Lagrangian function they minimize. The reason for this decision is connected to the modular structure of Algencan. Subproblem solvers are continuously being improved due to the continuous and fruitful activity in bound-constrained minimization. Therefore, we aim to take advantage of those improvements with minimal modifications of subproblem algorithms when applied to minimize Augmented Lagrangians.
3 Complexity
This section is devoted to worst-case complexity results related to Algorithm 2.1. Algorithm 2.1 was not devised with the aim of optimizing complexity. Nevertheless, our point of view is that the complexity analysis that follows helps to understand the actual behavior of the algorithm, filling a gap opened by the convergence theory.
By (5) and straightforward calculations, we have that, for all ,
[TABLE]
Therefore, the fulfillment of
[TABLE]
implies that the projected gradient of the Lagrangian with multipliers and approximately vanishes with precision . In the next lemma, we show that the fulfillment of
[TABLE]
implies that feasibility and complementarity hold at with precision . For these reasons, in the context of Algorithm 2.1, iterates that satisfy (10) and (11) are considered approximate stationary points of problem (1).
Lemma 3.1
For all ,
[TABLE]
implies that
[TABLE]
Proof: By (12), and for all . Therefore, , so for all . Moreover, by (12), if , we necessarily have that . Adding these two inequalities, we obtain that, if then . Consequently, , so . Therefore, (12) implies (13) as we wanted to prove.
In Theorem 3.1 below, we assume that the sequence is bounded. Sufficient conditions for this requirement, where the bound only depends on algorithmic parameters and characteristics of the problem, were given in [3] and [20]. We also assume that there exists such that for all . Clearly, this condition can be enforced by the criterion used to define . For example, obviously implies that if .
Lemma 3.2
There exists such that, for all ,
[TABLE]
Proof: Since, by definition of the algorithm, , the bound (14) comes from the continuity of and , the compactness of the domain , and the boundedness of .
From now on, will denote a positive constant satisfying (14), whose existence is guaranteed by Lemma 3.2.
Theorem 3.1
Let and be given. Assume that, for all , . Moreover, assume that, for all , we have that . Then, after at most
[TABLE]
iterations, we obtain , , and such that
[TABLE]
[TABLE]
and, for all ,
[TABLE]
Proof: The number of iterations such that is bounded above by
[TABLE]
Therefore, this is also a bound for the number of iterations at which (4) does not hold.
[TABLE]
consecutive iterations, we get that
[TABLE]
which, by Lemma 3.1, implies (17) and (18).
Now, by hypothesis, after iterations, we have that . Therefore, by (19) and (20), after at most
[TABLE]
iterations, we have that (16), (17), and (18) hold.
Theorem 3.1 shows that, as expected, if is bounded, we obtain approximate feasibility and optimality. In the following theorem, we assume that the subproblems are solved by means of some method that, for obtaining precision , employs at most iterations and evaluations, where only depends on characteristics of the problem, the upper bound for , and algorithmic parameters of the method.
Theorem 3.2
In addition to the hypotheses of Theorem 3.1, assume that there exist and , where only depends on , , , , , , and characteristics of the functions , , and , such that the number of inner iterations, function and derivative evaluations that are necessary to obtain (3) is bounded above by . Then, the number of inner iterations, function evaluations, and derivative evaluations that are necessary to obtain such that (16), (17), and (18) hold is bounded above by
[TABLE]
where
[TABLE]
Proof: The desired result follows from Theorem 3.1 and the assumptions of this theorem.
Note that, in Theorem 3.2, we admit the possibility that decrease after completing iterations. This is the reason for the definition of (22). In practical implementations, it is reasonable to stop decreasing when it achieves a user-given stopping tolerance . According to Theorem 3.2, the complexity bounds related to approximate optimality, feasibility, and complementarity depend on the optimality tolerance in, essentially, the same way that the complexity of the subproblem solver depends on its stopping tolerance. In other words, under the assumption of boundedness of penalty parameters, the worst-case complexity of the Augmented Lagrangian method is essentially the same as the complexity of the subproblem solver.
In computer implementations, it is usual to employ, in addition to a (successful) stopping criterion based on (16), (17), and (18), an (unsuccessful) stopping criterion based on the size of the penalty parameter. The rationale is that if the penalty parameter grew to be very large, it is not worthwhile to expect further improvements with respect to feasibility and we are probably close to an infeasible local minimizer of infeasibility. The complexity results that correspond to this decision are given below.
Theorem 3.3
Let , , and be given. Assume that, for all , we have that . Then, after at most
[TABLE]
iterations, we obtain , , and such that (16), (17), and (18) hold or we obtain an iteration such that .
Proof: If for all , by the same argument used in the proof of Theorem 3.1, with replacing , we obtain that (16), (17), and (18) hold.
Theorem 3.4
In addition to the hypotheses of Theorem 3.3, assume that there exist and , where only depends on , , , , , , and characteristics of the functions , , and , such that the number of inner iterations, function and derivative evaluations that are necessary to obtain (3) is bounded above by . Then, the number of inner iterations, function evaluations, and derivative evaluations that are necessary to obtain such that (16), (17), and (18) hold or such that is bounded above by
[TABLE]
where
[TABLE]
Proof: The desired result follows directly from Theorem 3.3.
The complexity results proved up to now indicate that suitable stopping criteria for Algorithm 2.1 could be based on the fulfillment of (16), (17), and (18) or, alternatively, on the occurrence of an undesirable big penalty parameter. The advantage of these criteria is that, according to them, worst-case complexity is of the same order as the complexity of subproblem solvers. Convergence results establish that solutions obtained with very large penalty parameters are close to stationary points of the infeasibility. However, stationary points of infeasibility may be feasible points and, again, convergence theory shows that when Algorithm 2.1 converges to a feasible point, this point satisfies AKKT optimality conditions, independently of constraint qualifications. As a consequence, the danger exists of interrupting executions prematurely, in situations in which meaningful progress could be obtained admitting further increases of the penalty parameter. This state of facts leads one to analyze complexity of Algorithm 2.1 independently of penalty parameter growth and introducing a possibly more reliable criterion for detecting infeasible stationary points of infeasibility. Roughly speaking, we will say that an iterate seems to be an infeasible stationary point of infeasibility when the projected gradient of the infeasibility measure is significantly smaller than the infeasibility value. The natural question that arises is whether the employment of this (more reliable) stopping criterion has an important effect on the complexity bounds.
Assumptions on the limitation of are given up from now on. Note that the possibility that needs to be considered since necessarily takes place, for example, when the feasible region is empty.
Lemma 3.3
There exist , such that, for all , , and , one has
[TABLE]
and
[TABLE]
Proof: The desired result follows from the boundedness of the domain, the continuity of the functions, and the boundedness of and .
The following lemma establishes a bound for the projected gradient of the infeasibility measure in terms of the value of the displaced infeasibility and the value of the penalty parameter.
Lemma 3.4
For all , , , and , one has that
[TABLE]
[TABLE]
where is defined in Lemma 3.3.
Proof: Note that
[TABLE]
and
[TABLE]
Therefore,
[TABLE]
[TABLE]
Then, by (25), if , , , and ,
[TABLE]
So, by the non-expansivity of projections,
[TABLE]
Thus, the thesis is proved.
The following theorem establishes that, before the number of iterations given by (27), we necessarily find an approximate KKT point or we find an infeasible point that, very likely, is close to an infeasible stationary point of the infeasibility measure. The latter type of infeasible points is characterized by the fact that the projected gradient of the infeasibility is smaller than whereas the infeasibility value is bigger than .
Theorem 3.5
Let , , and be given. Assume that is such that for all . Then, after at most
[TABLE]
iterations, where
[TABLE]
we obtain an iteration such that one of the following two facts takes place:
The iterate verifies
[TABLE] 2. 2.
The multipliers and are such that
[TABLE]
[TABLE]
and, for all ,
[TABLE]
Proof: Let be such that
[TABLE]
for all whereas (33) does not hold if . (With some abuse of notation, we say that when (33) holds for all .) In other words, if ,
[TABLE]
whereas (34) does not hold if .
We consider two possibilities:
[TABLE]
and
[TABLE]
In the first case, since (33) does not hold for , it turns out that (29) occurs at iteration . It remains to analyze the case in which (36) takes place.
Suppose that
[TABLE]
[TABLE]
By (3), for all , we have that
[TABLE]
Therefore, by (39),
[TABLE]
Therefore, by the non-expansivity of projections and (26), we have that
[TABLE]
[TABLE]
Therefore, by Lemma 3.4 and (41),
[TABLE]
By (36) and (37), we have that , so, by (46),
[TABLE]
By (47), for all . Now, if , we have that , which is smaller than zero because of (42), so .
Therefore, the approximate feasibility and complementarity conditions
[TABLE]
hold at . Moreover, by (43) and Lemma 3.1, we have that (30) also holds. Therefore, we proved that (36), (37), (38), (39), (40), (41), (42), and (43) imply (30), (31), and (32). So, we only need to show that there exists that satisfies (37)–(43) or satisfies (37), (30), (31), and (32). In other words, we must prove that, before completing
[TABLE]
iterations, we get (30), (31), and (32) or we get (37)–(43).
To prove this statement, suppose that, for all satisfying (37), at least one among the conditions (30), (31), and (32) does not hold. Since (30) necessarily holds if , this implies that for all satisfying (37) and (43) at least one among the conditions (31) and (32) does not hold. By Lemma 3.1, this implies that for all satisfying (37) and (43),
[TABLE]
Then, by (14), for , the existence of more than consecutive iterations satisfying (4) and (37) is impossible.
Therefore, after the first iterations, if is increased at iterations , but not at any iteration , we have that . This means that, after the first iterations, the number of iterations at which is not increased is bounded above by times the number of iterations at which is increased. Now, for obtaining (39)–(42), iterations in which is increased are obviously sufficient. This completes the desired result.
Theorem 3.6
In addition to the hypotheses of Theorem 3.5, assume that there exist , , and , where only depends on , , , , , and characteristics of the functions , , and , such that the number of inner iterations, function and derivative evaluations that are necessary to obtain (3) is bounded above by . Then, the number of inner iterations, function evaluations, and derivative evaluations that are necessary to obtain such that (29) holds or (30), (31) and (32) hold is bounded above by
[TABLE]
where is given by (28) and
[TABLE]
Proof: The desired result follows from Theorem 3.5 and the assumptions of this theorem.
The comparison between Theorems 3.4 and 3.6 is interesting. This comparison seems to indicate that, if we want to be confident that the diagnostic “ is an infeasible stationary point of infeasibility” is correct, we must be prepared to pay for that certainty. In fact, the bound on the penalty parameter for the algorithm is defined by (28), which not only grows with , but also depends on global bounds of the problem and . Moreover, also needs to decrease below because the decrease of the projected gradient of infeasibility is only guaranteed by a stronger decrease of the projected gradient of the Augmented Lagrangian.
4 Solving the Augmented Lagrangian subproblems
The problem considered in this section is
[TABLE]
where . We assume that has continuous first derivatives and that second derivatives exist almost everywhere. When the Hessian at a point does not exist we call the limit of for a sequence that converges to . Problem (50) is of the same type of the problem that is approximately solved at Step 1 of Algorithm 2.1 and we have in mind the case .
For all , we define the open face
[TABLE]
By definition, is the union of its open faces and the open faces are disjoint. This means that every belongs to exactly one face . The variables such that are called free variables. For every , we also define the continuous projected gradient of given by
[TABLE]
and, if is the open face to which belongs, the continuous projected internal gradient given by
[TABLE]
Note that, sometimes, we write omitting the fact that the subindex refers the face to which the argument belongs.
The bound-constrained minimization method described in the current section can be seen as a second-order counterpart of the method introduced in [16]. (See, also, [11].) The iterates visit the different faces of the box preserving the current face while the quotient is big enough or the new iterate does not hit the boundary. When this quotient reveals that few progress can be expected from staying in the current face, the face is abandoned by means of a spectral projected gradient [21, 22, 23] iteration. Within each face, iterations obey a safeguarded Newton scheme with line searches. The employment of this method is coherent with the conservative point of view of Algencan. For example, we do not aim to predict the active constraints at the solution and the inactive bounds have no influence in the iterations independently of the distance of the current iterate to a bound. Moreover, we do not try to use second-order information for leaving the faces. Of course, we do not deny the efficiency of methods that employ such procedures, but we feel comfortable with the conservative strategy because the number of algorithmic parameters can be reduced to a minimum.
Algorithm 4.1: Assume that , , , , , , , , , , , are given. Initialize .
Step 1.
If then stop. Otherwise, if then go to Step 2 to perform an inner-to-the-face iteration using Newton with line search else go to Step 5 to perform a leaving-face iteration using spectral projected gradients (SPG).
Step 2.
Let be the number of free variables and let be the Hessian in which rows and columns associated with non free variables were removed.
Step 2.1.
If is positive definite then set and compute as the solution of , where corresponds to with the components associated with the non free variables removed, and go to Step 2.3.
Step 2.2.
Inertia correction
Step 2.2.1.
If is undefined then set , where .
Step 2.2.2.
Set and while is not positive definite do .
Step 2.2.3.
Compute as a solution of , where corresponds to with the components associated with the non free variables removed.
Step 2.2.4.
While do and redefine as the solution of . ( corresponds to the free components of .)
Step 2.3.
Let be the “expansion” of with if is a non-free-variable index.
Step 2.4.
If then set . Otherwise, set .
Step 3.
Line search plus possible projection
Step 3.1.
Compute as the largest such that . If (i.e. ) then skip Step 3.2 below (i.e. go to Step 3.3).
Step 3.2.
Set . If or then set and go to Step 4.
Step 3.3.
Set and . While and , choose and set and .
Step 3.4.
Set . If or ( and ) then go to Step 4. Otherwise, go to Step 6.
Step 4.
Extrapolation
Step 4.1.
Set , , and .
Step 4.2.
While and and do
, , and .
Step 4.3.
Reset and go to Step 6.
Step 5.
Leaving-face SPG iteration
Step 5.1.
If or then set
[TABLE]
Otherwise, set .
In any case, redefine as .
Step 5.2.
Set , , and .
Step 5.3.
While and ,
choose and set and .
Step 5.4.
Set .
Step 6.
In the current iteration, the definition of implied in the evaluation of at several points named . If, for any of them, we have that then reset . In any case, set and go to Step 1.
Remark 1. At Steps 3.3 and 5.3, interpolation is done with safeguarded quadratic interpolation. This means that, given
[TABLE]
if then . Otherwise, . This choice requires instead of simply .
5 Implementation details and parameters
We implemented Algorithms 2.1 and 4.1 in Fortran 90. Implementation is freely available at http://www.ime.usp.br/~egbirgin/. Interfaces for solving user-defined problems coded in Fortran 90 as well as problems from the CUTEst [37] collection are available. All tests reported below were conducted on a computer with 3.5 GHz Intel Core i7 processor and 16GB 1600 MHz DDR3 RAM memory, running OS X High Sierra (version 10.13.6). Codes were compiled by the GFortran compiler of GCC (version 8.2.0) with the -O3 optimization directive enabled.
5.1 Augmented Lagrangian method
Algorithm 2.1 was devised to be applied to a scaled version of problem (50). Following the Ipopt strategy described in [47, p.46], in the scaled problem, the objective function is multiplied by
[TABLE]
each constraint () is multiplied by
[TABLE]
and each constraint () is multiplied by
[TABLE]
where is the given initial guess. The scaling is optional and it is used when the input parameter “scale” is set to “true”. If the parameter is set to “false”, the original problem, that corresponds to considering all scaling factors equal to one, is solved.
As stopping criterion, we say that an iterate with its associated Lagrange multipliers and satisfies the main stopping criterion when
[TABLE]
where , , and are given constants. This means that the stopping criterion requires unscaled feasibility with tolerance plus scaled optimality with tolerance and scaled complementarity (measured with the function) with tolerance . Note that , i.e. it satisfies the bound-constraints with zero tolerance. In addition to this stopping criterion, Algorithm 2.1 also stops if the penalty parameter reaches the value or if, in three consecutive iterations, the inner solver that is used at Step 1 fails at finding a point that satisfies (3).
In (3) and (4), we consider . At Step 2, we consider and for ; and, at Step 3, if and then we set and . Otherwise, we set and . In the numerical experiments, we set , , , , , , , , , and
[TABLE]
Two additional strategies complete the implementation of Algorithm 2.1. On the one hand, if Algorithm 2.1 fails at finding a point that satisfies (52), the feasibility problem (7) is tackled with Algorithm 4.1 with the purpose of, at least, finding a feasible point to the original NLP problem (1). On the other hand, at every iteration , prior to the subproblem minimization at Step 1, is used as initial guess to perform ten iterations of the “pure” Newton method (no line search, no inertia correction) applied to the semismooth KKT system [42, 44] associated with problem (50), with dimension , given by
[TABLE]
where are the Lagrange multipliers associated with the bound constraints and , respectively. This process is related to the so-called acceleration process described in [18] in which a different KKT system was considered. (See [18] for details.) The stopping criteria for the acceleration process are (i) “the Jacobian of the KKT system has the ’wrong’ inertia”, (ii) “a maximum of 10 iterations was reached”, and (iii)
[TABLE]
Note that criterion (iii) corresponds to satisfying approximate KKT conditions for the unscaled original problem (1). On the other hand, differently from an iterate of Algorithm 2.1 that satisfies (52,53,54), a point that satisfies criterion (iii) may violate the bound constraints with tolerance .
If the acceleration process stops satisfying criterion (i) or (ii), everything it was done in the acceleration is discarded and the iterations of Algorithm 2.1 continue. On the other hand, assume that a point satisfying criterion (iii) was found by the acceleration process. If satisfies (52,53,54) with half the precision, i.e. with , , and substituted by , , and , respectively, then we say the acceleration was successful, the point found by the acceleration process is returned, and the optimization process stops. On the other hand, if is far from satisfying (52,53,54), we believe the approximate KKT point the acceleration found may be an undesirable point. The point is saved for further references, but the optimization process continues; and the next Augmented Lagrangian subproblem is tackled by Algorithm 4.1 starting from and ignoring the point found by the acceleration process.
5.2 Bound-constrained minimization method
As main stopping criterion of Algorithm 4.1, we considered the condition
[TABLE]
where as defined in (51). When an unconstrained or bound-constrained problem is being solved, in (58) and in the alternative stopping criteria described below, we use . When the problem being tackled by Algorithm 4.1 is a subproblem of Algorithm 2.1, the value of in (58) and in the alternative stopping criteria described below is the one described in Section 5.1 (that we cannot mention here since we are using to denote iterations of both Algorithms 2.1 and 4.1). In addition, Algorithm 4.1 may also stop at iteration by any of the following alternative stopping criteria: (a) for all ; (b) for all ; (c) for all ; (d) ; (e) ; and (f) is the smallest index such that and , i.e. the best functional value so far obtained is not updated in three consecutive iterations.
In Algorithm 4.1, although the theory allows us a wide range of possibilities, in practice we consider for all . The linear systems at Step 2.1 and 2.2.2 are solved with subroutine MA57 from HSL [48] (using all its default parameters). In the experiments, we set , , , , , , , , , , , , , , and .
When Algorithm 4.1 is used to solve a subproblem of Algorithm 2.1, we have that , i.e. is the Hessian of the augmented Lagrangian associated with the scaled version of problem (50) given by
[TABLE]
where . A relevant issue from the practical point of view is that, despite the sparsity of the Hessian of the Lagrangian and the sparsity of the Jacobian of the constraints, this matrix may be dense. Thus, factorizing, or even building it, may be prohibitive. As an alternative, instead of building and factorizing the Hessian above, it can be solved an augmented linear system with the coefficients’ matrix given by
[TABLE]
where is a matrix whose columns are plus the gradients such that . This matrix preserves the sparsity of the Hessian of the Lagrangian and of the Jacobian of the constraints. The implementation of Algorithms 4.1 dynamically selects one of the two aproaches.
Another relevant fact from the practical point of view, related to matrices (59) and (60), is that the current tools available in CUTEst compute the full Jacobian of the constraints and with if instead of and , respectively. On the one hand, this feature preserves the Jacobian’s and the Hessian-of-the-Lagrangian’s sparsity structures independently of and , as required by some solvers. On the other hand, it impairs Algorithm 2.1, when applied to problems from the CUTEst collection, of fully exploiting the potential advantage of dealing with inequality constraints without adding slack variables. In summary, Algorithm 2.1–4.1 is prepared to deal with matrices with different sparsity structures at every iteration and, for that reason, it performs the analysis step of the factorization at every iteration. This is the price to pay for exploiting inequality constraints without adding slack variables. However, the CUTEst subroutines are not prepared to exploit this feature and Algorithm 2.1–4.1, when solving problems from the CUTEst collection, pays the price without enjoying the advantages. Of course, this CUTEst inconvenient influences negatively the comparison of Algencan with other solvers if the CPU time is used as a performance measure.
6 Numerical experiments
In this section, we aim to evaluate the performance of Algorithm 2.1–4.1 (referred as Algencan from now on) for solving unconstrained, bound-constrained, feasibility, and nonlinear programming problems. The performance of Ipopt [47] (version 3.12.12) is also exhibited. Both methods were run in the same computational environment, compiled with the same BLAS routines, and also using the same subroutine MA57 from HSL for solving the linear systems. All Ipopt default parameters were used222Option ’honor_original_bounds no’, that does not affect Ipopt’s optimization process, was used. Ipopt might relax the bounds during the optimization beyond its initial relative relaxation factor whose default value is . Option ’honor_original_bounds no’ simply avoids the final iterate to be projected back onto the box defined by the bound constraints. So, the actual absolute violation of the bound constraints at the final iterate can be measured.. A CPU time limit of 10 minutes per problem was imposed. In the numerical experiments, we considered all problems from the CUTEst collection [37] with their default dimensions. In the collection, there are 217 unconstrained problems, 144 bound-constrained problems, 157 feasibility problems, and 740 nonlinear programming problems. A hint on the number of variables in each family is given in Table 1.
Large tables with a detailed description of the output of each method in the problems can be found in http://www.ime.usp.br/~egbirgin/. A brief overview follows. Note that, since the methods differ in the stopping criteria, arbitrary decisions will be made. A point in common is that both methods seek satisfying the (sup-norm of the) violation of the unscaled equality and inequality constraints with precision . However, as described in [47, §3.5], Ipopt considers a relative initial relaxation of the bound constraints (whose default value is ); and it may apply repeated additional relaxations during the optimization process. Table 2 shows the number of problems in which each method found a point satisfying
[TABLE]
plus
[TABLE]
with and . Figures in the table show that, in most cases, Algencan satisfies the bound constraints with zero tolerance and that the violation of the bound constraints rarely exceeds the tolerance . This is an expected result, since the method satisfies these requirements by definition. Regarding Ipopt, the table shows in which way the amount of problems in which (62) holds varies as a function of the tolerance .
If the violation of the bound constraints is disregarded, Table 2 shows that Algencan found points satisfying (61,62) with and in problems; while Ipopt found the same in . There are in the CUTEst collection 85 problems (62 feasibility problems and 23 nonlinear programming problems) in which the number of equality constraints is larger than the number of variables. Ipopt does not apply to these problems and, thus, of course, it does not find a point satisfying (61,62). Algencan did find a point satisfying (61,62) in 28 out of the 85 problems to which Ipopt does not apply; and this explains half of the difference between the methods. In any case, it can be said that, over a universe of problems, both methods found “feasible points” in a large fraction of the problems; recalling that the collection contains infeasible problems.
We now consider the set of 757 problems in which both methods found a point satisfying (61) with and (62) with . For a given problem, let be the value of the objective function at the point found by Algencan; let be the value of the objective function at the point found by Ipopt; and let . Table 3 shows in how many problems it holds
[TABLE]
and .
Finally, we consider the set of 688 problems in which both, Algencan and Ipopt, found a point that satisfies (61) with , (62) with , and (63) with . For this set of problems, Figure 1 shows the performance profile [30] that considers, as performance measure, the CPU time spent by each method. In the figure, for ,
[TABLE]
where denotes the cardinality of set , is the number of considered problems, and is the performance measure (CPU time) of method applied to problem . Thus, and says that Algencan was faster than Ipopt in 48% of the problems and Ipopt was faster then Algencan in 53% of the problems. Complementing the performance profile, we can report that there are 9 problems in which both methods spent at least a second of CPU time and one of the methods is at least ten times faster than the other. Among these 9 problems, Ipopt is faster in 5 and Algencan is faster in the other 4.
7 Conclusions
In this work, a version of the (safeguarded) Augmented Lagrangian algorithm Algencan [3, 20] that possesses iteration and evaluation complexity was described, implemented, and evaluated. Moreover, the convergence theory of Algencan was complemented with new complexity results. The way in which an Augmented Lagrangian method was able to inherit the complexity properties from a method for bound-constrained minimization is a nice example of the advantages of the modularity feature that Augmented Lagrangian methods usually possess.
As a byproduct of this development, a new version of Algencan that uses a Newtonian method with line search to solve the subproblems was developed from scratch. Moreover, the acceleration process described in [18] was revisited. In particular, the KKT system with complementarity modelled with the product between constraints and multipliers was replaced with the KKT system that models the complementarity constraints with the semismooth function.
We provided a fully reproducible comparison with Ipopt, which is, probably, de most effective and best known free software for constrained optimization. The main feature we want to stress is that there exist a significative number of problems that Algencan solves satisfactorily whereas Ipopt does not, and vice versa. This is not surprising because the way in which Augmented Lagrangians and Interior Point Newtonian methods handle problems are qualitatively different. Constrained Optimization is an extremely heterogeneous family. Therefore, we believe that what justifies the existence of new algorithms or the survival of traditional ones is not their capacity of solving a large number of problems using slightly smaller computer time than “competitors”, but the potentiality of solving some problems that other algorithms fail to solve. Engineers and practitioners should not care about the choice between algorithm A or B according to subtle efficiency criteria. The best strategy is to contemplate both, using one or the other according to their behavior on the family of problems that they need to solve in practice. As in many aspects of life, competition should give place to cooperation.
Acknowledgements. The authors are indebted to Iain Duff, Nick Gould, Dominique Orban, and Tyrone Rees for their help in issues related to the usage of MA57 from HSL and the CUTEst collection.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] R. Andreani, J. M. Martínez, and L. T. Santos, Newton’s method may fail to recognize proximity to optimal points in constrained optimization, Mathematical Programming 160, pp. 547–555, 2016.
- 2[2] R. Andreani, J. M. Martínez, L. T. Santos, and B. F. Svaiter, On the behavior of constrained optimization methods when Lagrange multipliers do not exist, Optimization Methods and Software 29, pp. 646–657, 2014.
- 3[3] R. Andreani, E. G. Birgin, J. M. Martínez, and M. L. Schuverdt, On augmented Lagrangian methods with general lower-level constraints, SIAM Journal on Optimization 18, pp. 1286–1309, 2008.
- 4[4] R. Andreani, E. G. Birgin, J. M. Martínez and M. L. Schuverdt, Augmented Lagrangian methods under the Constant Positive Linear Dependence constraint qualification, Mathematical Programming 111, pp. 5–32, 2008.
- 5[5] R. Andreani, E. G. Birgin, J. M. Martínez, and M. L. Schuverdt, Second-order negative-curvature methods for box-constrained and general constrained optimization, Computational Optimization and Applications 45, pp. 209–236, 2010.
- 6[6] R. Andreani, N. S. Fazzio, M. L. Schuverdt, and L. D. Secchin, A Sequential Optimality Condition Related to the Quasi-normality Constraint Qualification and its Algorithmic Consequences, SIAM Journal on Optimization 29, pp. 743–766, 2019.
- 7[7] R. Andreani, G. Haeser, and J. M. Martínez, On sequential optimality conditions for smooth constrained optimization, Optimization 60, pp. 627–641, 2011.
- 8[8] R. Andreani, J. M. Martínez, A. Ramos, and P. J. S. Silva, A Cone-Continuity Constraint Qualification and algorithmic consequences, SIAM Journal on Optimization 26, pp. 96–110, 2016.
