Difference between revisions of "LpSlack"

m (deprecated category)
 
Line 4: Line 4:
 
''Deprecated as of [[Analytica 4.3]].  It has been replaced [[OptSlack]]''
 
''Deprecated as of [[Analytica 4.3]].  It has been replaced [[OptSlack]]''
  
= LpSlack(lp) =
+
== LpSlack(lp) ==
  
 
Returns the slack, or surplus, values for the constraints at the optimal solution.
 
Returns the slack, or surplus, values for the constraints at the optimal solution.
  
 
As an example, consider the following example constraint:
 
As an example, consider the following example constraint:
5 x<sub>1</sub> + 3 x<sub>2</sub> - x<sub>3</sub> <= 14
+
:<code>5 x<sub>1</sub> + 3 x<sub>2</sub> - x<sub>3</sub> <= 14</code>
  
Suppose the optimal solution is found at (1,2,3).  Then the left-hand side of this constraint at the optimum is 8.  The slack, therefore, is 14-8 = 6.  In other words, the right-hand side coefficient could be decreased by 6 units before the optimal solution would be impacted.
+
Suppose the optimal solution is found at <code>(1, 2, 3)</code>.  Then the left-hand side of this constraint at the optimum is 8.  The slack, therefore, is ''14 - 8 = 6''.  In other words, the right-hand side coefficient could be decreased by 6 units before the optimal solution would be impacted.
  
 
A slack of zero indicates that the constraint is one that is actively constraining the optimal solution.   
 
A slack of zero indicates that the constraint is one that is actively constraining the optimal solution.   
  
= See Also =
+
== See Also ==
 
 
 
* [[LpRhsSa]]
 
* [[LpRhsSa]]
 
* [[LpShadow]]
 
* [[LpShadow]]

Latest revision as of 22:02, 22 January 2016


Deprecated as of Analytica 4.3. It has been replaced OptSlack

LpSlack(lp)

Returns the slack, or surplus, values for the constraints at the optimal solution.

As an example, consider the following example constraint:

5 x1 + 3 x2 - x3 <= 14

Suppose the optimal solution is found at (1, 2, 3). Then the left-hand side of this constraint at the optimum is 8. The slack, therefore, is 14 - 8 = 6. In other words, the right-hand side coefficient could be decreased by 6 units before the optimal solution would be impacted.

A slack of zero indicates that the constraint is one that is actively constraining the optimal solution.

See Also

Comments


You are not allowed to post comments.