# Difference between revisions of "Interior-point method for NLP"

Author names: Cindy Chen
Steward: Dajun Yue and Fengqi You

# Introduction

The interior point (IP) method for nonlinear programming was pioneered by Anthony V. Fiacco and Garth P. McCormick in the early 1960s. The basis of IP method restricts the constraints into the objective function (duality) by creating a barrier function. This limits potential solutions to iterate in only the feasible region, resulting in a much more efficient algorithm with regards to time complexity.

# Algorithm

A trajectory of local unconstrained minimizers of the logarithmic barrier function (red).

To ensure the program remains within the feasible region, a perturbation factor, $\mu$, is added to "penalize" close approaches to the boundaries. This approach is analogous to the use of an invisible fence to keep dogs in an unfenced yard. As the dog moves closer to the boundaries, the more shock he will feel. In the case of the IP method, the amount of shock is determined by $\mu$. A large value of $\mu$ gives the analytic center of the feasible region. As $\mu$ decreases and approaches 0, the optimal value is calculated by tracing out a central path. With small incremental decreases in $\mu$ during each iteration, a smooth curve is generated for the central path. This method is accurate, but time consuming and computationally intense. Instead, Newton's method is often used to approximate the central path for non-linear programming. Using one Newton step to estimate each decrease in $\mu$ for each iteration, a polynomial ordered time complexity is achieved, resulting in a small zig-zag central path and convergence to the optimal solution.

The logarithmic barrier function is based on the logarithmic interior function:

$B(x, \mu) = f(x) - \mu\log(x) = f(x) - \mu\sum_{i=1}^m ln(x_i)$

# Application

The IP method for NLP have been commonly used to solve Optimal Power Flow (OPF) problems, where a set of nonlinear equations are used to find the optimal solution of a power network in terms of speed and reliability. To solve these problems, the perturbation factor is used in addition to the typical Karush-Kuhn-Tucker (KKT) methods.

Starting with a general optimization problem:

\begin{align} \text{min} & ~~ f(x)\\ \text{s.t.} & ~~ h(x) = 0\\ & ~~ g(x) \le 0 \\ \end{align}

Modify the KKT conditions by adding convergence properties with slack variables and the perturbation factor:

$\nabla_x L (x, \lambda_h, \lambda_g)=0$ $h(x) = 0$
$g(s) + s =0$
$[\lambda_g] s - \mu e=0$
$(s, \lambda_g, \mu) \ge = 0$

Solve the nonlinear equations iteratively by Newton's methods. First determine $\Delta x$ and $\Delta \lambda_h$ with reduced linear equations.
Next, calculate slack variables and corresponding multipliers with:
$\Delta s = -g(x) - s - \nabla g(x) \Delta x$
$\Delta \lambda_g = -\lambda_g + [s^{-1}] * {\mu e - [\lambda_g] \Delta s}$

To calculate the perturbation factor, $\mu$, use primal-dual distances:
$\mu = \sigma * pdad = \sigma * \dfrac{\lambda_g^t s}{niq}$
where $\sigma$ defines the trajectory of the optimal solution, pdad is the primal-dual average distance, and niq accounts for the inequality constraints.

$\sigma$ ranges between 0 and 1. For the extreme conditions:
Failed to parse(lexing error): \begin{align} \& ~~ \sigma = 0 corresponds to ''affine-scaling direction'' where the optimal point is obtained through non-perturbed solution of KKT\\ \& ~~ \sigma = 1 corresponds to "centralization direction" where the non-optimal solution is found with a primal-dual distance equal to the initial value of \mu\\ \end{align}

In a conventional primal-dual IP method,

# Conclusion

The IP method was later adapted for linear programming by Karmarkar in 1984. As a polynomial-time linear programming method, it solved complex linear problems 50 times faster than the simplex method. Multiple solvers utilize the IP method for non-linear programming, such as IPOPT and KNITRO, both of which were developed by IEMS professors at Northwestern University. Although successful, the IP method is no longer as popular since the creation of more competitive methods, such as sequential quadratic programming.

# References

1. Forsgren, Anders; Gill, Philip E.; Wright, Margaret H. "Interior Methods for Nonlinear Optimization." Society for Industrial Applied Mathematics Review. 44.4: 525-597. Link.
2. Shanno, David. "Who Invented the Interior Point Method?" Documenta Mathematica Extra Volume ISMP (2012): 55-64. Link 3. http://www.optimization-online.org/DB_FILE/2001/11/405.pdf 4. https://books.google.com/books?id=3ifNBQAAQBAJ&pg=PR8&lpg=PR8&dq=example+of+nlp+ip+method&source=bl&ots=aq8f36GTc-&sig=QYpK82WLq1dzNMTpKly9HBsSmEk&hl=en&sa=X&ei=xd1zVbeNE8n5yQTb_4HgBg&ved=0CCAQ6AEwAA#v=onepage&q=example%20of%20nlp%20ip%20method&f=false