barrier function#Logarithmic barrier function

{{Short description|Continuous function whose value increases to infinity}}

{{About|the topic in optimization |the topic in dynamical systems|Barrier certificate}}{{Redirect|Barrier method|the method of safer sex|Barrier methods}}

In constrained optimization, a field of mathematics, a barrier function is a continuous function whose value increases to infinity as its argument approaches the boundary of the feasible region of an optimization problem.{{cite book|title = Lectures on Convex Optimization |edition=2 | first=Yurii| last = Nesterov | year=2018| publisher=Springer | location=Cham, Switzerland | isbn=978-3-319-91577-7 | page=56}}{{cite book|title = Numerical Optimization |edition=2 | first=Jorge| last = Nocedal |first2=Stephen |last2=Wright| year=2006| publisher=Springer | location=New York, NY| isbn=0-387-30303-0 | page=566}} Such functions are used to replace inequality constraints by a penalizing term in the objective function that is easier to handle. A barrier function is also called an interior penalty function, as it is a penalty function that forces the solution to remain within the interior of the feasible region.

The two most common types of barrier functions are inverse barrier functions and logarithmic barrier functions. Resumption of interest in logarithmic barrier functions was motivated by their connection with primal-dual interior point methods.

Motivation

Consider the following constrained optimization problem:

:minimize {{math|f(x)}}

:subject to {{math|xb}}

where {{mvar|b}} is some constant. If one wishes to remove the inequality constraint, the problem can be reformulated as

:minimize {{math|f(x) + c(x)}},

:where {{math|c(x) {{=}} ∞}} if {{math|x > b}}, and zero otherwise.

This problem is equivalent to the first. It gets rid of the inequality, but introduces the issue that the penalty function {{mvar|c}}, and therefore the objective function {{math|f(x) + c(x)}}, is discontinuous, preventing the use of calculus to solve it.

A barrier function, now, is a continuous approximation {{mvar|g}} to {{mvar|c}} that tends to infinity as {{mvar|x}} approaches {{mvar|b}} from above. Using such a function, a new optimization problem is formulated, viz.

:minimize {{math|f(x) + μg(x)}}

where {{math|μ > 0}} is a free parameter. This problem is not equivalent to the original, but as {{mvar|μ}} approaches zero, it becomes an ever-better approximation.{{cite book |first=Robert J. |last=Vanderbei |authorlink=Robert J. Vanderbei |title=Linear Programming: Foundations and Extensions |year=2001 |publisher=Kluwer |pages=277–279}}

Logarithmic barrier function

For logarithmic barrier functions, g(x,b) is defined as -\log(b-x) when x < b and \infty otherwise (in one dimension; see below for a definition in higher dimensions). This essentially relies on the fact that \log t tends to negative infinity as t tends to 0.

This introduces a gradient to the function being optimized which favors less extreme values of x (in this case values lower than b), while having relatively low impact on the function away from these extremes.

Logarithmic barrier functions may be favored over less computationally expensive inverse barrier functions depending on the function being optimized.

=Higher dimensions=

Extending to higher dimensions is simple, provided each dimension is independent. For each variable x_i which should be limited to be strictly lower than b_i, add -\log(b_i-x_i).

=Formal definition=

Minimize \mathbf c^Tx subject to \mathbf a_i^T x \le b_i, i = 1,\ldots,m

Assume strictly feasible: \{\mathbf x|A x < b\}\ne\emptyset

Define logarithmic barrier g(x) = \begin{cases}

\sum_{i=1}^m -\log(b_i - a_i^Tx) & \text{for } Ax

+\infty & \text{otherwise}

\end{cases}

See also

References

{{reflist}}