File:Mmult factory.pdf

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Mmult_factory.pdf (795 × 589 pixels, file size: 52 KB, MIME type: application/pdf)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Example application of matrix multiplication in economics, from Peter Stingl (1996) (in german) Mathematik für Fachhochschulen – Technik und Informatik (5th ed.), Munich: Carl Hanser Verlag ISBN: 3-446-18668-9. Exm.5.4.10, p.205-206.

The highlighted paths in production flow (upper part) correspond to the highlighted computation of the lower left field in the product matrix (lower part).

See en:Matrix_multiplication#Resource_allocation_in_economics for full description of the scenario.
Date
Source Own work
Author Jochen Burghardt
Other versions File:Mmult factory.pdf * File:Mmult factory svg.svg
LaTeX source code
\documentclass[12pt]{article}
\usepackage[pdftex]{color}
\usepackage[paperwidth=135mm,paperheight=100mm]{geometry}
\setlength{\topmargin}{-36mm}
\setlength{\textwidth}{135mm}
\setlength{\textheight}{100mm}
\setlength{\evensidemargin}{0cm}
\setlength{\oddsidemargin}{-23mm}
\setlength{\parindent}{0cm}
\setlength{\parskip}{1ex}
\setlength{\unitlength}{1mm}
\pagestyle{empty}

% lowlight backgrounds
\definecolor{bBas}      {rgb}{0.99,0.95,0.95}% basic good
\definecolor{bFin}      {rgb}{0.95,0.99,0.95}% final product
% lowlight foregrounds
\definecolor{fBas}      {rgb}{0.99,0.70,0.70}% basic good
\definecolor{fFin}      {rgb}{0.70,0.99,0.70}% final product
% lowlight connections
\definecolor{fCon}      {rgb}{0.80,0.80,0.99}% connection
\definecolor{bMul}      {rgb}{0.99,0.99,0.99}% multiplicity
\definecolor{fMul}      {rgb}{0.80,0.80,0.99}% multiplicity
% lowlight zero connections
\definecolor{fNon}      {rgb}{0.95,0.95,0.95}% zero connection
\definecolor{fNul}      {rgb}{0.95,0.95,0.95}% zero multiplicity

% highlight backgrounds
\definecolor{bBAS}      {rgb}{0.99,0.70,0.70}% basic good
\definecolor{bINT}      {rgb}{0.99,0.99,0.70}% intermediate product
\definecolor{bFIN}      {rgb}{0.70,0.99,0.70}% final product
% highlight foregrounds
\definecolor{fBAS}      {rgb}{0.70,0.00,0.00}% basic good
\definecolor{fINT}      {rgb}{0.70,0.70,0.00}% intermediate product
\definecolor{fFIN}      {rgb}{0.00,0.70,0.00}% final product
% highlight connections
\definecolor{fCON}      {rgb}{0.00,0.00,0.99}% connection
\definecolor{fMUL}      {rgb}{0.00,0.00,0.99}% multiplicity

\begin{document}

\begin{picture}(130,70)%
\put(0,-4){\line(1,0){130}}
% connections
\textcolor{fCon}{\put(  5,60){\vector( 1,-1){20}}}%
\textcolor{fNon}{\put(  5,60){\vector( 3,-1){60}}}%
\textcolor{fCon}{\put(  5,60){\vector( 4,-1){95}}}%
\textcolor{fCon}{\put( 45,60){\vector(-1,-1){20}}}%
\textcolor{fCon}{\put( 45,60){\vector( 1,-1){20}}}%
\textcolor{fCon}{\put( 45,60){\vector( 3,-1){60}}}%
\textcolor{fNon}{\put( 85,60){\vector(-3,-1){60}}}%
\textcolor{fCon}{\put( 85,60){\vector(-1,-1){20}}}%
\textcolor{fCon}{\put( 85,60){\vector( 1,-1){20}}}%
\textcolor{fCON}{\put(125,60){\vector(-4,-1){95}}}%
\textcolor{fCON}{\put(125,60){\vector(-3,-1){60}}}%
\textcolor{fCON}{\put(125,60){\vector(-1,-1){20}}}%
%
\textcolor{fCON}{\put( 25,30){\vector( 0,-1){20}}}%
\textcolor{fCon}{\put( 25,30){\vector( 2,-1){40}}}%
\textcolor{fCon}{\put( 25,30){\vector( 4,-1){80}}}%
\textcolor{fCON}{\put( 65,30){\vector(-2,-1){40}}}%
\textcolor{fCon}{\put( 65,30){\vector( 0,-1){20}}}%
\textcolor{fCon}{\put( 65,30){\vector( 2,-1){40}}}%
\textcolor{fCON}{\put(105,30){\vector(-4,-1){80}}}%
\textcolor{fCon}{\put(105,30){\vector(-2,-1){40}}}%
\textcolor{fCon}{\put(105,30){\vector( 0,-1){20}}}%
% multiplicities backgrounds
\textcolor{bMul}{\put( 22,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 27,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 32,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 33,36){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
%
\textcolor{bMul}{\put( 59,41){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 62,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 67,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 70,41){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
%
\textcolor{bMul}{\put( 96,36){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 97,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put(102,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put(107,42){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
%
\textcolor{bMul}{\put( 24,12){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 29,12){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 32,11){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
%
\textcolor{bMul}{\put( 60,11){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 64,12){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put( 69,11){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
%
\textcolor{bMul}{\put( 97,11){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put(100,12){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
\textcolor{bMul}{\put(104,12){\makebox(0,0)[bl]{\rule{1mm}{2mm}}}}%
% multiplicities
\textcolor{fMul}{\put( 22,42){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMul}{\put( 27,42){\makebox(0,0)[bl]{$\scriptscriptstyle 2$}}}%
\textcolor{fNul}{\put( 32,42){\makebox(0,0)[bl]{$\scriptscriptstyle 0$}}}%
\textcolor{fMUL}{\put( 33,36){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
%
\textcolor{fNul}{\put( 59,41){\makebox(0,0)[bl]{$\scriptscriptstyle 0$}}}%
\textcolor{fMul}{\put( 62,42){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMul}{\put( 67,42){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMUL}{\put( 70,41){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
%
\textcolor{fMul}{\put( 96,36){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMul}{\put( 97,42){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMul}{\put(102,42){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMUL}{\put(107,42){\makebox(0,0)[bl]{$\scriptscriptstyle 2$}}}%
%
\textcolor{fMUL}{\put( 24,12){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMUL}{\put( 29,12){\makebox(0,0)[bl]{$\scriptscriptstyle 2$}}}%
\textcolor{fMUL}{\put( 32,11){\makebox(0,0)[bl]{$\scriptscriptstyle 4$}}}%
%
\textcolor{fMul}{\put( 60,11){\makebox(0,0)[bl]{$\scriptscriptstyle 2$}}}%
\textcolor{fMul}{\put( 64,12){\makebox(0,0)[bl]{$\scriptscriptstyle 3$}}}%
\textcolor{fMul}{\put( 69,11){\makebox(0,0)[bl]{$\scriptscriptstyle 2$}}}%
%
\textcolor{fMul}{\put( 97,11){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMul}{\put(100,12){\makebox(0,0)[bl]{$\scriptscriptstyle 1$}}}%
\textcolor{fMul}{\put(104,12){\makebox(0,0)[bl]{$\scriptscriptstyle 2$}}}%
% boxes
\thicklines
\textcolor{bBas}{\put(  0,60){\makebox(0,0)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{bBas}{\put( 40,60){\makebox(0,0)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{bBas}{\put( 80,60){\makebox(0,0)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{bBAS}{\put(120,60){\makebox(0,0)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{fBas}{\put(  0,60){\framebox(10,10){$b_1$}}}%
\textcolor{fBas}{\put( 40,60){\framebox(10,10){$b_2$}}}%
\textcolor{fBas}{\put( 80,60){\framebox(10,10){$b_3$}}}%
\textcolor{fBAS}{\put(120,60){\framebox(10,10){$b_4$}}}%
%
\textcolor{bINT}{\put( 20,30){\makebox(10,10)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{bINT}{\put( 60,30){\makebox(10,10)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{bINT}{\put(100,30){\makebox(10,10)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{fINT}{\put( 20,30){\framebox(10,10){$m_1$}}}%
\textcolor{fINT}{\put( 60,30){\framebox(10,10){$m_2$}}}%
\textcolor{fINT}{\put(100,30){\framebox(10,10){$m_3$}}}%
%
\textcolor{bFIN}{\put( 20, 0){\makebox(10,10)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{bFin}{\put( 60, 0){\makebox(10,10)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{bFin}{\put(100, 0){\makebox(10,10)[bl]{\rule{10mm}{10mm}}}}%
\textcolor{fFIN}{\put( 20, 0){\framebox(10,10){$f_1$}}}%
\textcolor{fFin}{\put( 60, 0){\framebox(10,10){$f_2$}}}%
\textcolor{fFin}{\put(100, 0){\framebox(10,10){$f_3$}}}%
\end{picture}

\newcommand{\0}{\color{fMul}}
\newcommand{\9}{\color{fMUL}}

$$
\left(
\begin{array}{ccc}
\0 1 & \0 0 & \0 1 \\
\0 2 & \0 1 & \0 1 \\
\0 0 & \0 1 & \0 1 \\
\9 1 & \9 1 & \9 2 \\
\end{array}
\right)
        \cdot
\left(
\begin{array}{ccc}
\9 1 & \0 2 & \0 1 \\
\9 2 & \0 3 & \0 1 \\
\9 4 & \0 2 & \0 2 \\
\end{array}
\right)
        =
\left(
\begin{array}{ccc}
\0  5 & \0 4 & \0 3 \\
\0  8 & \0 9 & \0 5 \\
\0  6 & \0 5 & \0 3 \\
\9 11 & \0 9 & \0 6 \\
\end{array}
\right)
$$
\end{document}

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:56, 6 February 2022Thumbnail for version as of 14:56, 6 February 2022795 × 589 (52 KB)Jochen Burghardt (talk | contribs)Uploaded own work with UploadWizard

The following page uses this file:

Metadata