<?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=Slack_variable</id>
	<title>Slack variable - 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=Slack_variable"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Slack_variable&amp;action=history"/>
	<updated>2026-05-04T17:49:57Z</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=Slack_variable&amp;diff=3174406&amp;oldid=prev</id>
		<title>imported&gt;Float59: Reworded second sentence since it repeated what was in the first sentence</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Slack_variable&amp;diff=3174406&amp;oldid=prev"/>
		<updated>2024-05-28T13:47:16Z</updated>

		<summary type="html">&lt;p&gt;Reworded second sentence since it repeated what was in the first sentence&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Mathematical concept}}&lt;br /&gt;
In an [[optimization problem]], a &amp;#039;&amp;#039;&amp;#039;slack variable&amp;#039;&amp;#039;&amp;#039; is a variable that is added to an [[inequality constraint]] to transform it into an equality constraint. A non-negativity constraint on the slack variable is also added.&amp;lt;ref&amp;gt;{{cite book|title=Convex Optimization|first1=Stephen P.|last1=Boyd|first2=Lieven|last2=Vandenberghe|year=2004|publisher=Cambridge University Press|isbn=978-0-521-83378-3|url=https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf|access-date=October 15, 2011}}&amp;lt;/ref&amp;gt;{{rp|131}}&lt;br /&gt;
&lt;br /&gt;
Slack variables are used in particular in [[linear programming]]. As with the other variables in the augmented constraints, the slack variable cannot take on negative values, as the [[simplex algorithm]] requires them to be positive or zero.&amp;lt;ref&amp;gt;{{Cite Gartner Matousek 2006}}{{rp|42}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If a slack variable associated with a constraint is &amp;#039;&amp;#039;zero&amp;#039;&amp;#039; at a particular [[candidate solution]], the [[constraint (mathematics)|constraint]] is &amp;#039;&amp;#039;&amp;#039;[[binding constraint|binding]]&amp;#039;&amp;#039;&amp;#039; there, as the constraint restricts the possible changes from that point.&lt;br /&gt;
* If a slack variable is &amp;#039;&amp;#039;positive&amp;#039;&amp;#039; at a particular candidate solution, the constraint is &amp;#039;&amp;#039;&amp;#039;[[non-binding constraint|non-binding]]&amp;#039;&amp;#039;&amp;#039; there, as the constraint does not restrict the possible changes from that point.&lt;br /&gt;
* If a slack variable is &amp;#039;&amp;#039;negative&amp;#039;&amp;#039; at some point, the point is [[feasible region|infeasible]] (not allowed), as it does not satisfy the constraint.&lt;br /&gt;
&lt;br /&gt;
Slack variables are also used in the [[Big M method]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
By introducing the slack variable &amp;lt;math&amp;gt;\mathbf{s} \ge \mathbf{0}&amp;lt;/math&amp;gt;, the inequality &lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{A}\mathbf{x} \le \mathbf{b}&amp;lt;/math&amp;gt; can be converted to the equation &lt;br /&gt;
&amp;lt;math&amp;gt;\mathbf{A}\mathbf{x} +  \mathbf{s} = \mathbf{b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Embedding in orthant ==&lt;br /&gt;
{{further|Orthant|Generalized barycentric coordinates}}&lt;br /&gt;
&lt;br /&gt;
Slack variables give an embedding of a [[polytope]] &amp;lt;math&amp;gt;P \hookrightarrow (\mathbf{R}_{\geq 0})^f&amp;lt;/math&amp;gt; into the standard &amp;#039;&amp;#039;f&amp;#039;&amp;#039;-[[orthant]], where &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is the number of constraints (facets of the polytope). This map is one-to-one (slack variables are uniquely determined) but not onto (not all combinations can be realized), and is expressed in terms of the &amp;#039;&amp;#039;constraints&amp;#039;&amp;#039; (linear functionals, covectors).&lt;br /&gt;
&lt;br /&gt;
Slack variables are &amp;#039;&amp;#039;[[Dual linear program|dual]]&amp;#039;&amp;#039; to [[generalized barycentric coordinates]], and, dually to generalized barycentric coordinates (which are not unique but can all be realized), are uniquely determined, but cannot all be realized.&lt;br /&gt;
&lt;br /&gt;
Dually, generalized barycentric coordinates express a polytope with &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; vertices (dual to facets), regardless of dimension, as the &amp;#039;&amp;#039;image&amp;#039;&amp;#039; of the standard &amp;lt;math&amp;gt;(n-1)&amp;lt;/math&amp;gt;-simplex, which has &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; vertices – the map is onto: &amp;lt;math&amp;gt;\Delta^{n-1} \twoheadrightarrow P,&amp;lt;/math&amp;gt; and expresses points in terms of the &amp;#039;&amp;#039;vertices&amp;#039;&amp;#039; (points, vectors). The map is one-to-one if and only if the polytope is a simplex, in which case the map is an isomorphism; this corresponds to a point not having &amp;#039;&amp;#039;unique&amp;#039;&amp;#039; generalized barycentric coordinates.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://apmonitor.com/wiki/index.php/Main/SlackVariables Slack Variable Tutorial] - Solve slack variable problems online&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear programming]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Float59</name></author>
	</entry>
</feed>