Difference between revisions of "OptSlack"

(Created page with 'Category:Optimization Functions Category:Doc Status D <!-- For Lumina use, do not change --> ''New to Analytica 4.3. Prior to Analytica 4.3, was named LpSlack.…')
 
(OptSlack(prog))
Line 4: Line 4:
 
''[[New to Analytica 4.3]].  Prior to Analytica 4.3, was named [[LpSlack]].''
 
''[[New to Analytica 4.3]].  Prior to Analytica 4.3, was named [[LpSlack]].''
  
= OptSlack(prog) =
+
= OptSlack(opt) =
  
Returns the slack, or surplus, values for the constraints at the optimal solution.  «prog» is a problem specified by [[DefineOptimization]].
+
Returns the slack, or surplus, values for the constraints at the optimal solution.  «opt» is a problem specified by [[DefineOptimization]].
  
 
As an example, consider the following example constraint:
 
As an example, consider the following example constraint:
Line 13: Line 13:
 
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 (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.
+
A slack of zero indicates that the constraint is one that is actively constraining the optimal solution.
  
 
= See Also =
 
= See Also =

Revision as of 23:44, 10 February 2011


New to Analytica 4.3. Prior to Analytica 4.3, was named LpSlack.

OptSlack(opt)

Returns the slack, or surplus, values for the constraints at the optimal solution. «opt» is a problem specified by DefineOptimization.

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.