Ana səhifə

Algorithms and software for linear and nonlinear programming


Yüklə 1.1 Mb.
səhifə2/2
tarix25.06.2016
ölçüsü1.1 Mb.
1   2

Other Input Formats

The established input format for linear programming problems has from the earliest days been MPS, a column oriented format (well suited to 1950s card readers) in which names are assigned to each primal and dual variable, and the data elements that define the problem are assigned in turn. Test problems for linear programming are still distributed in this format. It has significant disadvantages, however. The format is non-intuitive and the files are difficult to modify. Moreover, it restricts the precision to which numerical values can be specified. The format survives only because no universally accepted standard has yet been developed to take its place.

As mentioned previously, vendors such as CPLEX and XPRESS have their own input formats, which avoid the pitfalls of MPS. These formats lack the portability of the modeling languages described above, but they come bundled with the code, and may be attractive for users willing to make a commitment to a single vendor.

For nonlinear programming, SIF (the standard input format) was proposed by the authors of the LANCELOT code in the early 1990s. SIF is somewhat hamstrung by the fact that it is compatible with MPS. SIF files have a similar look to MPS files, except that there are a variety of new keywords for defining variables, groups of variables, and the algebraic relationships between them. For developers of nonlinear programming software, SIF has the advantage that a large collection of test problemsthe CUTE test setis available in this format. For users, however, formulating a model in SIF is typically much more difficult than using one of the modeling languages of the previous section.

For complete information about SIF, see www.numerical.rl.ac.uk/lancelot/sif/sifhtml.html

Nonlinear Programming

Nonlinear programming problems are constrained optimization problems with nonlinear objective and/or constraint functions. However, we still assume that all functions in question are smooth (typically, at least twice differentiable), and that the variables are all real numbers. If any of the variables are required to take on integer values, the problem is a (mixed-) integer nonlinear programming problem, a class that we will not consider in this paper. For purposes of description, we use the following formulation of the problem:



,

where is a vector of real variables, is a smooth real-valued function, and and are smooth functions with dimension and , respectively.

Algorithms for nonlinear programming problems are more varied than those for linear programming. The major approaches represented in production software packages are sequential quadratic programming, reduced gradient, sequential linearly constrained, and augmented Lagrangian methods. (The latter is also known as the method of multipliers.) Extension of the successful interior-point approaches for linear programming to the nonlinear problem is the subject of intense ongoing investigation among optimization researchers, but little production software for these approaches is yet available.

The use of nonlinear models may be essential in some applications, since a linear or quadratic model may be too simplistic and therefore produce useless results. However, there is a price to pay for using the more general nonlinear paradigm. For one thing, most algorithms cannot guarantee convergence to the global minimum, i.e., the valuethat minimizesover the entire feasible region. At best, they will find a point that yields the smallest value of over all points in some feasible neighborhood of itself. (An exception occurs in convex programming, in which the functions and are convex, while are linear. In this case, any local minimizer is also a global minimizer. Note that linear programming is a special case of convex programming.) The problem of finding the global minimizer, though an extremely important one in some applications such as molecular structure determination, is very difficult to solve. While several general algorithmic approaches for global optimization are available, they are invariably implemented in a way that exploits heavily the special properties of the underlying application, so that there is a fair chance that they will produce useful results in a reasonable amount of computing time. We refer to Floudas and Pardalos (1992) and the journal Global Optimization for information on recent advances in this area.

A second disadvantage of nonlinear programming over linear programming is that general-purpose software is somewhat less effective because the nonlinear paradigm encompasses such a wide range of problems with a great number of potential pathologies and eccentricities. Even when we are close to a minimizer , algorithms may encounter difficulties because the solution may be degenerate, in the sense that certain of the active constraints become dependent, or are only weakly active. Curvature in the objective or constraint functions (a second-order effect not present in linear programming), and differences in this curvature between different directions, can cause difficulties for the algorithms, especially when second derivative information is not supplied by the user or not exploited by the algorithm. Finally, some of the codes treat the derivative matrices as dense, which means that they the maximum dimension of the problems they can handle is somewhat limited. However, most of the leading codes, including LANCELOT, MINOS, SNOPT, and SPRNLP are able to exploit sparsity, and are therefore equipped to handle large-scale problems.

Algorithms for special cases of the nonlinear programming problem, such as problems in which all constraints are linear or the only constraints are bounds on the components of , tend to be more effective than algorithms for the general problem because they are more able to exploit the special properties. (We discuss a few such special cases below.) Even for problems in which the constraints are nonlinear, the problem may contain special structures that can be exploited by the algorithm or by the routines that perform linear algebra operations at each iteration. An example is the optimal control problem (arising, for example, in model predictive control), in which the equality constraint represents a nonlinear model of the “plant”, and the inequalities represent bounds and other restrictions on the states and inputs. The Jacobian (matrix of first partial derivatives of the constraints) typically has a banded structure, while the Hessian of the objective is symmetric and banded. Linear algebra routines that exploit this bandedness, or dig even deeper and exploit the control origins of the problem, are much more effective than general routines on such problems.

Local solutions of the nonlinear program can be characterized by a set of optimality conditions analogous to those described above for the linear programming problem. We introduce Lagrange multipliers and for the constraints and , respectively, and write the Lagrangian function for this problem as

The first-order optimality conditions (commonly known as the KKT conditions) are satisfied at a point if there exist multiplier vectors and such that



The active constraints are those for which equality holds at . All the components of are active by definition, while the active components of are those for which

When the constraint gradients satisfy certain regularity conditions at , the KKT conditions are necessary for to be a local minimizer of the nonlinear program, but not sufficient. A second-order sufficient condition is that the Hessian of the Lagrangian, the matrix , has positive curvature along all directions that lie in the null space of the active constraint gradients, for some choice of multipliers and that satisfy the KKT conditions. That is, we require

for all vectors such that and for all active indices .

The sequential quadratic programming (SQP) approach has been investigated extensively from a theoretical point of view and is the basis of several important practical codes, including NPSOL and the more recent SNOPT. It works by approximating the nonlinear programming problem by a quadratic program around the current iterate , that is,

whereis a symmetric matrix (usually positive definite) that contains exact or approximate second-order information about the objective and constraint functions. There are many modifications of this basic scheme. For instance, a trust-region bound limiting the length of the step may be added to the model, or the linear constraints may be adjusted so that the current step is not required to remedy all the infeasibility in the current iterate .

The approximate Hessian can be chosen in a number of ways. Local quadratic convergence can be proved under certain assumptions if this matrix is set to the Hessian of the Lagrangian, that is, evaluated at the primal iterateand the current estimates of the Lagrange multiplier vectors. The code SPRNLP allows users to select this value for , provided that they are willing to supply the second derivative information. Alternatively, can be a quasi-Newton approximation to the Lagrangian Hessian. Update strategies that yield local superlinear convergence are well known, and are implemented in dense codes such as NPSOL, DONLP2, NLPQL, and are available as an option in a version of SPRNLP that does not exploit sparsity. SNOPT also uses quasi-Newton Hessian approximations, but unlike the codes just mentioned it is able to exploit sparsity and is therefore better suited to large-scale problems. Another quasi-Newton variant is to maintain an approximation to the reduced Hessian, the two-sided projection of this matrix onto the null space of the active constraints. The latter approach is particularly efficient when the dimension of this null space is small in relation to the number of components of , as is the case in many process control problems, for instance. The approach does not appear to be implemented in general-purpose SQP software, however.

To ensure that the algorithm converges to a point satisfying the KKT conditions from any starting point, the basic SQP algorithm must be enhanced by the addition of a “global convergence” strategy. Usually, this strategy involves a merit function, whose purposes is to evaluate the desirability of a given iterate by accounting for its objective value and the amount by which it violates the constraints. The commonly used penalty function simply forms a weighted average of the objective and the constraint violations, as follows:



where is the vector of length whose elements are and is a positive parameter. The simplest algorithm based on this function fixes and insists that all steps produce a “sufficient decrease” in the value of . Line search or trust region strategies are applied to ensure that steps with the required property can be found whenever the current point does not satisfy the KKT conditions. More sophisticated strategies contain mechanisms for adjusting the parameter and for ensuring that the fast local convergence properties are not compromised by the global convergence strategy.

We note that the terminology can be confusing”global convergence” in this context refers to convergence to a KKT point from any starting point, and not to convergence to a global minimizer.

For more information on SQP, we refer to the review paper of Boggs and Tolle (1996), and Chapter 18 of Nocedal and Wright (1999).

A second algorithmic approach is known variously as the augmented Lagrangian method or the method of multipliers. Noting that the first KKT condition, namely, , requiresto be a stationary point of the Lagrangian function , we modify this function to obtain an augmented function for which is not just a stationary point but also a minimizer. When only equality constraints are present (that is, is vacuous), the augmented Lagrangian function has the form

where is a positive parameter. It is not difficult to show that if is set to its optimal value (the value that satisfies the KKT conditions) and is sufficiently large, that is a minimizer of . Intuitively, the purpose of the squared-norm term is to add positive curvature to the function in just those directions in which it is neededthe directions in the range space of the active constraint gradients. (We know already from the second-order sufficient conditions that the curvature of in the null space of the active constraint gradients is positive.)

In the augmented Lagrangian method, we exploit this property by alternating between steps of two types:


The update formula for has the form

where is the approximate minimizing value just calculated. Simple constraints such as bounds or linear equalities can be treated explicitly in the subproblem, rather than included in the second and third terms of . (In LANCELOT, bounds on components of are treated in this manner.) Practical augmented Lagrangian algorithms also contain mechanisms for adjusting the parameter and for replacing the squared norm term by a weighted norm that more properly reflects the scaling of the constraints and their violations at the current point.

When inequality constraints are present in the problem, the augmented Lagrangian takes on a slightly more complicated form that is nonetheless not difficult to motivate. We define the function as follows:

The definition of is then modified to incorporate the inequality constraints as follows:



The update formula for the approximate multipliers is



See the references below for details on derivation of this form of the augmented Lagrangian.

The definitive implementation of the augmented Lagrangian approach for general-purpose nonlinear programming problems is LANCELOT. It incorporates sparse linear algebra techniques, including preconditioned iterative linear solvers, making it suitable for large-scale problems. The subproblem of minimizing the augmented Lagrangian with respect to is a bound-constrained minimization problem, which is solved by an enhanced gradient projection technique. Problems can be passed to Lancelot via subroutine calls, SIF input files, and AMPL.

For theoretical background on the augmented Lagrangian approach, consult the books of Bertsekas (1982, 1995), and Conn, Gould, and Toint (1992), the authors of LANCELOT. The latter book is notable mainly for its pointers to the papers of the same three authors in which the theory of Lancelot is developed. A brief derivation of the theory appears in Chapter 17 of Nocedal and Wright (1999). (Note that the inequality constraints in this reference are assumed to have the form rather than , necessitating a number of sign changes in the analysis.)

Interior-point solvers for nonlinear programming are the subjects of intense current investigation. An algorithm of this class, known as the sequential unconstrained minimization technique (SUMT) was actually proposed in the 1960s, in the book of Fiacco and McCormick (1968). The idea at that time was to define a barrier-penalty function for the NLP as follows:

where is a small positive parameter. Given some value of , the algorithm finds an approximation to the minimizer of . It then decreases and repeats the minimization process. Under certain assumptions, one can show that as so the sequence of iterates generated by SUMT should approach the solution of the nonlinear program provided that is decreased to zero. The difficulties with this approach are that all iterates must remain strictly feasible with respect to the inequality constraints (otherwise the log functions are not defined), and the subproblem of minimizing becomes increasingly difficult to solve as becomes small, as the Hessian of this function becomes highly ill conditioned and the radius of convergence becomes tiny. Many implementations of this approach were attempted, including some with enhancements such as extrapolation to obtain good starting points for each value of . However, the approach does not survive in the present generation of software, except through its profound influence on the interior-point research of the past 15 years.

Some algorithms for nonlinear programming that have been proposed in recent years contain echoes of the barrier function , however. For instance, the NITRO algorithm (Byrd, Gilbert, and Nocedal (1996)) reformulates the subproblem for a given positive value of as follows:



NITRO then applies a trust-region SQP algorithm for equality constrained optimization to this problem, choosing the trust region to have the form



where the diagonal matrix and the trust-region radius are chosen so that the step does not violate strict positivity of the components, that is, NITRO is available through the NEOS Server at www.mcs.anl.gov/neos/Server/ . The user is required to specify the problem by means of FORTRAN subroutines to evaluate the objective and constraints. Derivatives are obtained automatically by means of ADIFOR.

An alternative interior-point approach is closer in spirit to the successful primal-dual class of linear programming algorithms. These methods generate iterates by applying Newton-like methods to the equalities in the KKT conditions. After introducing the slack variables for the inequality constraints, we can restate the KKT conditions as follows:

where and are diagonal matrices formed from the vectors and , respectively, while is the vector . We generate a sequence of iterates satisfying the strict inequality by applying a Newton-like method to the system of nonlinear equations formed by the first four conditions above. Modification of this basic approach to ensure global convergence is the major challenge associated with this class of solvers; the local convergence theory is relatively well understood. Merit functions can be used, along with line searches and modifications to the matrix in the equations that are solved for each step, to ensure that each step at least produces a decrease in the merit function. However, no fully satisfying complete theory has yet been proposed.

The code LOQO implements a primal-dual approach for nonlinear programming problems. It requires the problem to be specified in AMPL, whose built-in automatic differentiation features are used to obtain the derivatives of the objective and constraints. LOQO is also available through the NEOS Server at www.mcs.anl.gov/neos/Server/ , and or can be obtained for a variety of platforms.

The reduced gradient approach has been implemented in several codes that have been available for some years, notably, CONOPT and LSGRG2. This approach uses the formulation in which only bounds and equality constraints are present. (Any nonlinear program can be transformed to this form by introducing slacks for the inequality constraints and constraining the slacks to be nonnegative.) Reduced gradient algorithms partition the components of into three classes: basic, fixed, and superbasic. The equality constraint is used to eliminate the basic components from the problem by expressing them implicitly in terms of the fixed and superbasic components. The fixed components are those that are fixed at one of their bounds for the current iteration. The superbasics are the components that are allowed to move in a direction that reduces the value of the objective . Strategies for choosing this direction are derived from unconstrained optimization; they include steepest descent, nonlinear conjugate gradient, and quasi-Newton strategies. Both CONOPT and LSGRG2 use sparse linear algebra techniques during the elimination of the basic components, making them suitable for large-scale problems. While these codes have found use in many engineering applications, their performance is often slower than competing codes based on SQP and augmented Lagrangian algorithms.

Finally, we mention MINOS, a code that has been available for many years in a succession of releases, and that has proved its worth in a great many engineering applications. When the constraints are linear, MINOS uses a reduced gradient algorithm, maintaining feasibility at all iterations and choosing the superbasic search direction with a quasi-Newton technique. When nonlinear constraints are present, MINOS forms linear approximations to them and replaces the objective with a projected augmented Lagrangian function in which the deviation from linearity is penalized. Convergence theory for this approach is not well establishedthe author admits that a reliable merit function is not knownbut it appears to converge on most problems.

The NEOS Guide page for SNOPT contains some guidance for users who are unsure whether to use MINOS or SNOPT. It describes problem features that are particularly suited to each of the two codes.



Obtaining Derivatives

One onerous requirement of some nonlinear programming codes has been their requirement that the user supply code for calculating derivatives of the objective and constraint functions. An important development of the past 10 years is that this requirement has largely disappeared. Modeling languages such as AMPL contain their own built-in systems for calculating first derivatives at specified values of the variable vector , and supplying them to the underlying optimization code on request. Automatic differentiation software tools such as ADIFOR (Bischof et al. (1996)), which works with FORTRAN code, have been used to obtain derivatives from extremely complex “dusty deck” function evaluation routines. In the NEOS Server, all of the nonlinear optimization routines (including LANCELOT, SNOPT, and NITRO) are linked to ADIFOR, so that the user needs only to supply FORTRAN code to evaluate the objective and constraint functions, not their derivatives. Other high quality software tools for automatic differentiation include ADOL-C (Griewank, Juedes, and Utke (1996)), ODYSSEE (Rostaing, Dalmas, and Galligo (1993)), and ADIC (Bischof, Roh, and Mauer (1997)).


References

Andersen, E. D. and Andersen, K. D. (1995). Presolving in linear programming. Math. Prog., 71, 221-245.

Bertsekas, D. P. (1982). Constrained Optimization and Lagrange Multiplier Methods. Academic Press, New York.

Bertsekas, D. P. (1995). Nonlinear Programming. Athena Scientific.

Bischof, C., Carle, A., Khademi, P., and Mauer, A. (1996). ADIFOR 2.0: Automatic differentiation of FORTRAN programs. IEEE Computational Science and Engineering, 3, 18-32.

Bischof, C., Roh, L., and Mauer, A. (1997). ADIC: An extensible automatic differentiation tool for ANSI-C. Software-Practice and Experience, 27, 1427-1456.

Bisschop, J. and Entriken, R. (1993). AIMMS: The Modeling System. Available from AIMMS web site at http://www.paragon.nl

Boggs, P. T. and Tolle, J. W. (1996). Sequential quadratic programming, Acta Numerica, 4, 1-51.

Byrd, R. H., Gilbert, J.-C., and Nocedal, J. (1996). A trust-region algorithm based on interior-point techniques for nonlinear programming. OTC Technical Report 98/06, Optimization Technology Center. (Revised, 1998.)

Chvatal, V. (1983). Linear Programming. Freeman, New York.

Conn, A. R., Gould, N. I. M., and Toint, Ph. L. (1992). LANCELOT: A FORTRAN Package for Large-Scale Nonlinear Optimization (Release A). Volume 17, Springer Series in Computational Mathematics, Springer-Verlag, New York.

Czyzyk, J., Mesnier. M. P., and More’, J. J. (1998). The NEOS Server. IEEE Journal on Computational Science and Engineering, 5, 68-75.

Fiacco, A. V. and McCormick, G. P. (1968). Nonlinear Programming: Sequential Unconstrained Minimization Tecnhiques. John Wiley and Sons, New York. (Reprinted by SIAM Publications, 1990.)

Floudas, C. and Pardalos, P., eds (1992). Recent Advances in Global Optimization. Princeton University Press, Princeton.

Fourer, R., Gay, D. M., and Kernighan, B. W. (1993). AMPL: A Modeling Language for Mathematical Programming.The Scientific Press, San Francisco.

Griewank, A., Juedes, D., and Utke, J. (1996). ADOL-C, A package for the automatic differentiation of algorithms written in C/C++. ACM Transactions on Mathematical Software, 22, 131-167.

Luenberger, D. (1984). Introduction to Linear and Nonlinear Programming. Addison Wesley.

Nash, S. and Sofer, A. (1996). Linear and Nonlinear Programming. McGraw-Hill.

Nocedal, J. and Wright, S. J. (forthcoming,1999). Numerical Optimization. Springer, New York.

Rostaing, N., Dalmas, S., and Galligo, A. (1993). Automatic differentiation in Odyssee. Tellus, 45a, 558-568.



Wright, S. J. (1997). Primal-Dual Interior-Point Methods. SIAM Publications, Philadelphia, Penn.

1   2


Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©atelim.com 2016
rəhbərliyinə müraciət