Escolar Documentos
Profissional Documentos
Cultura Documentos
Horst W. Hamacher
Stefanie M uller
WiMS/TeMS
x
1
+ x
2
= 1
d
d
d
d
d
d
d
d
d
d
d
d
x
1
+ x
2
= 3
Abbildung 3.1: Graphische Darstellung der Nebenbedingungen aus Beipiel 3.1
Beachtet man, dass sie Nebenbedingungen Ungleichungen sind und dass auch
die Nichtnegativitatsbedingungen erf ullt sein m ussen, erhalt man den gepunk-
teten Bereich in Abbildung 3.2, in dem man die optimale Losung suchen muss.
Dieser Bereich wird zulassiger Bereich genannt.
Die Zielfunktion muss nun so weit wie moglich nach rechts
3
verschoben wer-
den. Im Allgemeinen wird die Zielfunktion jedoch keine zur Ordinate parallele Ge-
rade sein. Durch Parallelverschiebung der Zielfunktion zu groeren bzw. kleineren
3
Bei Minimierungsproblemen verschiebt man die Zielfunktion nach links.
KAPITEL 3.
UBERSETZUNG DES REALEN PROBLEMS 11
E
x
1
T
x
2
r r r r r r
r
r
r
r
x
1
+ x
2
1
d
d
d
d
d
d
d
d
d
d
d
d
x
1
+ x
2
3
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p
p p p p p p p p p p p p p
p p p p p p p p p p p
p p p p p p p p p
p p p p p p p
p p p p p
p p p
p
Abbildung 3.2: Graphische Darstellung des zulassigen Bereichs aus Beipiel 3.1
E
x
1
T
x
2
r r r r r r
r
r
r
r
x
1
+ x
2
1
d
d
d
d
d
d
d
d
d
d
d
d
x
1
+ x
2
3
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p
p p p p p p p p p p p p p
p p p p p p p p p p p
p p p p p p p p p
p p p p p p p
p p p p p
p p p
p
E
Zielfunktion
u
(3, 0)
Abbildung 3.3: Graphische Darstellung des Optimierungsproblems aus Beispiel
3.1
Zielfunktionswerten hin erhalt man schlielich die Optimallosung. In Abbildung
3.3 ist zu erkennen, dass die Zielfunktion nach der Verschiebung den zulassigen
Bereich noch im Punkt (3, 0) ber uhrt. Damit ist die optimale Losung x
1
= 3 und
x
2
= 0 gefunden.
Kapitel 4
Die Simplexmethode
Die Idee des Simplexverfahren, mit dem im Gegensatz zum graphischen Verfahren
auch LPs mit mehr als zwei Variablen betrachtet werden konnen, ist die, sich von
Ecke zu Ecke des zulassigen Bereichs zu bewegen und dabei stets den Zielfunk-
tionswert zu verbessern. Das Verfahren endet, wenn der Zielfunktionswert nicht
mehr verbessert werden kann.
In Beispiel 3.1 w urde man sich etwa von Eckpunkt (0, 0) zu (3, 0) oder uber
(0, 1) und (1, 2) zu (3, 0) bewegen, was sich in Abbildung 3.2 nachvollziehen lasst.
4.1 Standardform
Um ein LP mit dem Simplexverfahren losen zu konnen, muss es in Standardform
vorliegen.
Denition 4.1 Ein LP der Form
min c x
u.d.N. Ax =
b
x
i
0 i
heit LP in Standardform, wobei c der Kostenvektor und
b der Bedarfsvektor ist
und A die Koezientenmatrix darstellt. Man geht dabei davon aus, dass A eine
m n-Matrix mit rang(A)
1
= m ist. Man lasst also die uber ussigen Nebenbe-
dingungen weg.
1
vgl. Seite 40
12
KAPITEL 4. DIE SIMPLEXMETHODE 13
Um nun ein beliebiges LP in Standardform zu uberf uhren, m ussen verschiede-
ne Transformationen durchgef uhrt werden. Diese sollen an Beispiel 3.1 erlautert
werden.
Das LP liegt in folgender Form vor:
max x
1
u.d.N. x
1
+ x
2
1
x
1
+ x
2
3
x
1
, x
2
0
Dies ist ein Maximierungsproblem. Um ein Minimierungsproblem, wie f ur die
Standardform gefordert, zu erhalten, muss die Zielfunktion mit 1 multipliziert
werden. Man erhalt:
min x
1
u.d.N. x
1
+ x
2
1
x
1
+ x
2
3
x
1
, x
2
0
Nun sollen die Nebenbedingungen, die in Form von Ungleichungen vorlie-
gen, in Gleichungen uberf uhrt werden. Dies geschieht durch die Einf uhrung soge-
nannter Schlupf- und
Uberschussvariablen. Die Schlupfvariablen werden bei
-Gleichungen addiert, um Gleichheit zu erzeugen. Ebenso werden die
Uber-
schussvariablen bei -Gleichungen subtrahiert. Im vorliegenden Beispiel sind
nur -Gleichungen vorhanden, so dass nur Schlupfvariablen eingef uhrt werden
m ussen.
min x
1
u.d.N. x
1
+ x
2
+ x
3
= 1
x
1
+ x
2
+ x
4
= 3
x
1
, x
2
, x
3
, x
4
0
In diesem Beispiel sind alle Variablen x
1
, x
2
0, so dass diesbez uglich keine
Transformationen durchgef uhrt werden m ussen. Ware in einem LP eine nicht
vorzeichenbeschrankte Variable x
i
vorhanden, w urde x
i
durch x
+
i
0 und x
i
0
ersetzt, wobei galte: x
i
= x
+
i
x
i
Nach den notwendigen Transformationen liegt nun ein LP in Standardform
vor mit
Koezientenmatrix A =
_
1 1 1 0
1 1 0 1
_
KAPITEL 4. DIE SIMPLEXMETHODE 14
Bedarfsvektor
b =
_
1
3
_
Kostenvektor c = (1, 0, 0, 0)
Die Koezientenmatrix hat den rang(A) = 2. Je zwei Spalten sind linear un-
abhangig. Nimmt man jedoch zu einer beliebigen Zweierkombination von Spalten
eine dritte hinzu, so sind die drei Spalten linear abhangig:
1
_
1
1
_
1
_
1
1
_
+ 2
_
1
0
_
= 0
1
_
1
1
_
+ 1
_
1
1
_
2
_
0
1
_
= 0
1
_
1
1
_
+ 1
_
1
0
_
1
_
0
1
_
= 0
1
_
1
1
_
1
_
1
0
_
1
_
0
1
_
= 0
4.2 Basisdarstellung
Denition 4.2 Eine Basis von A ist eine Menge A
B
= (A
B(1)
, ..., A
B(m)
), wo-
bei A
B(1)
, ..., A
B(m)
Spalten von A sind. A
B
ist eine m m Teilmatrix von A
mit rang(A
B
) = m. Die entsprechenden Variablen x
B
= (x
B(1)
, ...x
B(m)
)
T
hei-
en Basisvariablen. Die ubrigen Variablen x
N
= (x
N(1)
, ...x
N(nm)
)
T
heien
Nichtbasisvariablen und die entsprechenden Spalten der Koezientenmatrix
werden durch A
N
= (A
N(1)
, ..., A
N(nm)
) zusammengefasst.
Betrachtet man Beispiel 3.1 so lassen sich verschiedene Basen nden, z.B.:
1. B = (3, 4) A
B
=
_
1 0
0 1
_
2. B = (1, 2) A
B
=
_
1 1
1 1
_
3. B = (4, 1) A
B
=
_
0 1
1 1
_
Wenn x nun eine Losung eines LPs in Standardform ist, d.h. wenn A x =
b
gilt, dann gilt auch A
B
x
B
+ A
N
x
N
=
b, und umgekehrt.
KAPITEL 4. DIE SIMPLEXMETHODE 15
Man kann dies leicht nachvollziehen, indem man A x =
b als
x
1
A
1
+ ... + x
n
A
n
=
b schreibt, wobei A
1
, . . . , A
n
die Spalten von A sind.
Beispiel 4.1
_
1 1 1 0
1 1 0 1
_
_
_
_
_
_
_
x
1
x
2
x
3
x
4
_
_
_
_
_
_
= x
1
_
1
1
_
+ x
2
_
1
1
_
+ x
3
_
1
0
_
+ x
4
_
0
1
_
=
_
1
3
_
Somit wird klar, dass sich die Summanden in der Reihenfolge vertauschen,
und somit auch als A
B
x
B
+ A
N
x
N
=
b darstellen lassen.
F ur die Basis B = (3, 4) ergibt sich:
_
1 0
0 1
_
_
x
3
x
4
_
+
_
1 1
1 1
_
_
x
1
x
2
_
=
_
1
3
_
Es gilt also:
A x =
b
A
B
x
B
+ A
N
x
N
=
b
A
B
x
B
=
b A
N
x
N
x
B
= A
1
B
b A
1
B
A
N
x
N
(4.1)
Gleichung 4.1 ist die Basisdarstellung von x bzgl. der Basis B. Aufgrund der
Herleitung ist klar, dass sich jede beliebige Losung in dieser Form darstellen lasst,
falls das Inverse der Matrix A
B
berechnet werden kann.
F ur B = (3, 4) ist A
B
die Einheitsmatrix. Somit ist A
B
= A
1
B
.
F ur B = (1, 2) ist A
B
=
_
1 1
1 1
_
. Zur Berechnung von A
1
B
m ussen zwei
Gleichungssysteme gelost werden:
_
1 1
1 1
_
_
a
1
a
2
_
=
_
1
0
_
KAPITEL 4. DIE SIMPLEXMETHODE 16
_
1 1
1 1
_
_
b
1
b
2
_
=
_
0
1
_
Weil die Systeme sich nur auf der rechten Seite unterscheiden, konnen die Rech-
nungen in einem Schema zusammengefasst werden:
_
1 1
1 1
1 0
0 1
_
_
1 1
0 2
1 0
1 1
_
_
1 1
0 2
1 0
1 1
_
_
1 0
0 1
1
2
1
2
1
2
1
2
_
Die inverse Matrix A
1
B
steht nach den Umformungen auf der rechten Seite.
F ur die verschiedenen Basen aus Beispiel 3.1 lat sich die Basisdarstellung
berechnen.
1. B = (3, 4) A
B
=
_
1 0
0 1
_
A
1
B
= A
B
= I =
_
1 0
0 1
_
_
x
3
x
4
_
= x
B
= I
b I A
N
x
N
=
_
1
3
_
_
1 1
1 1
_
_
x
1
x
2
_
=
_
1
3
_
_
x
1
+ x
2
x
1
+ x
2
_
=
_
1 + x
1
x
2
3 x
1
x
2
_
2. B = (1, 2) A
B
=
_
1 1
1 1
_
A
1
B
=
1
2
_
1 1
1 1
_
_
x
1
x
2
_
= x
B
=
1
2
__
1 1
1 1
_
_
1
3
_
_
1 1
1 1
_
_
1 0
0 1
_
_
x
3
x
4
__
=
1
2
__
2
4
_
_
x
3
+ x
4
x
3
+ x
4
__
=
_
1
2
_
1
2
_
x
3
x
4
x
3
+ x
4
_
KAPITEL 4. DIE SIMPLEXMETHODE 17
3. B = (4, 1) A
B
=
_
0 1
1 1
_
A
1
B
=
_
1 1
1 0
_
_
x
4
x
1
_
= x
B
=
_
1 1
1 0
_
_
1
3
_
_
1 1
1 0
_
_
1 1
1 0
_
_
x
2
x
3
_
=
_
4
1
_
_
1 1
1 0
_
_
x
2
+ x
3
x
2
_
=
_
4
1
_
_
2 x
2
+ x
3
x
2
x
3
_
4.3 Basislosung
Denition 4.3 Eine Losung x heit Basislosung von A x =
b, falls
x
N
=
0 und somit x
B
= A
1
B
b. Gilt zusatzlich x
B
0, so wird x als zulassige
Basislosung bezeichnet.
In Beispiel 3.1 sind die Losungen bzgl. der Basen B = (3, 4) und B = (1, 2)
zulassige Basislosungen.
1. B = (3, 4) x
N
=
_
x
1
x
2
_
=
_
0
0
_
x
B
=
_
x
3
x
4
_
=
_
1
3
_
2. B = (1, 2) x
N
=
_
x
3
x
4
_
=
_
0
0
_
x
B
=
_
x
1
x
2
_
=
_
1
2
_
3. B = (4, 1) x
N
=
_
x
2
x
3
_
=
_
0
0
_
x
B
=
_
x
4
x
1
_
=
_
4
1
_
In diesem Fall ist x
B
x
1
+ x
2
1
d
d
d
d
d
d
d
d
d
d
d
d
x
1
+ x
2
3
u
u
u p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p
p p p p p p p p p p p p p
p p p p p p p p p p p
p p p p p p p p p
p p p p p p p
p p p p p
p p p
p
Abbildung 4.1: Graphische Darstellung zulassiger und unzulassiger Losungen.
Man erkennt in Abb. 4.1 auerdem, dass Basislosungen den Ecken des zulassi-
gen Bereichs entsprechen.
4.4 Optimalitatstest
Aus Kapitel 3.2.1 ist bereits bekannt, dass die optimale Losung des LPs aus
Beispiel 3.1 x =
_
3
0
_
lautet.
Wie aber lasst sich aufbauend auf einer bekannten zulassigen Basislosung die
optimale Losung nden ?
Zunachst soll der Zielfunktionswert der jeweiligen Losungen betrachtet werden.
Der Zielfunktionswert der Losung x =
_
0
0
_
betragt c x = (1, 0)
_
0
0
_
= 0,
wahrend er f ur die Losung x =
_
1
2
_
c x = (1, 0)
_
1
2
_
= 1 betragt.
Man kann nun die Basisdarstellung einer beliebigen zulassigen Basislosung
(vgl. Gleichung 4.1) zur Herleitung eines Optimalitatskriteriums nutzen.
c x = c
B
x
B
+c
N
x
N
(4.1)
= c
B
(A
1
B
b A
1
B
A
N
x
N
) +c
N
x
N
= c
B
A
1
B
b + (c
N
c
B
A
1
B
A
N
) x
N
Da f ur eine Basislosung x
N
= 0 gilt, folgt: c x = c
B
x
B
= c
B
A
1
B
b
KAPITEL 4. DIE SIMPLEXMETHODE 19
Die Frage ist nun, ob der Zielfunktionswert noch weiter verbessert werden
kann.
Bei Modikation der Losung ergibt sich eine
Anderung des Zielfunktionswerts um
(c
N
c
B
A
1
B
A
N
) x
N
. Da bisher x
N
=
0 gilt, besteht nur die Moglichkeit x
N
zu vergroern. Da wir auerdem stets ein Minimierungsproblem betrachten und
somit den Zielfunktionswert verkleinern wollen, muss f ur ein j {1, . . . , n m}
(c
N(j)
c
B
A
1
B
A
N(j)
) < 0 sein, um eine Verbesserung des Zielfunktionswerts
erreichen zu konnen.
Das bedeutet:
Satz 4.1 Die zulassige Basislosung x bzgl. B ist optimal, falls
(c
N(j)
c
B
A
1
B
A
N(j)
) 0 j {1, . . . , n m}
Die Werte c
N(j)
:= (c
N(j)
c
B
A
1
B
A
N(j)
), die reduzierte Kosten genannt
werden, geben also Auskunft dar uber, ob es sinnvoll ist, den Wert einer Nichtba-
sisvariablen x
N(j)
von 0 auf einen Wert > 0 zu erhohen.
Beispiel 4.2 Im folgenden sollen nun nochmals die Losungen bzgl. der verschie-
denen Basen betrachtet werden.
1. B = (3, 4), N = (1, 2)
c
N
c
B
A
1
B
A
N
= (1, 0) (0, 0)
_
1 0
1 0
_
_
1 1
1 1
_
= (1, 0) (0, 0)
_
1 1
1 1
_
= (1, 0) (0, 0)
= (1, 0) (0, 0)
Das Optimalitatskriterium ist nicht erf ullt.
2. B = (1, 2), N = (3, 4)
c
N
c
B
A
1
B
A
N
= (0, 0) (1, 0)
1
2
_
1 1
1 1
_
_
1 0
0 1
_
= (0, 0)
1
2
(1, 0)
_
1 1
1 1
_
KAPITEL 4. DIE SIMPLEXMETHODE 20
= (0, 0)
1
2
(1, 1)
= (
1
2
,
1
2
) (0, 0)
Das Optimalitatskriterium ist nicht erf ullt.
3. B = (1, 3), N = (2, 4)
c
N
c
B
A
1
B
A
N
= (0, 0) (1, 0)
_
0 1
1 1
_
_
0 1
1 1
_
= (0, 0) (1, 0)
_
1 1
2 1
_
= (0, 0) (1, 1)
= (1, 1) (0, 0)
Also ist die zu B gehorende Basislosung optimal.
x
B
=
_
x
1
x
3
_
= A
1
B
b =
_
0 1
1 1
_
_
1
3
_
=
_
3
4
_
x
N
=
_
x
2
x
4
_
=
_
0
0
_
Wie bereits in Kapitel 3.2.1 graphisch ermittelt, ist x =
_
3
0
_
2
die optimale
Losung.
4.5 Basisanderung
Wie in Kapitel 4.3 bereits erwahnt, entsprechen die zulassigen Basislosungen
den Ecken des zulassigen Bereichs. Entsprechend der Idee des Simplexverfahrens
von Ecke zu Ecke zu gehen solange sich der Zielfunktionswert noch verbessert,
2
Mit x ist x =
_
x
1
x
2
_
gemeint. Sobald eine endg ultige Losung angegeben wird, werden
Schlupf-,
Uberschuss- oder sonstige Variablen, die nur zur
Uberf uhrung des LPs in Standardform
benotigt wurden, auer Acht gelassen.
KAPITEL 4. DIE SIMPLEXMETHODE 21
werden wir nun von einer zulassigen Basislosung zur nachsten gehen solange das
Optimalitatskriterium nicht erf ullt ist.
Wie allerdings kommt man von einer zulassigen Basislosung zur nachsten ?
Es besteht die Situation, dass das Optimalitatskriterium nicht erf ullt ist. Das
heit, s {1, . . . , n m} : c
N(s)
= c
N(s)
c
B
A
1
B
A
N(s)
< 0
Bis jetzt war x
N(s)
= 0, aber nun wird x
N(s)
auf einen Wert > 0 erhoht, wahrend
alle anderen Nichtbasisvariablen x
N(j)
gleich bleiben.
Was passiert mit dem Zielfunktionswert, wenn x
N(s)
= wird?
c x = c
B
A
1
B
b + (c
N
c
B
A
1
B
A
N
) x
N
= c
B
A
1
B
b + (c
N(s)
c
B
A
1
B
A
N(s)
)
. .
<0
b + A
1
B
A
N
x
N
Da alle Nichtbasisvariablen auer x
N(s)
gleich null bleiben, gilt:
x
B
= A
1
B
b + A
1
B
A
N
x
N(s)
= A
1
B
b + A
1
B
A
N
Da die neue Losung weiterhin zulassig bleiben soll, muss jede Komponente von
x
B
groer oder gleich null sein.
(x
B
)
i
= (A
1
B
b)
i
+ (A
1
B
A
N(s)
)
i
0 f ur i = 1, . . . , m
Da moglichst gro gewahlt werden soll, ergibt sich:
= x
N(s)
:= min
_
_
_
(A
1
B
b)
i
(A
1
B
A
N(s)
)
i
: (A
1
B
A
N(s)
)
i
> 0
_
_
_
(4.2)
Bei der Berechnung von mit Hilfe von Gleichung 4.2, die Quotientenregel
genannt wird, konnen zwei Falle auftreten.
KAPITEL 4. DIE SIMPLEXMETHODE 22
1. Fall:
i = 1, . . . , m : (A
1
B
A
N(s)
)
i
0
In diesem Fall ergibt sich aus der Quotientenregel keine Einschrankung f ur
. kann also beliebig gro und somit der Zielfunktionswert beliebig klein
gemacht werden. In diesem Fall heit das LP unbeschrankt .
2. Fall:
= x
N(s)
:= min
_
_
_
(A
1
B
b)
i
(A
1
B
A
N(s)
)
i
: (A
1
B
A
N(s)
)
i
> 0
_
_
_
=
(A
1
B
b)
r
(A
1
B
A
N(s)
)
r
Es gilt nun:
x
N(j)
= 0 j = s
x
N(s)
=
(A
1
B
b)
r
(A
1
B
A
N(s)
)
r
x
B(i)
= (A
1
B
b)
i
(A
1
B
A
N(s)
)
i
x
N(s)
= (A
1
B
b)
i
(A
1
B
A
N(s)
)
i
(A
1
B
b)
r
(A
1
B
A
N(s)
)
r
Es ndet ein sogenannter Basisaustausch statt. B(r) verlat die Basis,
d.h. x
B(r)
= 0, und N(s) tritt in die Basis ein, d.h. x
N(s)
> 0. ([3])
KAPITEL 4. DIE SIMPLEXMETHODE 23
B(r)
N(s)
B N
q
i
Abbildung 4.2: Basisaustausch: B(r) verlasst die Basis, N(s) tritt in die Basis
ein.
Beispiel 4.3 B = (3, 4), N = (1, 2)
Wie bereits in Beispiel 4.2 ermittelt, ist die zu dieser Basis gehorende Basislosung
nicht optimal. c
N
c
B
A
1
B
A
N
= (1, 0), das bedeutet, dass durch die Ver-
groerung von x
N(1)
eine Verbesserung des Zielfunktionswerts zu erreichen ist.
x
N(1)
= = min
_
_
_
(A
1
B
b)
i
(A
1
B
A
N(1)
)
i
: (A
1
B
A
N(1)
)
i
> 0
_
_
_
=
_
_
_
(A
1
B
b)
2
(A
1
B
A
N(1)
)
2
_
_
_
=
_
3
1
_
= 3 = x
1
x
N(2)
= x
2
= 0
x
B(1)
= x
3
= (A
1
B
b)
1
(A
1
B
A
N(1)
)
1
x
N(1)
= 1 (1) 3 = 4
x
B(2)
= x
4
= (A
1
B
b)
2
(A
1
B
A
N(1)
)
2
x
N(1)
= 3 1 3 = 0
Die neue Basis lautet nun B
= (3, 1), N
x
1
+ x
2
1
d
d
d
d
d
d
d
d
d
d
d
d
x
1
+ x
2
3
t u p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p
p p p p p p p p p p p p p
p p p p p p p p p p p
p p p p p p p p p
p p p p p p p
p p p p p
p p p
p
Abbildung 4.3: Graphische Darstellungen der Basislosungen bzgl. B = (3, 4):
x = (0, 0) und bzgl. B
0 A
b
T reprasentiert ein Gleichungssystem mit m+1 Gleichungen. Die 0-te Spalte
gehort zur Variablen z, die i-te Spalte zu x
i
(i = 1, . . . , n) und die (n + 1)-te
Spalte enthalt die Information f ur die rechten Seiten.
F ur eine Basis B, bezeichnet man mit T
B
die regulare (m+1) (m+1) - Matrix
T
B
=
_
_
_
_
_
_
_
1 c
B
0
.
.
. A
B
0
_
_
_
_
_
_
_
T
1
B
=
_
1 c
B
A
1
B
0 A
1
B
_
KAPITEL 4. DIE SIMPLEXMETHODE 25
T
1
B
T =
_
_
_
_
_
_
_
1 c c
B
A
1
B
A c
B
A
1
B
b
0
.
.
. A
1
B
A A
1
B
b
0
_
_
_
_
_
_
_
=: T(B)
T(B) heit das zur Basis B gehorende Simplextableau :
Die erste Spalte ist immer der Vektor (1, 0, . . . , 0)
T
. Diese Spalte verdeut-
licht nur den Gleichungscharakter der 0-ten Zeile. Da sich diese Spalte
wahrend des Simplexverfahrens nicht verandert, kann sie weggelassen wer-
den.
F ur j = B(i) B gilt A
1
B
A
j
= e
T
i
(i-ter Einheitsvektor mit m Kompo-
nenten). Weiter gilt c
j
c
B
A
1
B
A
j
= c
j
c
j
= 0. Also enthalt T(B) in der
Spalte, die zur i-ten Basisvariablen x
B(i)
gehort, den Wert 0 in der 0-ten
Zeile und anschliessend den i-ten Einheitsvektor mit m Komponenten.
F ur j = N(i) N ist der Eintrag t
0j
= c
j
c
B
A
1
B
A
j
= c
j
, d.h. die t
0j
sind
die reduzierten Kosten der Nichtbasisvariablen x
j
.
In der letzten Spalte ist A
1
B
.
Beispiel 4.5 Wir setzen Beispiel 4.4 fort. Da t
03
= 1/2 ist, soll x
3
in die Basis
gebracht werden. Die Quotientenregel ergibt = x
3
=
t
25
t
23
=
2
1/2
= 4, also wird das
letzte Tableau aus Beispiel 4.4 mit dem Element t
23
=
1
2
pivotiert.
1 0 0 1/2 1/2 1
0 1 0 1/2 1/2 1
0 0 1 1/2 1/2 2
T(B)
1 0 1 0 1 3
0 1 1 0 1 3
0 0 2 1 1 4
T(B
)
KAPITEL 4. DIE SIMPLEXMETHODE 27
In T(B
b, x
0}
(INPUT) Zulassige Basislosung x = (x
B
, x
N
) bzgl. einer Basis B.
(1) Berechne das Simplextableau T(B).
(2) Falls t
0j
0 j = 1, . . . , n
(STOP) x = (x
B
, x
N
) mit x
B(i)
= t
i n+1
(i = 1, . . . , m) und x
N
=
0 ist die
optimale Losung des LP mit Zielfunktionswert t
0 n+1
(3) Wahle ein j mit t
0j
< 0.
(4) Falls t
ij
0 i = 1, . . . , m
(STOP) Das LP ist unbeschrankt.
(5) Berechne r {1, . . . , m} mit
t
r n+1
t
rj
= min
_
t
i n+1
t
ij
: t
ij
> 0
_
und pivotiere mit t
rj
.
Gehe zu (2).
Kapitel 5
Beispiel: Softdrinks
Nun kann man zu Beispiel 2.1 zur uckkehren und mit dem Simplexverfahren eine
optimale Losung bestimmen.
5.1 Standardform
Das LP mu nun in Standarform uberf uhrt werden. Nach Einf uhrung von
Uberschuss-
und Schlupfvariablen ergibt sich:
min 5x
1
+ 2x
2
+0.25x
3
u.d.N. 4x
2
+ 17x
3
x
4
= 0
3x
1
+ x
2
+ 14x
3
+x
5
= 0
x
1
+ 5x
2
3x
3
x
6
= 0
0.6x
1
0.4x
2
0.4x
3
x
7
= 0
0.5x
1
+0.5x
2
0.5x
3
+x
8
= 0
0.3x
1
0.3x
2
+ 0.7x
3
+x
9
= 0
x
1
+ x
2
+ x
3
x
10
=100
x
i
0 i = 1, . . . , 10
Wie es f ur den Algorithmus benotigt wird, liegt das Problem nun in Stan-
dardform vor mit
c = (5, 2, 0.25, 0, 0, 0, 0, 0, 0, 0)
b
T
= (0, 0, 0, 0, 0, 0, 100)
29
KAPITEL 5. BEISPIEL: SOFTDRINKS 30
A =
_
_
_
_
_
_
_
_
_
_
_
_
_
_
0 4 17 1 0 0 0 0 0 0
3 1 14 0 1 0 0 0 0 0
1 5 3 0 0 1 0 0 0 0
0.6 0.4 0.4 0 0 0 1 0 0 0
0.5 0.5 0.5 0 0 0 0 1 0 0
0.3 0.3 0.7 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 1
_
_
_
_
_
_
_
_
_
_
_
_
_
_
5.2 Simplexverfahren
Als (INPUT) wird eine zulassige Basislosung bzgl. einer Basis B benotigt.
B = (1, 4, 5, 6, 7, 8, 9) ist eine Basis. Es muss nun uberpr uft werden, ob die zu-
gehorige Basislosung zulassig ist, ob x
B
= A
1
B
0 gilt.
A
B
=
_
_
_
_
_
_
_
_
_
_
_
_
_
_
0 1 0 0 0 0 0
3 0 1 0 0 0 0
1 0 0 1 0 0 0
0.6 0 0 0 1 0 0
0.5 0 0 0 0 1 0
0.3 0 0 0 0 0 1
1 0 0 0 0 0 0
_
_
_
_
_
_
_
_
_
_
_
_
_
_
A
1
B
=
_
_
_
_
_
_
_
_
_
_
_
_
_
_
0 0 0 0 0 0 1
1 0 0 0 0 0 0
0 1 0 0 0 0 3
0 0 1 0 0 0 1
0 0 0 1 0 0 0.6
0 0 0 0 1 0 0.5
0 0 0 0 0 1 0.3
_
_
_
_
_
_
_
_
_
_
_
_
_
_
A
1
B
b =
_
_
_
_
_
_
_
_
_
_
_
_
_
_
0 0 0 0 0 0 1
1 0 0 0 0 0 0
0 1 0 0 0 0 3
0 0 1 0 0 0 1
0 0 0 1 0 0 0.6
0 0 0 0 1 0 0.5
0 0 0 0 0 1 0.3
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
0
0
0
0
0
0
100
_
_
_
_
_
_
_
_
_
_
_
_
_
_
=
_
_
_
_
_
_
_
_
_
_
_
_
_
_
100
0
300
100
60
50
30
_
_
_
_
_
_
_
_
_
_
_
_
_
_
KAPITEL 5. BEISPIEL: SOFTDRINKS 31
Die Basis B = (1, 4, 5, 6, 7, 8, 9) ist also zulassig. Somit kann der Algorithmus
starten.
(1) Berechnung von T(B):
A
1
B
A =
_
_
_
_
_
_
_
_
_
_
_
_
_
_
0 0 0 0 0 0 1
1 0 0 0 0 0 0
0 1 0 0 0 0 3
0 0 1 0 0 0 1
0 0 0 1 0 0 0.6
0 0 0 0 1 0 0.5
0 0 0 0 0 1 0.3
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
0 4 17 1 0 0 0 0 0 0
3 1 14 0 1 0 0 0 0 0
1 5 3 0 0 1 0 0 0 0
0.6 0.4 0.4 0 0 0 1 0 0 0
0.5 0.5 0.5 0 0 0 0 1 0 0
0.3 0.3 0.7 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 1
_
_
_
_
_
_
_
_
_
_
_
_
_
_
=
_
_
_
_
_
_
_
_
_
_
_
_
_
_
1 1 1 0 0 0 0 0 0 1
0 4 17 1 0 0 0 0 0 0
0 4 17 0 1 0 0 0 0 3
0 4 4 0 0 1 0 0 0 1
0 1 1 0 0 0 1 0 0 0.6
0 1 0 0 0 0 0 1 0 0.5
0 0 1 0 0 0 0 0 1 0.3
_
_
_
_
_
_
_
_
_
_
_
_
_
_
c
B
A
1
B
A = (5, 0, 0, 0, 0, 0, 0)
_
_
_
_
_
_
_
_
_
_
_
_
_
_
1 1 1 0 0 0 0 0 0 1
0 4 17 1 0 0 0 0 0 0
0 4 17 0 1 0 0 0 0 3
0 4 4 0 0 1 0 0 0 1
0 1 1 0 0 0 1 0 0 0.6
0 1 0 0 0 0 0 1 0 0.5
0 0 1 0 0 0 0 0 1 0.3
_
_
_
_
_
_
_
_
_
_
_
_
_
_
= (5, 5, 5, 0, 0, 0, 0, 0, 0, 5)
KAPITEL 5. BEISPIEL: SOFTDRINKS 32
c
B
A
1
B
b = (5, 0, 0, 0, 0, 0, 0)
_
_
_
_
_
_
_
_
_
_
_
_
_
_
100
0
300
100
60
50
30
_
_
_
_
_
_
_
_
_
_
_
_
_
_
= 500
c c
b
A
1
B
A = (5, 2, 0.25, 0, 0, 0, 0, 0, 0, 0) (5, 5, 5, 0, 0, 0, 0, 0, 0, 5)
= (0, 3,
19
4
, 0, 0, 0, 0, 0, 0, 5)
= T(B) =
1 0 3
19
4
0 0 0 0 0 0 5 500
0 1 1 1 0 0 0 0 0 0 1 100
0 0 4 17 1 0 0 0 0 0 0 0
0 0 4 17 0 1 0 0 0 0 3 300
0 0 4 4 0 0 1 0 0 0 1 100
0 0 1 1 0 0 0 1 0 0 0.6 60
0 0 1 0 0 0 0 0 1 0 0.5 50
0 0 0 1 0 0 0 0 0 1 0.3 30
Die erste Spalte kann im folgenden, wie bereits auf Seite 25 erlautert, weg-
gelassen werden.
(2) t
02
< 0 und t
03
< 0 = Die Losung ist noch nicht optimal.
(3) Sei j = 2 mit t
02
= 3 < 0.
(4) t
12
, t
32
, t
52
, t
62
> 0 = Das LP ist nicht unbeschrankt.
(5) =
t
r n+1
t
r2
= min
_
t
i n+1
t
i2
: t
i2
> 0
_
= min
_
100,
300
4
, 60, 50
_
= 50 r = 6
Nun muss mit t
62
pivotiert werden:
T(B) =
0 3
19
4
0 0 0 0 0 0 5 500
1 1 1 0 0 0 0 0 0 1 100
0 4 17 1 0 0 0 0 0 0 0
0 4 17 0 1 0 0 0 0 3 300
0 4 4 0 0 1 0 0 0 1 100
0 1 1 0 0 0 1 0 0 0.6 60
0 1 0 0 0 0 0 1 0 0.5 50
0 0 1 0 0 0 0 0 1 0.3 30
KAPITEL 5. BEISPIEL: SOFTDRINKS 33
=
0 0
19
4
0 0 0 0 3 0 3.5 350
1 0 1 0 0 0 0 1 0 0.5 50
0 0 17 1 0 0 0 4 0 2 200
0 0 17 0 1 0 0 4 0 1 100
0 0 4 0 0 1 0 4 0 3 300
0 0 1 0 0 0 1 1 0 0.1 10
0 1 0 0 0 0 0 1 0 0.5 50
0 0 1 0 0 0 0 0 1 0.3 30
Die Spalte 2 ist nun neu in die Basis eingetreten, wahrend die achte Spalte
die Basis verlassen hat. Die neue Basis lautet B = (1, 2, 4, 5, 6, 7, 9).
(2)
(2) t
03
< 0 = Die Losung ist noch nicht optimal.
(3) Sei j = 3 mit t
02
=
19
4
< 0.
(4) t
13
, t
33
, t
43
, t
53
, t
73
> 0 = Das LP ist nicht unbeschrankt.
(5) =
t
r n+1
t
r3
= min
_
t
i n+1
t
i3
: t
i3
> 0
_
= min
_
50,
100
17
,
300
4
, 10, 30
_
=
100
17
r = 3
Nun muss mit t
33
pivotiert werden:
T(B) =
0 0
19
4
0 0 0 0 3 0 3.5 350
1 0 1 0 0 0 0 1 0 0.5 50
0 0 17 1 0 0 0 4 0 2 200
0 0 17 0 1 0 0 4 0 1 100
0 0 4 0 0 1 0 4 0 3 300
0 0 1 0 0 0 1 1 0 0.1 10
0 1 0 0 0 0 0 1 0 0.5 50
0 0 1 0 0 0 0 0 1 0.3 30
=
0 0 0 0
19
68
0 0
32
17
0
219
68
5475
17
1 0 0 0
1
17
0 0
13
17
0
15
34
750
17
0 0 0 1 1 0 0 0 0 3 300
0 0 1 0
1
17
0 0
4
17
0
1
17
100
17
0 0 0 0
4
17
1 0
84
17
0
47
17
4700
17
0 0 0 0
1
17
0 1
13
17
0
7
170
70
17
0 1 0 0 0 0 0 1 0 0.5 50
0 0 0 0
1
17
0 0
4
17
1
41
170
410
17
Die neue Basis lautet B = (1, 2, 3, 4, 6, 7, 9).
(2)
KAPITEL 5. BEISPIEL: SOFTDRINKS 34
(2) t
0j
0 j = 1, . . . , n (STOP)
x =
_
_
_
_
x
1
.
.
.
x
10
_
_
_
_
=
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
750/17
50
100/17
300
0
4700/17
70/17
0
410/17
0
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
ist optimal mit Zielfunktionswert t
0n+1
=
5475
17
322
Aus dem optimalen Tableau wurden die Werte f ur x
1
, . . . , x
10
folgendermaen
abgelesen:
Nichtbasisvariable haben den Wert null, d.h. in diesem Fall x
5
= 0, x
8
= 0
und x
10
= 0.
Die Werte der Basisvariablen stehen in der letzten Spalte. In der ersten Spalte
steht der Einheitsvektor mit der 1 in der ersten Zeile. Deshalb wird der Basisva-
riablen x
1
der Wert
750
17
zugeordnet, der in der letzten Spalte in der ersten Zeile
steht.
In der zweiten Spalte ist der Einheitsvektor mit der 1 in der sechsten Zeile zu
nden. Somit ist x
2
= 50, weil 50 in der letzten Spalte in der sechsten Zeile steht.
Ebenso wurden auch die Werte f ur die ubrigen Basisvariablen abgelesen.
Diese Vorgehensweise ist leicht einzusehen, wenn man sich erinnert, dass die
Nichtbasisvariablen gleich null sind und die Tableaus ein Gleichungssystem re-
prasentieren.
Kapitel 6
Beispiel: Gartenmaschinen
In diesem Abschnitt soll ein weiteres Beispiel betrachtet werden, an dem einige
Grenzen und Schwierigkeiten des Simplexverfahren illustriert werden.
Beispiel 6.1 Ein Unternehmen produziert und verkauft vier verschiedene Gar-
tenmaschinen: Hacksler, Rasenmaher, Kleintraktoren und Mahmaschinen. Pro
Hacksler werden 1500 Euro Gewinn erzielt, wahrend pro Rasenmaher 3500 Euro,
pro Kleintraktor 3000 Euro und pro Mahmaschine 4000 Euro verdient wird. Das
Unternehmen mochte selbstverstandlich seinen Gewinn maximieren.
Die Herstellung erfolgt in einem dreistugen Prozess:
Stufe 1: Einzelteilfertigung
Stufe 2: Oberachenverg utung
Stufe 3: Montage
F ur die einzelnen Fertigungsstufen sind denierte Fertigungszeiten pro Produkti-
onseinheit gegeben. Auerdem sind die Produktionskapazitaten in den einzelnen
Fertigungsstufen begrenzt. Folgende Tabelle stellt die Bedingungen dar:
Produkt Hacksler Rasenmaher Traktor Mahmaschine Kapazitat
Stufe 1 3.0 1.0 3.0 4.0 315
Stufe 2 1.0 2.0 2.7 4.0 270
Stufe 3 2.0 5.0 5.5 3.0 400
Es wird erwartet, dass maximal 30 Hacksler absetzbar sind. Auerdem sollen
aus betriebspolitischen Gr unden mindestens zwolf Rasenmaher, 20 Kleintraktoren
und zehn Mahmaschinen abgesetzt werden.
35
KAPITEL 6. BEISPIEL: GARTENMASCHINEN 36
6.1 Losung mit Simplexverfahren
F ur Beispiel 6.1 ergibt sich folgendes Optimierungsmodell:
max 1.5x
1
+ 3.5x
2
+ 3.0x
3
+ 4.0x
4
u.d.N. 3.0x
1
+ 1.0x
2
+ 3.0x
3
+ 4.0x
4
315
1.0x
1
+ 2.0x
2
+ 2.7x
3
+ 4.0x
4
270
2.0x
1
+ 5.0x
2
+ 5.5x
3
+ 3.0x
4
400
x
1
30
x
2
12
x
3
20
x
4
10
x
i
0 i = 1, . . . , 4
Nach Umformung in Standardform und Anwenden des Simplexverfahrens
erhalt man folgende Losung: x
1
= 0, x
2
= 36, 5714, x
3
= 20, x
4
= 35, 7143
1
.
Das nun auftauchende Problem ist leicht zu sehen. Die Losung ist nicht ganzzah-
lig. Was bei Beispiel 2.1 kein Problem dargestellt hat, denn ist es nicht schwierig
750
17
l 44.12l von einer Fl uigkeit abzumessen, ist nun problematisch. Es gibt nur
ganze Gartenmaschinen.
6.2 Ganzzahlige Optimierung
In der ganzzahligen Optimierung werden Probleme betrachtet, bei denen die
Losung ganzzahlig sein mu. Die ganzzahlige Optimierung soll hier nicht so
ausf uhrlich wie das Simplexverfahren erortert werden. Trotzdem sollen einige Ein-
blicke gegeben werden, wie man eine ganzzahlige Losung erhalten kann.
6.2.1 Problematik
Betrachten wir noch einmal die Losung, die wir f ur Beispiel 6.1 erhalten haben:
x
1
= 0, x
2
= 36, 571438, x
3
= 20, x
4
= 35, 71429
Diese Losung lost nicht wirklich das Problem des Unternehmers, der die Pro-
duktion seiner Gartenmaschinen optimieren will. Er benotigt eine ganzzahlige
Losung.
1
Im Internet ndet man z.B. unter [4] Software, mit der man unter anderem lineare Pro-
gramme losen kann.
KAPITEL 6. BEISPIEL: GARTENMASCHINEN 37
Wie kann man vorgehn, um ausgehend von der Optimallosung eine ganzzahlige
Losung zu erhalten ?
Es ist naheliegend, eine ganzzahlige Losung durch Auf- oder Abrunden der Op-
timallosung zu erhalten. F ur Beispiel 6.1 erhalt man somit x
1
= 0, x
2
= 37,
x
3
= 20, x
4
= 36 als Losung. Diese Losung ist aber unzulassig, da sie die zweite
und dritte Nebenbedingung des LPs verletzt.
Es gibt auch Falle, in denen man durch Runden der Losung eine zulassige aber
sehr schlechte ganzzahlige Losung erhalt.
Man erkennt also, dass die naheliegende Methode, eine ganzzahlige Losung
durch Runden zu erzeugen, schnell zu schlechten oder sogar unzulassigen Losun-
gen f uhrt. Im nachfolgenden sollen kurz eine bessere Methode zur Erzeugung einer
ganzzahligen Losung vorgestellt werden.
6.2.2 Losung im zweidimensionalen Fall
Aufgrund der Moglichkeit der graphischen Darstellung wird die Methode zur Er-
zeugung ganzzahliger Losungen an einem Beispiel mit zwei Variablen vorgestellt.
Beispiel 6.2 Ein Transportunternehmen mochte verschiedene G uter transpor-
tieren, die in verschiedene Gefahrenstufen eingeteilt werden. Eine Einheit von
Gut 1 hat einen Gefahrenwert von 9 auf einer Skala von 10 bis +10, wahrend
eine Einheit Gut 2 einen Gefahrenwert von 4 besitzt. Auerdem benotigt eine
Einheit von Gut 1 eine Platzeinheit im Transporter erzielt einen Prot von 2
Millionen Euro. Eine Einheit von Gut 2 bringt einen Prot von 7 Millionen Euro
ein, benotigt aber 4 Platzeinheiten.
Die Gesamtkapazitat eines Transporters betragt 14 Platzeinheiten und der Ge-
fahrenhochstwert, der nicht uberschritten werden darf, ist 36.
Da das Transportunternehmen moglichst viele G uter in einem Transporter
unterbringen will, ergibt sich folgendes Optimierungsproblem:
max 2 x
1
+ 7 x
2
u.d.N. 1 x
1
+ 4 x
2
14
9 x
1
4 x
2
36
x
1
, x
2
0
x
1
, x
2
ganzzahlig
KAPITEL 6. BEISPIEL: GARTENMASCHINEN 38
E
x
1
T
x
2
r r r r
r
r
r
r r r r
r r r r
r r
9x
1
+ 4x
2
36
x
1
+ 4x
2
14
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p
p p p p p p p p p
p p p p p p
p p
p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P Zielfunktion 2x
1
+ 7x
2
Optimallosung: x
1
= 5, x
2
= 2, 25
Zielfunktionswert= 25, 75
u
Abbildung 6.1: Graphische Darstellung des ganzzahligen Optimierungsproblems
aus Beispiel 6.2 mit nicht-ganzzahliger Optimallosung
In Abbildung 6.1 erkennt man, dass die Optimallosung dieses Problems nicht
ganzzahlig ist. Zwar ist x
1
= 5 eine ganze Zahl, aber mit x
2
= 2, 25 kann der
Transportunternehmer nicht viel anfangen.
Es muss nun entweder x
2
2 oder x
2
3 gelten. Diese beiden Falle m ussen
nun getrennt betrachtet werden.
E
x
1
T
x
2
r r r r
r
r
r
r r r r
r r r r
r r
9x
1
+ 4x
2
36
x
1
+ 4x
2
14
P
P
P
P
P
P
P
P
P
P
P
P
u
x
1
= 2, x
2
= 3
Zielfunktionswert= 25
P
P
P
P
P
P
P
P
P
u
x
1
= 4,
8, x
2
= 2
Zielfunktionswert= 23,
7
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p p p p
p p p p p p p p p p p p p p p p
p p p p p p p p p p p p
p p p p p p p
p p p p
p
Abbildung 6.2: Partition des Optimierungsproblems aus Beispiel 6.2 in zwei Teil-
probleme
Verschiebt man in beiden Teilbereichen in Abbildung 6.2 die Zielfunktion ge-
trennt, erhalt man f ur jedes der Teilprobleme eine Optimallosung mit einem Ziel-
funktionswert, der kleiner als der Zielfunktionswert der urspr unglichen Losung
ist. In diesem Fall erhalt man f ur x
1
= 4,
8, x
2
= 2 einen Zielfunktionswert von
KAPITEL 6. BEISPIEL: GARTENMASCHINEN 39
23,
7 und f ur x
1
= 2, x
2
= 3 einen Zielfunktionswert von 25. Da der groere der
Zielfunktionswerte zu einer ganzzahligen Losung gehort, ist das Problem gelost.
Ware dies nicht der Fall, w urde also der bessere Wert zu einer nicht ganzzahli-
gen Losung gehoren, m usste man das Verfahren wiederholen und die stets alle
Zielfunktionswerte vergleichen.
6.2.3 Losung im mehrdimensionalen Fall
Das Verfahren aus Abschnitt 6.2.2 lasst sich auch bei Problemen mit mehr als zwei
Variablen anwenden. Die Teilprobleme werden wie ein LP behandelt und gelost.
Die Optimallosung wird auf Ganzzahligkeit uberpr uft und wenn notwendig das
Problem weiter unterteilt.
Kehren wir noch einmal zu Beispiel 6.1 zur uck. Die durch das Simplexverfah-
ren erhaltene Losung lautet x
1
= 0, x
2
= 36, 571438, x
3
= 20, x
4
= 35, 71429.
Da x
2
und x
4
nicht ganzzahlig sind, m ussen vier Falle x
2
36 und x
4
35,
x
2
36 und x
4
36, x
2
37 und x
4
35 sowie x
2
37 und x
4
36 betrachtet
werden. F ugt man diese Ungleichungen jeweils als zusatzliche Nebenbedingungen
in das LP ein und lost mit dem Simplexverfahren, erhalt man:
x
2
36 x
2
36 x
2
37
x
4
35 x
4
36 x
4
35
x
1
= 10 x
1
= 0 x
1
= 0
x
2
= 33 x
2
= 36 x
2
= 37
x
3
= 20 x
3
= 20 x
3
= 20
x
4
= 35 x
4
= 36 x
4
= 35
c x = 330, 5 c x = 330 c x = 329, 5
F ur x
2
37 und x
4
36 ergibt sich ein unzulassiges Problem.
x
2
37, x
4
36 und x
3
20 widerspricht der Nebenbedingung x
1
+ 2x
2
+
2.7x
3
+ 4x
4
270. Da es sich um ein Maximierungsproblem handelt, ist der
grote Zielfunktionswert c x = 330, 5 der beste und x
1
= 10, x
2
= 33, x
3
= 20
und x
4
= 35 die optimale ganzzahlige Losung.
Es gibt noch weitere Verfahren der ganzzahligen Optimierung die in [1] nach-
gelesen werden konnen.
Anhang A
Rang einer Matrix A
Um den Rang einer Matrix A zu erlautern, wird der Begri der linearen Abhangig-
keit von Vektoren benotigt.
Denition A.1 (Lineare Abhangigkeit) Die Vektoren (a
1
, a
2
, . . . , a
n
) heien
linear abhangig, wenn es
1
,
2
, . . . ,
n
IR gibt, die nicht gleich null sind und
f ur die
1
a
1
+ . . . +
n
a
n
= 0
gilt, das heit, wenn die a
1
, . . . , a
n
die Null nicht-trivial darstellen.
Die Vektoren (a
1
, a
2
, . . . , a
n
) heien linear unabhangig, wenn sie nicht li-
near abhangig sind, das heit, wenn gilt
1
a
1
+ . . . +
n
a
n
= 0,
1
,
2
, . . . ,
n
IR
1
= . . . =
n
= 0
Rang einer Matrix A
Eine m n-Matrix A hat genau dann den Rang r, wenn es unter den Spalten-
vektoren von A
(i) r linear unabhangige Vektoren gibt und
(ii) je r + 1 Vektoren linear abhangig sind.
40
Literaturverzeichnis
[1] K.H. Borgwardt. Optimierung, Operations Research, Spieltheorie: Mathe-
matische Grundlagen. Birkhauser Verlag, Berlin, 2001
[2] C. Eger, A. Euteneuer, B. Mathea, K. Merkert, F. Weber, G. Wiederstein.
Lehrplan Mathematik, Grund- und Leistungsfach, Jahrgangsstufen 11 bis 13
der gymnasialen Oberstufe (Mainzer Studienstufe). Ministerium f ur Bildung,
Wissenschaft und Weiterbildung, Rheinland-Pfalz, 1998
[3] H.W. Hamacher, K. Klamroth. Lineare und Netzwerk-Optimierung, Linear
and Network Optimization. Ein bilinguales Lehrbuch, A bilingual textbook.
Vieweg Verlag, Braunschweig/Wiesbaden, 2000
[4] http://www.ifors.ms.unimelb.edu.au/tutorial/
41