-
Notifications
You must be signed in to change notification settings - Fork 15
FAQS
Larry Battle edited this page Jun 10, 2013
·
1 revision
What does "0 <= x1, x2, x3" mean?
Answer: "0 <= x1, x2, x3" is the short form of writing the following.
0 <= x1
0 <= x2
0 <= x3
This is a fixed setting for input variables in YASMIJ.js because I'm unsure of how to handle other wise.
##Question 2:
What is a slack variable?
Answer:
In short, an slack variable is used to represent the different when converting an inequality(>,<) to an equality(=).
Here's a here better definitions of a slack variable.
...
Second, for each remaining inequality constraint, a new variable, called a slack variable, is introduced to change the constraint to an equality constraint.
This variable represents the difference between the two sides of the inequality and is assumed to be nonnegative.
...
From: http://en.wikipedia.org/wiki/Simplex_method
...
2. Introduce "slack variables" to "take up the slack" in your inequalities.
For example, if you have 2x1 + x2 < 20, replace this with 2x1 + x2 + s1 = 20.
s1 is a slack variable which turns the inequality into an equality.
These equalities form your initial system, along with the equation -c1x1-c2x2-...-cnxn+P = 0.
...
From: http://library.thinkquest.org/16500/FiniteMath/simplex.html