<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Barrier_function</id>
	<title>Barrier function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Barrier_function"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Barrier_function&amp;action=history"/>
	<updated>2026-10-26T23:33:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Barrier_function&amp;diff=2259747&amp;oldid=prev</id>
		<title>imported&gt;PuppyMonkey: hat note</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Barrier_function&amp;diff=2259747&amp;oldid=prev"/>
		<updated>2024-09-09T22:00:02Z</updated>

		<summary type="html">&lt;p&gt;hat note&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Continuous function whose value increases to infinity}}&lt;br /&gt;
{{About|the topic in optimization |the topic in dynamical systems|Barrier certificate}}{{Redirect|Barrier method|the method of safer sex|Barrier methods}}&lt;br /&gt;
In constrained [[Mathematical optimization|optimization]], a field of [[mathematics]],  a &amp;#039;&amp;#039;&amp;#039;barrier function&amp;#039;&amp;#039;&amp;#039; is a [[continuous function]] whose value increases to infinity as its argument approaches the boundary of the [[Candidate solution|feasible region]] of an optimization problem.&amp;lt;ref&amp;gt;{{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}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{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}}&amp;lt;/ref&amp;gt; Such functions are used to replace inequality [[constraint (mathematics)|constraint]]s by a penalizing term in the objective function that is easier to handle. A barrier function is also called an &amp;#039;&amp;#039;&amp;#039;interior penalty function&amp;#039;&amp;#039;&amp;#039;, as it is a penalty function that forces the solution to remain within the interior of the feasible region.&lt;br /&gt;
&lt;br /&gt;
The two most common types of barrier functions are [[inverse barrier function]]s and logarithmic barrier functions. Resumption of interest in logarithmic barrier functions was motivated by their connection with primal-dual [[interior point method]]s.&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
Consider the following constrained optimization problem:&lt;br /&gt;
&lt;br /&gt;
:minimize {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)}}&lt;br /&gt;
:subject to {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039; ≤ &amp;#039;&amp;#039;b&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
where {{mvar|b}} is some constant. If one wishes to remove the inequality constraint, the problem can be reformulated as&lt;br /&gt;
&lt;br /&gt;
:minimize {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) + &amp;#039;&amp;#039;c&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)}},&lt;br /&gt;
:where {{math|&amp;#039;&amp;#039;c&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) {{=}} ∞}} if {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;b&amp;#039;&amp;#039;}}, and zero otherwise.&lt;br /&gt;
&lt;br /&gt;
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|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) + &amp;#039;&amp;#039;c&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)}}, is [[discontinuous function|discontinuous]], preventing the use of [[calculus]] to solve it.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
:minimize {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) + &amp;#039;&amp;#039;μ&amp;#039;&amp;#039;&amp;amp;thinsp;&amp;#039;&amp;#039;g&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)}}&lt;br /&gt;
&lt;br /&gt;
where {{math|&amp;#039;&amp;#039;μ&amp;#039;&amp;#039; &amp;gt; 0}} is a free parameter. This problem is not equivalent to the original, but as {{mvar|μ}} approaches zero, it becomes an ever-better approximation.&amp;lt;ref&amp;gt;{{cite book |first=Robert J. |last=Vanderbei |authorlink=Robert J. Vanderbei |title=Linear Programming: Foundations and Extensions |year=2001 |publisher=Kluwer |pages=277–279}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Logarithmic barrier function==&lt;br /&gt;
&lt;br /&gt;
For logarithmic barrier functions, &amp;lt;math&amp;gt;g(x,b)&amp;lt;/math&amp;gt; is defined as &amp;lt;math&amp;gt;-\log(b-x)&amp;lt;/math&amp;gt; when &amp;lt;math&amp;gt;x &amp;lt; b&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\infty&amp;lt;/math&amp;gt; otherwise (in one dimension; see below for a definition in higher dimensions). This essentially relies on the fact that &amp;lt;math&amp;gt;\log t&amp;lt;/math&amp;gt; tends to negative infinity as &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; tends to 0.&lt;br /&gt;
&lt;br /&gt;
This introduces a gradient to the function being optimized which favors less extreme values of &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; (in this case values lower than &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;), while having relatively low impact on the function away from these extremes.&lt;br /&gt;
&lt;br /&gt;
Logarithmic barrier functions may be favored over less computationally expensive [[inverse barrier functions]] depending on the function being optimized.&lt;br /&gt;
&lt;br /&gt;
===Higher dimensions===&lt;br /&gt;
&lt;br /&gt;
Extending to higher dimensions is simple, provided each dimension is independent. For each variable &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; which should be limited to be strictly lower than &amp;lt;math&amp;gt;b_i&amp;lt;/math&amp;gt;, add &amp;lt;math&amp;gt;-\log(b_i-x_i)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Formal definition===&lt;br /&gt;
Minimize &amp;lt;math&amp;gt; \mathbf c^Tx&amp;lt;/math&amp;gt; subject to &amp;lt;math&amp;gt;\mathbf a_i^T x \le b_i, i = 1,\ldots,m&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Assume strictly feasible: &amp;lt;math&amp;gt; \{\mathbf x|A x &amp;lt; b\}\ne\emptyset &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define &amp;#039;&amp;#039;&amp;#039;logarithmic barrier&amp;#039;&amp;#039;&amp;#039; &amp;lt;math&amp;gt;g(x) = \begin{cases}&lt;br /&gt;
&lt;br /&gt;
\sum_{i=1}^m -\log(b_i - a_i^Tx) &amp;amp; \text{for } Ax&amp;lt;b \\&lt;br /&gt;
+\infty &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Penalty method]]&lt;br /&gt;
* [[Augmented Lagrangian method]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://www.seas.ucla.edu/~vandenbe/ee236a/lectures/barrier.pdf Lecture 14: Barrier method] from Professor Lieven Vandenberghe of [[UCLA]]&lt;br /&gt;
&lt;br /&gt;
{{optimization algorithms|constrained}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Constraint programming]]&lt;br /&gt;
[[Category:Convex optimization]]&lt;br /&gt;
[[Category:Types of functions]]&lt;/div&gt;</summary>
		<author><name>imported&gt;PuppyMonkey</name></author>
	</entry>
</feed>