Interior-point method for LP: Difference between revisions
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
Another key concept to understand is regarding solving linear and non-linear equations using Newton's methods. | Another key concept to understand is regarding solving linear and non-linear equations using Newton's methods. | ||
Assume an unconstrained minimization problem in the form: <br> | Assume an unconstrained minimization problem in the form: <br> | ||
minimize | minimize <math> g\left ( x \right ) </math> , where <math> g\left ( x \right ) </math> is a real valued function with <math> 'n' </math> variables. <br> | ||
A local minimum for this problem will satisfy the following system of equations:<br> | A local minimum for this problem will satisfy the following system of equations:<br> | ||
<math>\left [ \frac{\partial g(x)}{\partial x_{1}} ..... \frac{\partial g(x)}{\partial x_{n}}\right ]^{T} = \left [ 0 ... 0 \right ]</math> <br> | <math>\left [ \frac{\partial g(x)}{\partial x_{1}} ..... \frac{\partial g(x)}{\partial x_{n}}\right ]^{T} = \left [ 0 ... 0 \right ]</math> <br> |
Revision as of 13:06, 6 December 2020
Authors: Tomas Lopez Lauterio, Rohit Thakur and Sunil Shenoy (SysEn 6800 Fall 2020)
Steward: Dr. Fengqi You and Akshay Ajagekar
Introduction
Linear programming problems seek to optimize linear functions given linear constraints. There are several applications of linear programming including inventory control, production scheduling, transportation optimization and efficient manufacturing processes. Simplex method has been a very popular method to solve these linear programming problems and has served these industries well for a long time. But over the past 40 years, there have been significant number of advances in different algorithms that can be used for solving these types of problems in more efficient ways, especially where the problems become very large scale in terms of variables and constraints.[1] [2] In early 1980s Karmarkar (1984) [3] published a paper introducing interior point methods to solve linear-programming problems. A simple way to look at differences between simplex method and interior point method is that a simplex method moves along the edges of a polytope towards a vertex having a lower value of the cost function, whereas an interior point method begins its iterations inside the polytope and moves towards the lowest cost vertex without regard for edges. This approach reduces the number of iterations needed to reach that vertex, thereby reducing computational time needed to solve the problem.
Lagrange Function
Before getting too deep into description of Interior point method, there are a few concepts that are helpful to understand. First key concept to understand is related to Lagrange function. Lagrange function incorporates the constraints into a modified objective function in such a way that a constrained minimizer is connected to an unconstrained minimizer for the augmented objective function , where the augmentation is achieved with Lagrange multipliers. [4][5]
To illustrate this point, consider a simple an optimization problem:
minimize
subject to:
where, is assumed to have a full row rank
Lagrange function can be laid out as:
where, introduced in this equation is called Lagrange Multiplier.
Newton's Method
Another key concept to understand is regarding solving linear and non-linear equations using Newton's methods.
Assume an unconstrained minimization problem in the form:
minimize , where is a real valued function with variables.
A local minimum for this problem will satisfy the following system of equations:
The Newton's iteration looks like:
Theory and algorithm
We first start forming a primal-dual pair of linear programs and use the "Lagrangian function" and "Barrier function" methods to convert the constrained problems into unconstrained problems. These unconstrained problems are then solved using Newton's method as shown above.
Problem Formulation
Consider a combination of primal-dual problem below:
(Primal Problem formulation)
→ minimize Subject to: and ....................................................................................................(1)
(Dual Problem formulation)
→ maximize Subject to: and </math> \lambda \geq 0 </math> .................................................(2)
'λ' vector introduced represents the slack variables.
Now we use the "Logarithmic Barrier" function and form 2 Lagrangian equations for primal and dual forms mentioned above:
Lagrange function for Primal : ........................................(3)
Lagrange function for Dual : ..........................(4)
Taking the partial derivatives of Lp and Ld with respect to variables 'x', 'λ' , 'y', and forcing these terms to zero, we get the following equations:
and .................................................................................................................................................(5)
and .........................................................................................................................................(6)
for j= 1,2,.......n ......................................................................................................................................(7)
where, μ is strictly positive scaler parameter. For each μ > 0, the vectors in the set {x(μ), y(μ), λ(μ)} satisfying equations (5), (6) and (7), can we viewed as set of points in Rn, Rp, Rn such that when 'μ' varies, the corresponding points form a set of trajectories called "Central Path". The central path lies in the "Interior" of the feasible regions. There is a sample illustration of "Central Path" method in figure to right. We start with a positive value of 'μ' and as 'μ' goes to 0, we approach the optimal point
Let us define the following:
X = Diagonal ()
= Diagonal ( )
eT = (1 .....1) as vector of all 1's.
Using these newly defined terms, the equation (7) can be written as:
Iterations using Newton's Method
Now we employ the Newton's iterative method to solve the following equations:
............................................................................................................................................................(8)
.........................................................................................................................................................(9)
............................................................................................................................................ (10)
Suppose we start with definition of starting point that lies within feasible region as (x0, y0, λ 0) such that x0>0 and λ 0 >0. Also let us define 2 residual vectors for both the primal and dual equations:
.....................................................................................................................................................(11)
..........................................................................................................................................(12)
Applying Newton's Method to solve equations (8) - (12) we get:
So a single iteration of Newton's method involves the following equations. For each iteration, we solve for the next value of xk+1, yk+1 and λk+1:
.....................................................................................................(13)
......................................................................................................................................................(14)
............................................................................................................................(15)
for ........................................................................................................................ (16)
for ........................................................................................................................ (17)
The value of the the following variables for next iteration (+1) is determined by:
The quantities αp and αd are positive with 0 ≤ αp, αd ≤ 1.
After each iteration of Newton's method, we assess the duality gap that is given by the expression below and compare it against a small value ε
The value of ε can be chosen to be something small 10-6, which essentially is the permissible duality gap for the problem.
Numerical Example
Maximize 3X1 + 3X2
such that X1 + X2 ≤ 4, X1 ≥ 0, X2 ≥ 0
Barrier form of the above primal problem is as written below:
P(X,μ) = 3X1 + 3X2 + μ.log(4-X1 - X2) + μ.log(X1) + μ.log(X2)
The Barrier function is always concave, since the problem is a maximization problem, there will be one and only one solution. In order to find the maximum point on the concave function we take a derivate and set it to zero.
Taking partial derivative and setting to 0, we get the below equations
.......... (1)
.......... (2)
From the equation (1) and (2) we can derive that X1 = X2 .......... (3)
Plugging (3) in (1) we get
The above equation can be converted into a quadratic equation as below:
The solution to the above quadratic equation can be written as below:
Taking only take the positive value of X1 and X2 from the above equation as X1≥0 and X2≥0 we can solve X1 and X2 for different values of μ. The outcome of such iterations is listed in the table below.
μ | X1 | X2 | P(X, μ) | f(x) |
---|---|---|---|---|
0 | 2 | 2 | 12 | 12 |
0.01 | 1.998 | 1.998 | 11.947 | 11.990 |
0.1 | 1.984 | 1.984 | 11.697 | 11.902 |
1 | 1.859 | 1.859 | 11.128 | 11.152 |
10 | 1.486 | 1.486 | 17.114 | 8.916 |
100 | 1.351 | 1.351 | 94.357 | 8.105 |
1000 | 1.335 | 1.335 | 871.052 | 8.011 |
From the above table it can be seen that:
- as μ gets close to zero, the Barrier Function becomes tight and close to the original function.
- at μ=0 the optimal solution is achieved.
Summary:
Maximum Value of Objective function =12
Optimal points X1 = 2 and X2 = 2
Applications
Primal-Dual interior-point (PDIP) methods are commonly used in optimal power flow (OPF), in this case what is being looked is to maximize user utility and minimize operational cost satisfying operational and physical constraints. The solution to the OPF needs to be available to grid operators in few minutes or seconds due changes fluctuations in loads or power generation. Newton-based primal-dual interior point can achieve fast convergence in this OPF optimization problem1
Another application of the PDIP is for the minimization of losses and cost in the generation and transmission in hydroelectric power systems2
PDIP are commonly used in imaging processing. One application is for image deblurring, in this case the constrained deblurring problem is formulated as primal-dual. The constrained primal-dual is solved using a semi-smooth Newton’s method3
PDIP can be utilized to obtain a general formula for a shape derivative of the potential energy, describing the energy release rate for curvilinear cracks. Problems on cracks and their evolution have important application in engineering and mechanical sciences4.
Conclusion
The primal-dual interior point method is a good alternative to the simplex methods for solving linear programming problems. The primal dual method shows superior performance and convergence on many large complex problems. simplex codes are faster on small to medium problems, interior point primal-dual are much faster on large problems.
References
- ↑ "Practical Optimization - Algorithms and Engineering Applications" by Andreas Antoniou and Wu-Sheng Lu, ISBN-10: 0-387-71106-6
- ↑ "Linear Programming - Foundations and Extensions - 3rd edition" by Robert J Vanderbei, ISBN-113: 978-0-387-74387-5.
- ↑ N Karmarkar, "A new Polynomial - Time algorithm for linear programming", Combinatorica, VOl. 4, No. 8, 1984, pp. 373-395.
- ↑ Computational Experience with Primal-Dual Interior Point Method for Linear Programming" by Irvin Lustig, Roy Marsten, David Shanno
- ↑ "Practical Optimization - Algorithms and Engineering Applications" by Andreas Antoniou and Wu-Sheng Lu, ISBN-10: 0-387-71106-6
- 1) A. Minot, Y. M. Lu and N. Li, "A parallel primal-dual interior-point method for DC optimal power flow," 2016 Power Systems Computation Conference (PSCC), Genoa, 2016, pp. 1-7, doi: 10.1109/PSCC.2016.7540826.
- 2) L. M. Ramos Carvalho and A. R. Leite Oliveira, "Primal-Dual Interior Point Method Applied to the Short Term Hydroelectric Scheduling Including a Perturbing Parameter," in IEEE Latin America Transactions, vol. 7, no. 5, pp. 533-538, Sept. 2009, doi: 10.1109/TLA.2009.5361190.
- 3) D. Krishnan, P. Lin and A. M. Yip, "A Primal-Dual Active-Set Method for Non-Negativity Constrained Total Variation Deblurring Problems," in IEEE Transactions on Image Processing, vol. 16, no. 11, pp. 2766-2777, Nov. 2007, doi: 10.1109/TIP.2007.908079.
- 4) V. A. Kovtunenko, Primal–dual methods of shape sensitivity analysis for curvilinear cracks with nonpenetration, IMA Journal of Applied Mathematics, Volume 71, Issue 5, October 2006, Pages 635–657,