Acta Univ. Agric. Silvic. Mendelianae Brun. 2012, 60(4), 109-114 | DOI: 10.11118/actaun201260040109
Using Excel to reduce a Square Matrix
- Ústav statistiky a operačního výzkumu, Mendelova univerzita v Brně, Zemědělská 1, 613 00 Brno, Česká republika
When solving operations research problems, one can use either specialised computer programs such as Lingo, Lindo, Storm or more universal programs such Excel, Matlab, and R. To obtain the input data, one can use either a program's own editor or other programs commonly available such as Excel.
While the problem-solving methods, being part of various programs, are the subjects of numerous publications (such as Gros, 2003; Jablonský, 2002; Plevný - Žižka, 2007; Stevenson - Ozgur, 2009), the way the input data are obtained, recorded, and processed receives far less attention although this part of problem-solving requires considerable effort and, if the method for data recording is inadequate, may cause subsequent difficulties in their further processing. A problem known as "the travelling salesman problem" (TSP) may serve as an example. Here, the input data form a "square matrix of distances". This paper is concerned with some Excel tools that can be used to obtain and subsequently modify such a square matrix. Given a square m × m matrix, an ordinary user might want to reduce it to an i × i square matrix (where i < m) without having to copy data from the matrix, skip some of its rows and/or columns or write a program to implement such a reduction.
In her degree project, Kourková, 2009 was looking for an efficient method of reducing an Excel matrix. She had found no relevant papers on this subject concluding that the authors of the commercial program had not considered this. Therefore, she offered her own solution unconventionally using the contingency table menu option. Although this had resulted in the desired submatrix, some of its parts were superfluous and even baffling for the user.
For this reason, the authors analyse the method of representing an m × m matrix and the way of its reduction. Finally, a better option is offered to achieve the desired objective as well as other methods of obtaining the required submatrix that even users without sufficient programming skills can use.
Keywords: operations research, travelling salesman problem, Excel, matrix reduction
Received: January 18, 2012; Published: August 7, 2013 Show citation
References
- DEVLIN, K., 2005: Problémy pro třetí tisíciletí: Sedm největších nevyřešených otázek matematiky. 1. vyd. Praha: Dokořán, s. r. o., 269 p. ISBN 80-7363-016-8.
- GROS, I., 2003: Kvantitativní metody v manažerském rozhodování. 1. vyd. Praha: Grada, 2003. 432 p. ISBN 80-245-0162-7.
- JABLONSKÝ, J., 2007: Operační výzkum. 3. vyd. Praha: Professional publishing, 323 p. ISBN 978-80-86946-44-3.
- KOURKOVÁ, E., 2009: Využití metod lineárního programování při řešení dopravních úloh. Brno, 93 p. Diplomová práce. Mendelova zemědělská a lesnická univerzita v Brně. Available at:
- PLEVNÝ, M., ŽIŽKA, M., 2007: Modelování a optimalizace v manažerském rozhodování. 1. vyd. Plzeň: Západočeská univerzita, 296 p. ISBN 978-80-7043-435-2.
- STEVENSON, W. J., OZGUR, C., 2007: Introduction to management science with spreadsheets. Boston: McGraw-Hill/Irwin, 812 p. ISBN 978-0-07-299066-9.
- MySQL Manual [online]. 2010 [cit. 2010-11-18]. MySQL:: MySQL 5.1 Reference Manual:: 21.1 MySQL Connector/ODBC. Available at:
- WALL.CZ [online]. 2010 [cit. 2010-11-18]. Kontingenční tabulka - externí data MySQL. Available at:
This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY NC ND 4.0), which permits non-comercial use, distribution, and reproduction in any medium, provided the original publication is properly cited. No use, distribution or reproduction is permitted which does not comply with these terms.