Exam #1
Exam #1
Exam 1 notes
Exam 1 Notes
Linear program terminology
o Decision variables the variables we need to determine
o Input parameters the costs, times taken for things, etc
o Objective function the thing that needs to be maximised or
minimized.
o Unbounded feasible choices of the decision variables can produce
arbitrarily good objective function values.
o Linear program constraints and objective function are linear (ie:
weighed sums of the decision variables).
Solving problems graphically
o Optimal solution optimal line minimised only at corner point.
o Plotting a line of the form ax + by = C
Get the x by itself and set y to 0. Vice
versa.
For the objective function, let C = some random value.
Step sizes and directions
o As long as the step size is finite, theres no indication that the
program is unbounded.
o To find the conditions required for a feasible direction Dw at a
given point
Find the active (tight) constraints at that
point
Require
that
Dw (constraint vector) =
as needed.
Page 2 of 6
Exam 1 notesevery pair of feasible points falls entirely within the feasible region].
Daniel Guetta
. For a
+ x
of decision variables,
m is the number
of
constraints
x1
xn
c1
cn
a11
b
b1
A
ann
bn
Basic var?
x(0)
cx
c
Dx for x?
(0)
...ratios
New bas. var?
x(1)
cx
(1)
A basic solution
is feasible (BFS)
if it
satisfies
all
non-negative
artificial
variable
for
each
+1
0
Dx =
i
?
i= j
i j (x i nonbasic)
otherwise
Need
A (x + lDx )
= b
ADx =
0
m variable, m equations, has unique solution because x is a
BFS.
The change in our objective function
is
c (x + lDx ) - c x =
lc Dx
And so we calculate the reduced cost for the variable j
cj = c
Dx
o We calculate those for each nonbasic variable, and then choose the
one with the best reduced cost to move into the basis.
o If there is no improving direction stop. Were done
Simplex step size
o This is an LP, so the improving directions are improving forever,
and we constructed the system such that equality constraints are
satisfied, so problems must come from violating non-negativity. We
want to increase l until we violate one of those.
Dx j < 0 .
o Increasing l can only lead to bad things for
o We therefore use step size
x (tj )
: Dx
l = min
< 0
j
-Dx
j
Calculate this ratio for every variable in the basis for our chosen
direction, add to standard display, and pick the minimum one.
Simplex updating the basis
(t +1)
(t )
o x
x + lDx
o Nonbasic variable used to generate direction becomes basic.
o Basic variable that determines step size becomes nonbasic.
Simplex degeneracy