Barrier function

In constrained optimization, a field of mathematics, a barrier function is a continuous function whose value on a point increases to infinity as the point approaches the boundary of the feasible region (Nocedal and Wright 1999). It is used as a penalizing term for violations of constraints. 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 method.

When optimizing a function f(x), the variable ${\displaystyle x}$ can be constrained to be strictly lower than some constant ${\displaystyle b}$ by instead optimizing the function ${\displaystyle f(x)+g(x,b)}$. Here, ${\displaystyle g(x,b)}$ is the barrier function.

Logarithmic barrier function

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

This introduces a gradient to the function being optimized which favors less extreme values of ${\displaystyle x}$ (in this case values lower than ${\displaystyle 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 ${\displaystyle x_{i}}$ which should be limited to be strictly lower than ${\displaystyle b_{i}}$, add ${\displaystyle -\log(b_{i}-x_{i})}$.

Formal definition

assume strictly feasible:${\displaystyle \{{\mathbf {x} }|Ax

References

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• [1] lecture on barrier method.