\documentclass[10pt,a4paper,oneside,ngerman,numbers=noenddot]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{paralist}
\usepackage{gauss}
\usepackage{pgfplots}
\usepackage[locale=DE,exponent-product=\cdot,detect-all]{siunitx}
\usepackage{tikz}
\usetikzlibrary{matrix,fadings,calc,positioning,decorations.pathreplacing,arrows,decorations.markings}
\usepackage{polynom}
\usepackage{multirow}
\polyset{style=C, div=:,vars=x}
\pgfplotsset{compat=1.8}
\pagenumbering{arabic}
% ensures that paragraphs are separated by empty lines
\parskip 12pt plus 1pt minus 1pt
\parindent 0pt
% define how the sections are rendered
\def\thesection{\arabic{section})}
\def\thesubsection{\alph{subsection})}
\def\thesubsubsection{(\roman{subsubsection})}
% some matrix magic
\makeatletter
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
  \hskip -\arraycolsep
  \let\@ifnextchar\new@ifnextchar
  \array{#1}}
\makeatother

\begin{document}
\author{Jan Branitz (6326955), Jim Martens (6420323),\\
Stephan Niendorf (6242417)}
\title{Hausaufgaben zum 6. Januar}
\maketitle
\section{} %1
	\begin{tikzpicture}[node distance=2cm]
		\node (s) {s};
		\node (a) [above right=of s] {a};
		\node (b) [right=of s] {b};
		\node (c) [below right=of s] {c};
		\node (d) [right=of c] {d};
		\node (e) [right=of b] {e};
		\node (t) [right=of e] {t};
		\node (sCap) [below=0.1 of s] {(-, $\infty$)};
		\node (aCap) [above=0.1 of a] {(s, +, 3)};
		\node (bCap) [below=0.1 of b] {(s, +, 5)};
		\node (cCap) [below=0.1 of c] {(s, +, 6)};
		\node (tCap) [above=0.1 of t] {(a, +, 3)};
		\path[->] (s) edge[line width=2pt] node [above left] {0(3)} (a)
				  (s) edge node [below] {0(5)} (b)
				  (s) edge node [below left] {0(6)} (c)
				  (a) edge[line width=2pt] node [above right] {0(5)} (t)
				  (a) edge node [left] {0(4)} (b)
				  (b) edge node [below] {0(2)} (e)
				  (b) edge node [below left] {0(6)} (d)
				  (c) edge node [below] {0(4)} (d)
				  (d) edge node [below right] {0(5)} (t)
				  (e) edge node [below] {0(3)} (t);
	\end{tikzpicture}
	
	\begin{tikzpicture}[node distance=2cm]
		\node (s) {s};
		\node (a) [above right=of s] {a};
		\node (b) [right=of s] {b};
		\node (c) [below right=of s] {c};
		\node (d) [right=of c] {d};
		\node (e) [right=of b] {e};
		\node (t) [right=of e] {t};
		\node (sCap) [below=0.1 of s] {(-, $\infty$)};
		\node (bCap) [below=0.1 of b] {(s, +, 5)};
		\node (cCap) [below=0.1 of c] {(s, +, 6)};
		\node (dCap) [below=0.1 of d] {(b, +, 5)};
		\node (eCap) [below=0.1 of e] {(b, +, 2)};
		\node (tCap) [above=0.1 of t] {(d, +, 5)};
		\path[->] (s) edge node [above left] {3(3)} (a)
				  (s) edge[line width=2pt] node [below] {0(5)} (b)
				  (s) edge node [below left] {0(6)} (c)
				  (a) edge node [above right] {3(5)} (t)
				  (a) edge node [left] {0(4)} (b)
				  (b) edge node [below] {0(2)} (e)
				  (b) edge[line width=2pt] node [below left] {0(6)} (d)
				  (c) edge node [below] {0(4)} (d)
				  (d) edge[line width=2pt] node [below right] {0(5)} (t)
				  (e) edge node [below] {0(3)} (t);
	\end{tikzpicture}
	
	\begin{tikzpicture}[node distance=2cm]
		\node (s) {s};
		\node (a) [above right=of s] {a};
		\node (b) [right=of s] {b};
		\node (c) [below right=of s] {c};
		\node (d) [right=of c] {d};
		\node (e) [right=of b] {e};
		\node (t) [right=of e] {t};
		\node (sCap) [below=0.1 of s] {(-, $\infty$)};
		\node (eCap) [below=0.1 of e] {(b, +, 2)};
		\node (cCap) [below=0.1 of c] {(s, +, 6)};
		\node (dCap) [below=0.1 of d] {(c, +, 4)};
		\node (tCap) [above=0.1 of t] {(e, +, 2)};
		\node (bCap) [below=0.1 of b] {(d, -, 4)};
		\path[->] (s) edge node [above left] {3(3)} (a)
				  (s) edge node [below] {5(5)} (b)
				  (s) edge[line width=2pt] node [below left] {0(6)} (c)
				  (a) edge node [above right] {3(5)} (t)
				  (a) edge node [left] {0(4)} (b)
				  (b) edge[line width=2pt] node [below] {0(2)} (e)
				  (b) edge[line width=2pt] node [below left] {5(6)} (d)
				  (c) edge[line width=2pt] node [below] {0(4)} (d)
				  (d) edge node [below right] {5(5)} (t)
				  (e) edge[line width=2pt] node [below] {0(3)} (t);
	\end{tikzpicture}
	
	\begin{tikzpicture}[node distance=2cm]
		\node (s) {s};
		\node (a) [above right=of s] {a};
		\node (b) [right=of s] {b};
		\node (c) [below right=of s] {c};
		\node (d) [right=of c] {d};
		\node (e) [right=of b] {e};
		\node (t) [right=of e] {t};
		\node (sCap) [below=0.1 of s] {(-, $\infty$)};
		\node (cCap) [below=0.1 of c] {(s, +, 4)};
		\node (dCap) [below=0.1 of d] {(c, +, 2)};
		\node (bCap) [below=0.1 of b] {(d, -, 2)};
		\path[->] (s) edge node [above left] {3(3)} (a)
				  (s) edge node [below] {5(5)} (b)
				  (s) edge node [below left] {2(6)} (c)
				  (a) edge node [above right] {3(5)} (t)
				  (a) edge node [left] {0(4)} (b)
				  (b) edge node [below] {2(2)} (e)
				  (b) edge node [below left] {3(6)} (d)
				  (c) edge node [below] {2(4)} (d)
				  (d) edge node [below right] {5(5)} (t)
				  (e) edge node [below] {2(3)} (t);
	\end{tikzpicture}
\section{} %2
	\subsection{} %a
		\begin{alignat*}{9}
			\text{minimiere}\; & 67w &+& 120k &+& 100h &+& 60f &+& 97b &+& 124n &+& 22s &+& 62m &&  \\
			\multicolumn{18}{l}{\text{unter den Nebenbedingungen}} && \\
			& 8w &+& 25k &+& 30h &+& 22f &+& 3b &+& 8n &+& 6s && &\geq &\, 75 \\
			& w &+& 35k &+& 8h &+& f && &+& 33n &+& 13s &+& 98m &\geq &\, 90 \\
			& 54w && && && &+& 42b &+& 4n &+& 63s && &\geq &\, 300 \\
			\multicolumn{16}{r}{$w, k, h, f, b, n, s, m$} \,&\geq &\, 0
		\end{alignat*}
	\subsection{} %b
		In das verlinkte Tool wird folgendes eingegeben:
\begin{verbatim}
Minimize p = 67w + 120k + 100h + 60f + 97b + 124n + 22s + 62m subject to
8w + 25k + 30h + 22f + 3b + 8n + 6s + 0m >= 75
w + 35k + 8h + f + 0b + 33n + 13s + 98m >= 90
54w + 0k + 0h + 0f + 42b + 4n + 63s + 0m >= 300
w >= 0
k >= 0
h >= 0
f >= 0
b >= 0
n >= 0
s >= 0
m >= 0
\end{verbatim}
		Die Ausgabe ist:
\begin{verbatim}
Optimal Solution: p = 6801/28; w = 0, k = 0, h = 0, f = 87/56, 
b = 0, n = 0, s = 381/56, m = 0
\end{verbatim}
	\subsection{} %c
		In das verlinkte Tool wird folgendes eingegeben:
\begin{verbatim}
Minimize p = 3x1 + 24x2 + 13x3 + 9x4 + 20x5 + 19x6 subject to
110x1 + 205x2 + 160x3 + 160x4 + 420x5 + 260x6 >= 2000
4x1 + 32x2 + 13x3 + 8x4 + 4x5 + 14x6 >= 55
2x1 + 12x2 + 54x3 + 285x4 + 22x5 + 80x6 >= 800
x1 <= 4
x2 <= 3
x3 <= 2
x4 <= 8
x5 <= 2
x6 <= 2
x1 >= 0
x2 >= 0
x3 >= 0
x4 >= 0
x5 >= 0
x6 >= 0
\end{verbatim}
		Die Ausgabe ist: 
\begin{verbatim}
Optimal Solution: p = 185/2; x1 = 4, x2 = 0, x3 = 0, x4 = 9/2, x5 = 2, x6 = 0
\end{verbatim}
	\subsection{} %d
		In das verlinkte Tool wird folgendes eingegeben:
\begin{verbatim}
Maximize p = 8a1 + 3a2 + 6b1 + 3b2 + 9c1 + 5c2 subject to
a1 + a2 <= 400
b1 + b2 <= 480
c1 + c2 <= 230
a1 + b1 + c1 <= 420
a2 + b2 + c2 <= 250
a1 >= 0
a2 >= 0
b1 >= 0
b2 >= 0
c1 >= 0
c2 >= 0
\end{verbatim}
	Die Ausgabe ist:
\begin{verbatim}
Optimal Solution: p = 4550; a1 = 400, a2 = 0, b1 = 0, b2 = 40, 
c1 = 20, c2 = 210
\end{verbatim}
\end{document}
