Explain slack and surplus Give an example of eachSolutionSla
Explain slack and surplus. Give an example of each.
Solution
Slack Variable: Slack variables are the variables used to convert less than equal to(<) constraint into a equality standard.
Eg: If we have a equation like 3×2 + 3×1 40, so after adding a slack variable the equation becomes
3×2 + 3×1 +S1 = 40. Where S1 is the Slack Variable.
Surplus Variable: Surplus Variables are the variables used to convert more than equal to(>) constraint into a equality standard.
Eg: If we have a equation like 3×2 + 3×1 > 40, so after adding a surplus variable the equation becomes
3×2 + 3×1 +S2 = 40. Where S2 is the Surplus Variable.
