Читать книгу Mathematical Programming for Power Systems Operation - Alejandro Garcés Ruiz - Страница 43
2.6 Lagrange multipliers
ОглавлениеReality imposes physical constraints into the problems and these constraints must be considered into the model. For example, an optimization model may include equality constraints, as presented below:
(2.39)
For solving this problem, a function called lagrangian is defined as follows:
(2.40)
This new function depends on the original decision variables x and a new variable λ, known as Lagrange multiplier or dual variable. By means of the lagrangian function, a constrained optimization problem was transformed into an unconstrained optimization problem that can be solved numerically, namely:
(2.41)
(2.42)
by a small abuse of notation, ∂f / ∂x is used instead of ∇f, which is the formal representation for the n-dimentional case, (the same for L and g). Notice that the optimal conditions of L imply optimal solution in f but also feasibility in terms of the constraint.
The first condition implies that the gradient of the objective function must be parallel to the gradient of the constraint and, the Lagrange multiplier is the proportionality constant. Besides this geometrical interpretation, Lagrange multipliers have another interesting interpretation. Suppose a local optimum x~ is found for a constrained optimization problem, and we want to know the sensibility of this optimum with respect to a. The following derivative can be calculated, relating the change of the objective function with respect to a change in the constrain:
(2.43)
(2.44)
(2.45)
The first two terms in the right-hand side of the equation vanishes, in view of the optimal conditions of x~; thus, the following expresion is obtained:
(2.46)
this means that λ is the variation of the lagrangian (and hence the objective function), for a small variation on the parameter a (see Chapter 3 for more details about dual variables).