Barrier function explained

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.[1] [2] 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

subject to

where is some constant. If one wishes to remove the inequality constraint, the problem can be reformulated as

minimize,

where if, and zero otherwise.

This problem is equivalent to the first. It gets rid of the inequality, but introduces the issue that the penalty function, and therefore the objective function, is discontinuous, preventing the use of calculus to solve it.

A barrier function, now, is a continuous approximation to that tends to infinity as approaches from above. Using such a function, a new optimization problem is formulated, viz.

minimize

where is a free parameter. This problem is not equivalent to the original, but as approaches zero, it becomes an ever-better approximation.[3]

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

logt

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

xi

which should be limited to be strictly lower than

bi

, add

-log(bi-xi)

.

Formal definition

Minimize

cTx

subject to
T
a
i

x\lebi,i=1,\ldots,m

Assume strictly feasible:

\{x|Ax<b\}\ne\emptyset

Define logarithmic barrier

g(x)=

m
\begin{cases} \sum
i=1

-log(bi-

Tx)
a
i

&forAx<b\\ +infty&otherwise \end{cases}

See also

External links

Notes and References

  1. Book: Nesterov, Yurii. Lectures on Convex Optimization . 2 . 2018. Springer . Cham, Switzerland . 978-3-319-91577-7 . 56.
  2. Book: Nocedal, Jorge. Numerical Optimization . 2 . Stephen . Wright. 2006. Springer . New York, NY. 0-387-30303-0 . 566.
  3. Book: Vanderbei, Robert J. . Robert J. Vanderbei

    . Robert J. Vanderbei . Linear Programming: Foundations and Extensions . 2001 . Kluwer . 277–279.