Linear Programming Computation 2nd Edition Ping-Qi Pan download
Linear Programming Computation 2nd Edition Ping-Qi Pan download
https://ebookmeta.com/product/linear-programming-computation-2nd-
edition-ping-qi-pan/
https://ebookmeta.com/product/advances-in-optimization-and-
linear-programming-1st-edition-ivan-stanimirovic/
https://ebookmeta.com/product/linear-programming-foundations-and-
extensions-5th-edition-robert-j-vanderbei/
https://ebookmeta.com/product/linear-programming-for-project-
management-professionals-1st-edition-partha-majumdar/
https://ebookmeta.com/product/bioinformatics-and-computational-
biology-1st-edition-hamid-r-arabnia/
Advances in Postharvest Management of Cereals and
Grains 1st Edition Dirk E. Maier (Editor)
https://ebookmeta.com/product/advances-in-postharvest-management-
of-cereals-and-grains-1st-edition-dirk-e-maier-editor/
https://ebookmeta.com/product/abdication-of-the-sovereign-self-
the-psycholinguistics-of-invalid-synthetic-propositions-1st-
edition-andrew-spano/
https://ebookmeta.com/product/hybrid-forgotten-hybrid-shifters-
book-10-1st-edition-romy-lockhart-2/
https://ebookmeta.com/product/lock-the-door-jane-holland/
https://ebookmeta.com/product/antimicrobial-photodynamic-
therapy-1st-edition-busi-siddhardha-ram-prasad/
Introduction to Positive Media Psychology 1st Edition
Arthur A Raney Sophie H Janicke Bowles Mary Beth Oliver
Katherine R Dale
https://ebookmeta.com/product/introduction-to-positive-media-
psychology-1st-edition-arthur-a-raney-sophie-h-janicke-bowles-
mary-beth-oliver-katherine-r-dale/
Ping-Qi PAN
Linear
Programming
Computation
Second Edition
Linear Programming Computation
Ping-Qi PAN
Linear Programming
Computation
Second Edition
Ping-Qi PAN
Department of Mathematics
Southeast University
Nanjing, China
© The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Singapore
Pte Ltd. 2023
This work is subject to copyright. All rights are solely and exclusively licensed by the Publisher, whether
the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse
of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and
transmission or information storage and retrieval, electronic adaptation, computer software, or by similar
or dissimilar methodology now known or hereafter developed.
The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication
does not imply, even in the absence of a specific statement, that such names are exempt from the relevant
protective laws and regulations and therefore free for general use.
The publisher, the authors and the editors are safe to assume that the advice and information in this book
are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or
the editors give a warranty, expressed or implied, with respect to the material contained herein or for any
errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
This Springer imprint is published by the registered company Springer Nature Singapore Pte Ltd.
The registered company address is: 152 Beach Road, #21-01/04 Gateway East, Singapore 189721,
Singapore
Dedicated to my parents, Chao Pan and
Yinyun Yan; my wife, Minghua Jiang; my son,
Yunpeng; my granddaughter, Heidi
Preface to First Edition
vii
viii Preface to First Edition
book does not only present fundamental materials but also attempts to reflect the
state of the art of LP. It has been my long-lasting belief that research, in operations
research/management science, in particular, should be of practical value, at least
potentially. The author, therefore, focuses on theories, methods, and implementation
techniques that are closely related to LP computation.
This book consists of two parts. Part I mainly covers fundamental and conven-
tional materials, such as the geometry of the feasible region, the simplex method,
duality principle, and dual simplex method, implementation of the simplex method,
sensitivity analysis, parametric LP, variants of the simplex method, decomposition
method, and interior-point method. In addition, integer linear programming (ILP),
differing from LP in nature, is also discussed not only because ILP models can be
handled by solving a sequence of LP models but also because they are so rich in
practice and form a major application area of LP computations.
Part II presents published or unpublished new results achieved by the author
himself, such as pivot rule, dual pivot rule, simplex phase-1 method, dual simplex
phase-I method, reduced simplex method, generalized reduced simplex method,
deficient-basis method, dual deficient-basis method, face method, dual face method,
and pivotal interior-point method. The last chapter contains miscellaneous topics,
such as some special forms of the LP problem, approaches to intercepting for primal
and dual optimal sets, practical pricing schemes, relaxation principle, local duality,
decomposition principle, and ILP method based on the generalized reduced simplex
framework.
To make the material easier to follow and understand, the algorithms in this book
were formulated and illustrative examples were worked out wherever possible. If
the book is used as a textbook for upper-level undergraduate/graduate course, (Part
I) may be suitable to be as basic course material.
Acknowledgments
At this very moment, I deeply cherish the memory of Professor Xuchu He, my
former mentor at Nanjing University, aroused my interest in optimization. I honor
the Father of linear programming and the simplex method, Professor George. B.
Dantzig for the encouragement given during the 16th International Symposium on
Mathematical Programming, Lausanne EPFL., in August 1997. I am very grateful
to Professor Michael Saunders of Stanford University for his thoughtful comments
and suggestions given in the past. He selflessly offered the MINOS 5.51 package
(the latest version of MINOS at that time) and related materials, from which my
work and this book benefited greatly. MINOS has been the benchmark and platform
of our computational experiments. I thank Professor R. Tyrrell Rockafellar of the
University of Washington, Professor Thomas F. Coleman of Cornell University, and
Professor Weide Zheng of Nanjing University for their support and assistance. I
would also like to thank the following colleagues for their support and assistance:
Professor James V. Burke of the University of Washington, Professor Liqun
Preface to First Edition ix
Since its birth, linear programming (LP) has achieved great success in many fields,
such as economy, commerce, production, science, and technology, and brought
about amazing economic and social benefits. After 70 years of development, LP
now becomes a relatively mature branch in OR/MS. Nevertheless, the academic
community faces a major challenge of the growing demand, which needs more
powerful and robust tools to deal with large-scale and difficult problems.
To meet the challenge, this book draws materials from a practical point of
view, focusing on theories, methods, and implementation techniques that are
closely related to LP computation. Its first edition consists of two parts. Roughly
speaking, Part I covers fundamental materials of LP, and Part II includes pub-
lished/unpublished new results achieved by the author.
Little attention was received via the author’s ResearchGate Web page until Shi,
Zhang, and Zhu published their book review in the European Journal of Operational
Research (June 2018). Since then, the book quickly attracted considerable attention
from academic communities around the world. As of November 6, 2022, the top ten
chapter reads are as follows:
Chapter Reads
1. Duality Principle and Dual Simplex Method (Part I) 15419
2. Simplex Feasible-Pointx Method (Part II) 7861
3. Integer Linear Programming (ILP) (Part I) 7340
4. Implementation of the Simplex Method (Part I) 3284
5. Dual Simplex Phase-I Method (Part II) 2613
6. Simplex Method (Part I) 2576
7. Variants of the Simplex Method (Part I) 2328
8. Geometry of the Feasible Region (Part I) 1951
9. Pivot Rule (Part II) 1844
10. Simplex Phase-I Method (Part I) 1506
xi
xii Preface to Second Edition
The preceding data are consistent with corresponding downloads from the
Springer website.
Surprisingly enough, the chapter ”Dual Principle and Dual Simplex Method” not
only received the maximum number of reads as a whole but also almost weekly,
even if it is devoted to such a classical topic. This might be because the discussions
are comprehensive, compared with popular literature.
Proposed for the first time, the Feasible-Point Simplex Method, which appeared
as the final section of the chapter ”Pivotal Interior-Point Method,” received the
second-highest reads as a whole. It achieved this in a short period of 10 weeks.
Indeed, supported by the solid computational results, the method itself might exceed
all expectations.
The final chapter of Part I, ”Integer Linear Programming (ILP),” usually received
the second-highest reads weekly. This happened, I guess, because many researchers
are interested in the newly proposed controlled-branch method and controlled-
cutting method, which have potential applications for developing new ILP solvers.
The author’s main contributions seem to have not been fully valued by now,
including most pivot rules, reduced and D-reduced simplex methods, deficient-basis
and dual deficient-basis methods, face and dual face methods, and the decomposi-
tion principle, included in Part II. This is somewhat surprising since these methods
are supported by solid computational results, except for the newly introduced
reduced and D-reduced simplex methods, and the decomposition principle. In the
author’s view, the reduced simplex method is particularly noteworthy. It is the
first simplex method that searches along the objective-edge. In contrast to existing
simplex methods, it first determines pivot row and then pivot column, and does
so without any selection essentially. As a dual version of it, the D-reduced simplex
method shares similar attractive features, through determining pivot column first and
pivot row later. As for the decomposition principle, it allows for solving arbitrarily
large-scale (even dense) LP problems, in essence, giving a glimmer of light on some
other types of separable large-scale problems. Time will likely clarify the value of
these methods vs other LP solvers.
We are also optimistic about the face and dual face methods. Without exploiting
sparsity, the original methods were implemented using orthogonal transformation
with favorable computational results reported. In the second edition, we added
two chapters devoted to new methods with LU factorization for sparse computing.
Indeed, this is a very natural development which the author cannot help himself
from breaking into.
Some changes on chapters and sections were made with corrections and improve-
ments, and the whole second edition was organized into two parts. Roughly speak-
ing, Part I (Foundations) contains Part I of the first edition, and Part II (Advances)
includes Part II. The Simplex Feasible-Point Algorithm was improved, and removed
from the chapter ”Pivotal Interior-Point Method” to form an independent chapter
with its new title “Simplex Interior-Point Method,” since it actually represents a
new class of interior-point algorithms, which can be transformed from the traditional
simplex algorithms. The title of the original chapter was changed to “Facial Interior-
Point Method,” since the remaining algorithms represent another new class of
Preface to Second Edition xiii
References
1. Cipra BA (2000) The best of the 20th century: editors name top 10 algorithms.
SIAM News 33:1–2
2. Murtagh BA, Saunders MA (1998) MINOS 5.5 user’s guid. Technical report SOL
83-20R, Department of Engineering Economics Systems & Operations Research,
Stanford University, Stanford
3. Shi Y-y, Zhang L-H, Zhu W-X (2018) A review of linear programming compu-
tation by Ping-Qi Pan. European Journal of Operational Research 267(3):1182–
1183
Contents
Part I Foundations
1 Introduction .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 3
1.1 Error of Floating-Point Arithmetic . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 4
1.2 From Real-Life Issue to LP Model . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 6
1.3 Illustrative Applications . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 9
1.4 Standard LP Problem.. . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 14
1.5 Basis and Feasible Basic Solution .. . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 17
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 22
2 Geometry of Feasible Region .. . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 23
2.1 Feasible Region as Polyhedral Convex Set . . . . .. . . . . . . . . . . . . . . . . . . . 24
2.2 Interior Point and Relative Interior Point . . . . . . .. . . . . . . . . . . . . . . . . . . . 28
2.3 Face, Vertex, and Extreme Direction . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 31
2.4 Representation of Feasible Region . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 42
2.5 Optimal Face and Optimal Vertex . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 44
2.6 Graphic Approach .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 46
2.7 Heuristic Characteristic of Optimal Solution . . .. . . . . . . . . . . . . . . . . . . . 47
2.8 Feasible Direction and Active Constraint . . . . . . .. . . . . . . . . . . . . . . . . . . . 50
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 54
3 Simplex Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 57
3.1 Simplex Algorithm: Tableau Form . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 57
3.2 Getting Started.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 68
3.3 Simplex Algorithm .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 74
3.4 Degeneracy and Cycling . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 80
3.5 Finite Pivot Rule. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 84
3.6 Notes on Simplex Method . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 91
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 93
4 Implementation of Simplex Method .. . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 95
4.1 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 95
4.2 Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 97
xv
xvi Contents
Part II Advances
12 Pivot Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 341
12.1 Partial Pricing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 342
12.2 Steepest-Edge Rule. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 344
12.3 Approximate Steepest-Edge Rule . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 346
12.4 Largest-Distance Rule.. . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 348
12.5 Nested Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 350
12.6 Nested Largest-Distance Rule . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 352
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 353
13 Dual Pivot Rule .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 355
13.1 Dual Steepest-Edge Rule. . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 355
13.2 Approximate Dual Steepest-Edge Rule . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 359
13.3 Dual Largest-Distance Rule . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 360
13.4 Dual Nested Rule .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 362
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 363
14 Simplex Phase-I Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 365
14.1 Infeasibility-Sum Algorithm .. . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 365
14.2 Single-Artificial-Variable Algorithm . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 370
14.3 Perturbation of Reduced Cost. . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 376
14.4 Using Most-Obtuse-Angle Column Rule . . . . . . .. . . . . . . . . . . . . . . . . . . . 380
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 383
15 Dual Simplex Phase-l Method . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 385
15.1 Dual Infeasibility-Sum Algorithm .. . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 385
15.2 Dual Single-Artificial-Variable Algorithm .. . . . .. . . . . . . . . . . . . . . . . . . . 389
15.3 Perturbation of the Right-Hand Side . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 395
15.4 Using Most-Obtuse-Angle Row Rule . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 398
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 401
16 Reduced Simplex Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 403
16.1 Reduced Simplex Algorithm.. . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 404
16.2 Dual Reduced Simplex Algorithm . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 412
16.2.1 Dual Reduced Simplex Phase-I:
Most-Obtuse-Angle.. . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 418
16.3 Perturbation Reduced Simplex Algorithm . . . . . .. . . . . . . . . . . . . . . . . . . . 422
16.4 Bisection Reduced Simplex Algorithm . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 426
16.5 Notes on Reduced Simplex Algorithm .. . . . . . . . .. . . . . . . . . . . . . . . . . . . . 430
References .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 430
17 D-Reduced Simplex Method. . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 433
17.1 D-Reduced Simplex Tableau . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 434
17.2 Dual D-Reduced Simplex Algorithm.. . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 437
17.2.1 Dual D-Reduced Phase-I . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 442
17.3 D-Reduced Simplex Algorithm .. . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 445
17.3.1 D-Reduced Phase-I: Most-Obtuse-Angle Rule. . . . . . . . . . . . 452
Contents xix
Index . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 733
About the Book
This book represents a real breakthrough in the field of linear programming (LP).
Being both thoughtful and informative, it focuses on reflecting and promoting the
state of the art by highlighting new achievements in LP. This new edition was orga-
nized into two parts. The first part addresses foundations of LP, including geometry
of feasible region, simplex method, implementation of simplex method, duality
and dual simplex method, primal-dual simplex method, sensitivity analysis and
parametric LP, generalized simplex method, decomposition method, interior-point
method, and integer LP method. The second part mainly introduces contributions
of the author himself, such as efficient primal/dual pivot rules, primal/dual Phase-
I methods, reduced/D-reduced simplex methods, generalized reduced simplex
method, primal/dual deficient-basis methods, primal/dual face methods, and new
decomposition principle.
Many important improvements were made in this edition. The first part includes
new results, such as mixed two-phase simplex algorithm, dual elimination, fresh
pricing scheme for reduced cost, and bilevel LP model and intercepting of optimal
solution set. In particular, the chapter ”Integer LP Method” was rewritten in
great gains of the objective cutting for new ILP solvers controlled-cutting/branch
methods, as well as an attractive implementation of the controlled-branch method. In
the second part, the “simplex feasible-point algorithm” was rewritten and removed
from the chapter “Pivotal Interior-Point Method” to form an independent chapter
with the new title “Simplex Interior-Point Method,” as it represents a class of new
interior-point algorithms transformed from traditional simplex algorithms. The title
of the original chapter was then changed to “Facial Interior-Point Method,” as
the remaining algorithms represent another class of new interior-point algorithms
transformed from normal interior-point algorithms. Without exploiting sparsity, the
original primal/dual face methods were implemented using Cholesky factorization.
To cope sparse computation, two new chapters for ones with LU factorization were
added to the second part. Another exciting improvement was the reduced simplex
method. In the first edition, the derivation of its prototype was presented in a chapter
with the same title, and then converted into the so-called “improved” one in another
chapter. Fortunately, the author recently found a quite concise new derivation, so
xxiii
xxiv About the Book
he can now introduce the distinctive and very promising new simplex method in a
single chapter.
This book is a rare work in LP. With a focus on computation, it contains many
novel ideas and methods, supported by sufficient numerical results. Being clear
and succinct, its content deduces in a fresh manner, from simple to profound.
In particular, a larger number of examples were worked out to demonstrate
algorithms. So, it is an indispensable tool for undergraduate/graduate students,
teachers, practitioners, and researchers in LP and related fields.
About the Author
xxv
Notation
In this book, in general, uppercase English letters are used to denote matrices,
lowercase English letters used to denote vectors, and lowercase Greek letters do
denote reals. Set is designated by uppercase English or Greek letters. Unless
indicated otherwise, all vectors are column ones.
LP Linear programming
ILP Integer linear programming
Rn Euclidean space of dimension n
R Euclidean space of dimension 1
0 Origin of Rn (or the zero vector)
ei Unit vector with the ith component 1 (dimension will be clear from the
context; the same below)
e Vector of all ones
I Unit matrix
A Coefficient matrix of the linear program; also stands for index set of A’s
columns, i.e., A = {1, . . . , n}
m Number of rows of A
n Number of columns of A
b Right-hand side of the equality constraint
c Cost vector, i.e., coefficient vector of the objective function
B Basis (matrix). Also the set of basic indices
N Nonbasic columns of A. Also the set of nonbasic indices
aj The j th column of A
ai j The entry of the ith row and j th column of A
vj The j th component of vector v
v Euclidean norm of vector v
max(v) The largest component of vector v
AJ Submatrix consisting of columns corresponding to index set J
vI Subvector consisting of components corresponding to row index set I
AT Transpose of A
X Diagonal matrix whose diagonal entries are components of vector x
xxvii
xxviii Notation
As intelligent creatures, human beings plan and carry out activities with pre-set
objectives. Early human ancestors relied on their experience only, whereas their
modern-day descendants make their decisions based on scientific tools.
The word optimization means to achieve the best results with minimum effort.
For example, how would one allocate limited resources (labor, money, materials,
etc.) to maximize returns or minimize costs while meeting a specific demand.
People collect information and data and express real-life problems with appropriate
forms mathematically using numbers, functions, and equations, etc., through a so-
called mathematical modeling process. Then, optimization methods/software are
applied to deal with these models, consequently offering quantitative bases for
sound decision making. This process has been revolutionized by the advent of the
electronic computer.
The linear programming (LP) branch emerged when the American mathemati-
cian George B. Dantzig founded the LP model and the simplex method in 1947 (for
the birth of LP, see Appendix A). The LP model has a simple structure, involving
linear functions and equalities/inequalities; somewhat surprisingly, it turns out to be
one of the most important and widely used models in the world. This seems to be in
response to the words of Lao Tzu:1
The Great Road Is the Simplest!
Of course, “simplest” does not necessarily mean “easy.” The challenge is the huge
scale of LP models that are difficult to handle. After 70 years of development,
LP methods/software are now capable to solve models with considerably large
scales. Even 30 years ago, for example, an LP model with 12,753,313 variables was
solved successfully to provide an optimal scheme for an airline crew scheduling
application (Bixby et al. 1992). Nevertheless, the academic community still faces
major challenges to deal with large-scale and difficult models. Therefore, it might
© The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2023 3
P.-Q. PAN, Linear Programming Computation,
https://doi.org/10.1007/978-981-19-0147-8_1
4 1 Introduction
which together with 0 constitute F , and where α1 . . . αt is called mantissa part and
β e is the exponent part.
We use the notation
m = β L−1 , M = β U (1 − β −t ).
It is clear that for any floating-point number f l(x) ∈ F , it holds that m ≤ |x| ≤ M.
Thus, F is a set of non-uniformly distributed rational numbers. Define the set
S = {x ∈ R | m ≤ |x| ≤ M}.
1.1 Error of Floating-Point Arithmetic 5
Then, for any 0 = x ∈ S, the approximate number f l(x), yielded from the
computer, only holds mantissa of t digits, via the following two methods:
(i) Rounding method: It is based on the (t + 1)th digit of the mantissa of x. The
digits at this position and after are all taken off if this digit is less than a half of
β; in the other case, the digits are taken off after a unit is added to the previous
digit. The associated absolute error bound is then
1 e−t
|f l(x) − x| ≤ β . (1.2)
2
(ii) Truncation method: The (t + 1)th figure and after are all taken off. Thereby,
f l(x) is the floating-point number nearest to x in F , whose absolute values are
no more than |x|, and hence, the associated absolute error bound is
|f l(x) − x| ≤ β e−1 .
Since
it holds that
f l(x) − x β e−1
≤
x .α β e = /α1 ≤ ,
1
that is
Therefore, is just a relative error bound of the approximate number f l(x). The
so-called machine precision, , is the smallest positive value in F , satisfying
f l(1 + ) = 1.
Therefore, the relative error bound for a single arithmetic operation is , a small
number. Unfortunately, the situation may be entirely contrary when executing an
algorithm or a series of operations.
Usually, the algorithm’s performance may be affected by rounding or truncation
errors greatly. Due to error accumulations, final results could be entirely meaning-
less, as they could be far from the theoretical value. It is therefore important to take
care of numerical errors in computations. In this aspect, the following simple rules
should be followed:
1. Avoid using a number close to 0 as the denominator or divisor.
2. Avoid subtracting a number from another that is close to it.
3. Avoid operating numbers with a very different order of magnitude, so that “large
swallows small whole.”
4. Avoid results close to m or M.
5. Reduce the number of operations, especially multiplications or divisions.
When δ 1, for instance, calculating from the right-hand side of each equation
below gives a more accurate result than from the left-hand side.
√ √ √ √
x + δ − x = δ/( x + δ + x),
cos(x + δ) − cos x = −2 sin(x + δ/2) sin(δ/2).
In practice, there are usually many schemes to be chosen by a decision maker, and
different schemes may lead to widely diverging outcomes, as is crucial in fierce
competition. This situation provides a wide stage for the decision maker to play.
1.2 From Real-Life Issue to LP Model 7
Making decisions just based on experience cannot be mentioned in the same breath
with mathematical tools.
The formation of a mathematical model is the first step toward the application
of LP. Based on full and reliable data gathered, a good model comes from one’s
knowledge, skill, experience, and wisdom. This topic is beyond the scope of this
book, and this section only gives the reader a taste of simple examples.
Example 1.2.1 A manufacturer, who has 1100 tons of log, is committed by contract
to supply 470 tons of lath to a company. There is a 6% loss in log when it is
processed into laths. In addition, the production costs have risen since the signing
of the contract, while the selling price of lath remains the same. In fact, he can
make more profit by selling the log as raw material to another firm. What can the
manufacturer do to have the maximum profit while still honoring the contract?
This problem can be solved algebraically. Let x be the number of tons of logs the
manufacturer can sell as raw material, and let y be the number of logs available to
produce lath. It is clear that
x + y = 1100,
where x should be maximized to gain the maximum profit. On the other hand, since
6% out of y is lost during the manufacturing process, the actual amount of lath
produced is
y − 0.06y,
which, associated with the contract, must be equal to 470 tons, i.e.,
y − 0.06y = 470.
x = 600, y = 500.
Therefore, the manufacturer should sell 600 tons of logs as raw material and use the
rest 500 tons for the production of lath.
In the preceding, the manufacturer only has a unique scheme to choose. Usually,
decision makers face multiple or even unlimited choices, as shown in the following
example.
8 1 Introduction
Example 1.2.2 A manufacturer produces lath and sheet piles. Profit per lath is
2 dollars, and profit per sheet pile is 5 dollars. The equipment capability of the
manufacturer can produce at most 6000 lath or 4000 sheet piles per day. According
to the sales contract, he can sell 3000 sheep piles at most, and the sales volume of
laths and sheet piles cannot exceed 5000 per day. How should he arrange to produce
lath and sheep piles to gain a maximum profit?
Let x be the amount of lath, and let y be that of sheep piles to be produced per day
(in thousand as the unit). For values of each pair of variables (x, y) corresponding
to a decision, the associated profit is f (x, y) = 2x + 5y thousand dollars. So, what
the manufacturer wants to do is to maximize the function value of f (x, y).
It is clear that the yielded profit would be infinitely large if there was no
restriction on the production. It is not the case, of course. According to the
equipment capability, the average rate of producing lath and sheet piles is 6 thousand
and 4 thousand per day, respectively. Therefore, variables x and y should satisfy
inequality x/6 + y/4 ≤ 1, or equivalently,
2x + 3y ≤ 12.
x + y ≤ 5,
and finally,
y ≤ 3.
max f (x, y) = 2x + 5y
s.t. −2x − 3y ≥ −12
− x − y ≥ −5 (1.6)
−y ≥ −3
x, y ≥ 0,
where x and y are called decision variables, and f (x, y) is called objective function;
the inequalities are called constraints, (x, y) satisfying constraints is a feasible
solution, and the set of all feasible solutions is the feasible region. Solving a model
is trying to find its optimal solution, that is, a feasible solution maximizing the
objective function over the feasible region.
1.3 Illustrative Applications 9
B y=3
A
2x+3y=12
C
P x+y=5
O D x
In contrast with Example 1.2.1, which has a single feasible solution, Exam-
ple 1.2.2 involves infinitely many feasible solutions. In fact, the problem has the
following feasible region:
Since there is a 1-to-1 correspondence between pairs of real numbers and points
in a rectangular coordinate system, the feasible region P can be represented
geometrically by Fig. 1.1, where x (thousand) represents the number of laths and
y (thousand) that of sheep piles, and where each boundary is labeled by an equation
corresponding to the closed half-plane. The feasible region P is just the intersection
of these half-planes, within which each point corresponds to a feasible solution.
Therefore, the problem now is how to find a point in P corresponding to the
maximum possible value of function 2x + 5y. Since there are infinitely many points
in P , it is impossible to pick up and compare them one by one, not to mention much
more challenging large-scale problems with hundreds of thousands of variables and
constraints. Although this simple instance can be solved by a graphical approach
(Sect. 2.6), dealing with general LP problems requires sophisticate mathematical
tools.
LP has a very wide range of applications, touching upon almost all fields related
to decision making and management. This section only brings up a few illustrative
instances. Strictly speaking, some of these instances involve variables of nonneg-
ative integer values and hence belong to the so-called integer/mixed-integer LP
models, although the latter requirement is ignored here for simplicity.
10 1 Introduction
x1 = 2860, x2 = 6570, x3 = 0,
and the associated objective function value is f = 13430. That is to say, the factory
should produce 2860 pieces of product A, 6570 pieces of product B, and no product
C, achieving the highest profit 13430 dollars.
Example 1.3.2 (Transportation) A company has 8800, 7200, and 5700 containers
at ports A, B, C, respectively. These containers should be transported to plants 1,
2, 3, 4, 5, whose working ability is 3200, 5300, 4100, 6200, and 2900 containers,
1.3 Illustrative Applications 11
respectively. The following table lists the freight rate (dollars/container) of transport
service from the ports to the plants:
Port 1 2 3 4 5
A 55 150 78 38 90
B 25 60 25 43 35
C 102 80 52 74 60
How should the company arrange to achieve the least total freight charges?
Answer This is a balanced transportation problem, as the total number of
containers is equal to the total number of containers, i.e.,
x11 = 2600, x14 = 6200, x21 = 600, x23 = 4100, x25 = 2500, x32 = 5300, x35 = 400,
and all the other variables take value 0. Then the company pays the minimum total
freight 1031600 dollars.
12 1 Introduction
x1 = 25.6, x2 = 39.7, x3 = x4 = x5 = 0,
with minimum objective function value f = 32.28. So, he should buy 25.6 kg. of
feed A, 39.7 kg. of feed B, and none of the other 3 feeds with the minimum cost
32.28 dollars.
Example 1.3.4 (Human Resource Arrangement) A round-the-clock supermarket
arranges salespersons. Every day falls into 6 time intervals, 4 h each. Every
salesperson starts work at the beginning of the intervals and then continuously works
for 8 h. The required numbers of salesperson for each of the intervals are as follows:
Interval 1 2 3 4 5 6
2:00–6:00 6:00–10:00 10:00–14:00 14:00–18:00 18:00–22:00 22:00–2:00
Number 7 15 25 20 30 7
1.3 Illustrative Applications 13
min f = x1 + x2 + x3 + x4 + x5 + x6
s.t. x1 + x6 ≥ 7
x1 + x2 ≥ 15
x2 + x3 ≥ 25
x3 + x4 ≥ 20
x4 + x5 ≥ 30
x5 + x6 ≥ 7
xj ≥ 0, j = 1, . . . , 6.
x2 = 25, x4 = 30, x6 = 7, x1 = x3 = x5 = 0,
and the associated objective function value is f = 62. So, the business should
arrange 25 salespersons working from 6:00, 30 ones working from 14:00, and 7
from 22:00. This scheme requires only 62 salespersons.
Example 1.3.5 (Laying-off) A shop is asked to make 450 steel frames. Each frame
needs 1.5, 2.1, and 2.9 meters long angle steel. Each raw material is 7.4 meters long.
Find the optimum laying-off way.
Answer A direct way is to make a frame using raw material to get the 3 kinds
of angle steel. If so, there would be a need for 450 raw materials, each of which
would leave an 0.9 meters long offcut. To obtain the optimum scheme, consider the
following ways, each of which would leave an offcut no more than 0.9 meters long.
These ways should be mixed and matched to gain the minimum total length of
offcuts. Let xj , j = 1, . . . , 6, be numbers of raw materials taken, corresponding
to ways A, B, C, D, E, F , and let f be the total length of offcuts. Construct the
following model:
with objective function value f = 72. Therefore, the shop should use 135 raw
materials for way A, 45 for way B, and 225 for way D, with a total length of 72
meters of offcuts. The minimum total number of used raw materials is 405.
The sizes of the preceding problems are very small, which are just for the reader
to get a taste of LP applications. Nowadays, real-world problems are usually very
large. Even so, small problems still help to convey ideas and illustrate algorithms.
Some of LP problems in the previous section seek for maximizing the objective
function, while others seek for minimizing it. Besides, some of their constraints
are equalities, while others are inequalities of “≥” or “≤.” For convenience, we
introduce the following problem in a so-called standard form:
min f = c1 x1 + c2 x2 + · · · + cn xn
s.t. a11x1 + a12 x2 + · · · + a1n xn = b1
a21x1 + a22 x2 + · · · + a2n xn = b2
.. (1.7)
.
am1 x1 + am2 x1 + · · · + amn xn = bm
xj ≥ 0, j = 1, . . . , n.
1.4 Standard LP Problem 15
max f = c1 x1 + c2 x2 + · · · + cn xn
can be replaced by
min f = −c1 x1 − c2 x2 − · · · − cn xn .
It is clear that this does not matter to the optimal solution but changes the sign of
the optimal objective value only.
2. Any inequality can be transformed into equality by introducing an extra nonneg-
ative variable.
Introducing a so-called slack variable xk+1 ≥ 0, e.g., the “≤” type of inequality
α1 x1 + α2 x2 + · · · + αk xk ≤ β
α1 x1 + α2 x2 + · · · + αk xk + xk+1 = β,
α1 x1 + α2 x2 + · · · + αk xk ≥ β
α1 x1 + α2 x2 + · · · + αk xk − xk+1 = β.
Example 1.4.1 Transform the following LP problem into the standard form:
we put the standard problem (1.7) into the compact form below:
min f = cT x
(1.8)
s.t. Ax = b, x ≥ 0,
P = {x ∈ Rn | Ax = b, x ≥ 0}. (1.9)
A feasible solution with the minimum objective function value over the feasible
region is an optimal solution.
1.5 Basis and Feasible Basic Solution 17
min f = x1 + 2x2 − x4 + x5
s.t. 2x1 + x2 + 3x3 + 2x4 = 5
x1 − x2 + 2x3 − x4 + 3x5 = 1 (1.10)
x1 − 2x3 − 2x5 = −1
xj ≥ 0, j = 1, . . . , 5.
For convenience, we strip the augmented coefficient matrix from the linear system
and put it into the following tableau:
x1 x2 x3 x4 x5 RHS
2 1 3 2 5
1 −1 2 −1 3 1
1 −2 −2 −1
The preceding tableau and the system itself are regarded as the same. Carrying
out elementary transformations with the tableau amounts to doing the same thing
with the system itself.
A so-called pivot is a nonzero entry in the tableau, which determines a Gauss–
Jordan elimination process. As an example, take the first entry 2 in the first column
as pivot. Multiply by 1/2 the first row to turn the pivot to 1, leading to the following
tableau:
x1 x2 x3 x4 x5 RHS
1 1/2 3/2 1 5/2
1 −1 2 −1 3 1
1 −2 −2 −1
Then add −1 times of the first row to the second and third row, respectively, to
eliminate entries in the first column except the pivot, giving the following tableau:
x1 x2 x3 x4 x5 RHS
1 1/2 3/2 1 5/2
−3/2 1/2 −2 3 −3/2
−1/2 −7/2 −1 −2 −7/2
Take the second entry in the second column as the next pivot. Multiply by −2/3
the second row to turn the pivot to 1, leading to the following tableau:
x1 x2 x3 x4 x5 RHS
1 1/2 3/2 1 5/2
1 −1/3 4/3 −2 1
−1/2 −7/2 −1 −2 −7/2
Add −1/2 and 1/2 times of the second row to the first and third rows,
respectively, to eliminate entries in the second column except the pivot, giving the
following tableau:
x1 x2 x3 x4 x5 RHS
1 5/3 1/3 1 2
1 −1/3 4/3 −2 1
−11/3 −1/3 −3 −3
1.5 Basis and Feasible Basic Solution 19
Take the third entry of the third column as pivot. Multiply by −3/11 the third
row to turn the pivot to 1, leading to the following tableau:
x1 x2 x3 x4 x5 RHS
1 5/3 1/3 1 2
1 −1/3 4/3 −2 1
1 1/11 9/11 9/11
Add −5/3 and 1/3 times of the third row to the first and second rows,
respectively, to eliminate entries in the third column except the pivot, giving the
following tableau:
x1 x2 x3 x4 x5 RHS
1 2/11 −4/11 7/11
1 15/11 −19/11 14/11
1 1/11 9/11 9/11
which is equivalent to the original system (Propositions 1.5.1 and 1.5.2). However,
the preceding is so simple that itself exhibits general solutions of the system if x4
and x5 are viewed as independent variables.
In particular, setting zero to both x4 and x5 leads to
which is said to be basic solution. In fact, this solution can be directly read from the
RHS side of the last tableau.
Nevertheless, Gauss–Jordan elimination does not always go smoothly if pivots
are determined in the natural order. The process breaks down if some pivot happens
to be zero. Even if all pivots are nonzero, the outcome may still be useless if some
pivot is too close to zero (Sect. 1.1).
20 1 Introduction
Table 1.5.1 Canonical xj1 xj2 ··· xjr xjr+1 ··· xjn RH S
tableau
1 āi1 jr+1 ··· āi1 jn b̄i1
1 āi2 jr+1 ··· āi2 jn b̄i2
.. .. .. .. ..
. . . . .
1 āir jr+1 ··· āir jn b̄ir
āir+1 jr+1 ··· āir+1 jn b̄ir+1
.. .. .. ..
. . . .
āim jr+1 ··· āim jn b̄im
x1 x2 ··· xn RHS
a11 a12 ··· a1n b1
a21 a22 ··· a2n b2
.. .. .. .. ..
. . . . .
am1 am2 ··· amn bm
Without loss of generality, suppose that the first r pivots are in the natural order
and eliminations are performed such that the r × r northwest corner submatrix of A
becomes a unit one, as shown in Tableau 1.5.1.
At the next step, select āpq from entries within the non-pivot rows and columns
such that
The index set B = {j1 , . . . , jr } of pivot columns is said basic, and N = A\B =
{jr+1 , . . . , jn } said nonbasic. The associated variables are said basic and nonbasic
correspondingly.
Recall that for the standard LP problem, it is usually assumed that rank A = m.
That is to say, Ax = b is always consistent, and the final canonical tableau offers a
set of solutions to Ax = b, i.e.,
xB = b̄ − N̄ xN ,
xN = xN ,
where the nonbasic variables of xN on the right-hand side are viewed as indepen-
dent.
Definition 1.5.1 The solution resulting from setting the nonbasic variables to zero
is a basic solution. If its basic components are all nonnegative, it is a feasible basic
solution.
Thus, the canonical tableau corresponds to the basic solution
Based on the fact that the objective function is continuous over a closed feasible
region, we conclude this section with the following claim:
Proposition 1.5.3 The answer to any LP problem must be one of the following three
cases:
(i) Infeasible problem: There exists no feasible solution.
(ii) Unbounded problem: There exists a feasible solution, but the feasible value is
lower unbounded over the feasible region.
(iii) There exists an optimal basic solution.
References
Bixby RE, Gregory JW, Lustig IJ, Marsten RE, Shanno DF (1992) Very large-scale linear
programming: a case study in combining interior point and simplex methods. Oper Res 40:885–
897
Forsythe GE, Malcom MA, Moler CB (1977) Computer methods for mathematical computations.
Prentice-Hall, Englewood Cliffs
Wilkinson JH (1971) Modern error analysis. SIAM Rev 13:548–568
Chapter 2
Geometry of Feasible Region
b T y ≥ 0, ∀ y ∈ {y ∈ Rm | AT y ≥ 0}.
Figure 2.1 serves as a geometric explanation for the preceding Lemma, where
a1 , a2 , a3 are the columns of A ∈ R2×3 .
The area Y between the vectors v and w corresponds to all vectors that form an
angle no more than π/2 with each column vector of A. It is seen that each y ∈ Y
forms an angle no more than π/2 with vector b1 , but not with b2 . Therefore, P is
nonempty when b = b1 but empty when b = b2 .
Thereafter in this book, discussions will be based on the following:
Assumption 1 The feasible region P is nonempty and infinite.
© The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2023 23
P.-Q. PAN, Linear Programming Computation,
https://doi.org/10.1007/978-981-19-0147-8_2
Discovering Diverse Content Through
Random Scribd Documents
exhilaration of body and mind, they now experience a sad reverse, in which they find
much more pleasing music in the prudent advice of the apothecary, than in all the Odes
of Anacreon. The cry is not then,
But,
Now, though poets have favoured us with many a canto on the raptures inspired by
flowing bowls and sparkling goblets, they have rarely condescended to give us one line, if
it were only by way of note, on the “state of the stomach” on the morning after one of
those “nights and suppers of the gods.” Such a detail indeed was never intended for the
divine art of poesy. It is a job not at all calculated for the lover of agreeable fiction, and
hence the world hears little on the subject. Those after-reckonings are nevertheless
serious, though unpalatable things. Pleasure here acts much like a tavern host, who
remembers most accurately all the good things he provides, though his guests are both
apt and willing to forget them. Every item is carefully put down, and must be paid for. I
shall only say, that fortunate is he who takes warning in time. I might moralise on this
theme in good set phrase, but the ground has been so well and so frequently beaten by
others, that I forbear. With respect to such articles as opium and spirits, the “spirit of the
age,” as I have already intimated, runs quite in an opposite direction to that of
indulgence; and it is wisely considered that as those who can be temperate in the use of
such ticklish commodities must owe a great deal to a happy temperament of constitution,
and be few in number, whilst the greater part of mankind are not so felicitously moulded,
the rule of teetotalism, viz., entire abstinence, is on the whole the safest and best. But
there is one article in our pharmacopœia of stimulants, upon which there seems to be
some difference of opinion, and with regard to which I should wish to record my humble
opinion. I allude to the nicotian leaf-tobacco.
Now, I regret to say that a long and attentive study of the subject compels me to
pronounce an unfavourable sentence on this article. Whatever value it may possess as a
medicine—and that, in the present state of our knowledge, is not much—I must say that,
as an instrument of luxury in ordinary use, it is unwholesome and injurious. To the
physician it may be satisfactory to ascertain in what way, precisely, the injurious effect is
produced; but it may suffice others to learn from experience and observation what is the
actual result. It is obvious that tobacco causes an excitement of the nervous system, and
thus disturbs the course of nature; but nature never is, and never can be, disturbed with
impunity. To apply a stimulus to the system for which there is no natural demand, is to
cause a waste of nervous energy, of which nature has need for her own legitimate
purposes, and therefore to inflict an injury upon her, greater or less according to the
amount of that uncalled for expenditure. To keep such an unnatural stimulus in constant
action, is tantamount to the creation of a constitutional derangement of the functions, or
the introduction of an actual disease into the body; and nobody will pretend to say that
this is not injurious. To my simple apprehension, it is anti-hygeian practice with a
vengeance. I am no physician, but I believe this to be the true theory of our subject,
regarded in a physiological point of view, and it is decisive against the nicotian habit,
however small the quantity of the article used may be. People are rather indisposed to
believe that an “agreeable” sensation can be an “unwholesome” one; but unfortunately
for poor humanity, and the popularity of us sages, nothing in nature is more certain than
the possibility of such a conjuncture. It is not only certain, but, alas, commonly known by
experience, that an agreeable thing may be unwholesome, and a pleasant sensation
anything at all but a symptom of healthful action.
Again, people are apt to suppose that no injury is done to their health, because they are
not sensible of the wound at the moment; but this also is a notion which we must class
among vulgar errors. It is a matter of demonstration, not merely of hypothesis, that we
may sustain most grievous injury of which we are not instantly sensible; nay, that so long
a time may elapse after the impression has been imparted, that we become unable to
trace the effect to its cause; and yet the relation of cause and effect stands sure,
however ignorant or unconscious we may be of it. As an illustration of this position, I
shall mention a case which came under my own observation. I was once acquainted with
a gentleman, who at eighty years of age was what would be called a stout, healthy old
fellow. He was certainly of a most robust constitution, and had never addicted himself to
any habit “calculated to shorten life,” as they say at the Insurance Offices, saving and
excepting that of taking snuff. Well, it has been said to me, “See how your anti-nicotian
theory is set at defiance by this hearty old fellow. If tobacco be a slow poison, it must be,
as was said of tea, very slow indeed, or how should we have such an exemplary
octogenarian as this, ‘o’er all its ills victorious?’ He has been taking snuff all his life, and
yet, you perceive, is nothing the worse for it.” Now, I did not perceive any such thing, but
was well aware that the contrary was the case. I was of opinion, and am now fully
convinced of the fact, that he suffered extremely, nay, intensely, from the habit, without
himself or others being at all aware of it. I do not speak of a nose and face perpetually
begrimed with snuff—of a waistcoat and inexpressibles embrowned and powdered all
over with it—of the expenditure of pocket-handkerchiefs, and waste of time in nose-
blowing—everlasting sneezing and coughing, &c.: such matters are mere trifles in the
estimate of your professed snuff-takers; but I do speak of an habitual depression of
spirits, and frequently an access of the most miserable melancholy, to which this
gentleman was subject, and which I attribute to his inveterate habit of snuff-taking, and
to no other cause. He would complain bitterly of his wretchedness on those occasions,
and ascribe it to the skyey influences—the humidity of our climate, the fogs, and I know
not what besides; but it was nothing but “the snuff.” Such intelligence would have
doubtless been very unwelcome; for this very snuff—this actual fons et origo malorum,
ay, “more snuff”—was his most favourite remedy and consolation under these distressing
visitations! So much for our ignorance of causes.
The late Doctor Adam Clarke was a great enemy to the tobacco leaf, and published a
strong paper in condemnation of it. He takes high ground upon the subject.
“That it is sinful to use it, as most do,” he says, “I have no doubt—if destroying the
constitution, and vilely squandering away the time and money which God has given for
other purposes, may be termed sinful. I have observed some whole families, and very
poor ones too, who have used tobacco in all possible ways, and some of them for more
than half a century. Now, suppose the whole family, consisting of four, five, or six, to
have used but 1s. 6d. worth a-week, then, in the mere article of tobacco, nearly £200
sterling is totally and irrecoverably lost in the course of fifty years. Were all the attending
expenses, such as appropriate implements, neglect of business, and other concomitants,
taken into account, probably four times the sum would be too small an estimate.”
Captain Scott, in his interesting work “Rambles in Egypt and Candia,” says—
“All the Arab race are addicted to the use of the pipe, and to this pernicious habit may be
traced the origin of most of their vices, and a great proportion of their misery.” And
again, in a note, he observes—“Nothing tends so much as the pernicious and universal
habit of smoking to retard all improvement amongst the natives of the East, producing
habitual indolence, and occasioning an irreparable loss of time.” He calls it elsewhere the
“predominant vice of Mahomedanism.” Now, with such warning and such examples
before me, I own that I cannot contemplate the possibility of my countrymen becoming a
nation of smokers, without the utmost pain. I would wish to put all parties, but especially
the young, on their guard against the insidious and seductive approaches of the habit.
The elegant pipe, the splendid snuff-box, and all the curious conveniences of tube, light,
tobacco-pouch, and so on, are so many lures to the unwary; and many, by simply
nibbling at these captivating baits, have been gradually led on, and at last turned into
confirmed consumers. There is a temptation in the furniture of our fashionable snuff and
cigar shops—“divans,” as they are called, which it is hard to resist. It would seem almost
worth while to “consume,” for the sake of encompassing oneself with such beautiful toys;
but I class all such resorts in the same category with the gin-palaces of London. Look to
the end—observe what a confirmed habit of snuffing or smoking is—how wasteful, how
enervating, how every way pernicious! The tyranny of it is dreadful. No man knows it
thoroughly but he who has once been its slave. The craving of the nose once accustomed
to be fed, for snuff—of the throat and fauces once seasoned to the use, for smoke—and
of the teeth and gums once used to be drawn, for the reiterate chew—oh, it is dreadful!
—and I say there is no remedy against the evil but teetotalism.
I have said nothing on those popular stimulants, tea and coffee, for, as generally used, I
think they are both innocent, as they are certainly agreeable beverages. Let not my fair
countrywomen, however, when they indulge in the “cup that cheers but not inebriates”—I
mean the Howqua, or any other tea-mixture—aim at celebrity for preparing it over
strong; for in this state, like other stimulants that we have been considering, I have no
doubt that it is bad for weak nerves.
F.
People with one Idea.—There are people who have but one idea: at least if they have more,
they keep it a secret, for they never talk but of one subject. There is Major C——; he has
but one idea, or subject of discourse, Parliamentary Reform. Now, Parliamentary Reform
is (as far as I know) a very good thing, a very good idea, and a very good subject to talk
about; but why should it be the only one? To hear the worthy and gallant Major resume
his favourite topic is like law-business, or a person who has a suit in Chancery going on.
Nothing can be attended to, nothing can be talked of but that. Now it is getting on, now
again it is standing still; at one time the Master has promised to pass judgment by a
certain day, at another he has put it off again, and called for more papers; and both are
equally reasons for speaking of it. Like the piece of pack-thread in the barrister’s hands,
he turns and twists it all ways, and cannot proceed a step without it. Some schoolboys
cannot read but in their own book; and the man of one idea cannot converse out of his
own subject. Conversation it is not, but a sort of recital of the preamble of a bill, or a
collection of grave arguments for a man’s being of opinion with himself. It would be well
if there was any thing of character, any thing of eccentricity in all this; but that is not the
case. It is a political homily personified, a walking common-place we have to encounter
and listen to. It is just as if a man was to insist on your hearing him go through the fifth
chapter of the Book of Judges every time you meet, or like the story of the Cosmogony in
the Vicar of Wakefield. It is a tune played on a barrel-organ. It is a common vehicle of
discourse into which people get and are set down when they please, without any pains or
trouble to themselves. Neither is it professional pedantry or trading quackery: it has no
excuse. The man has no more to do with the question which he saddles on all his hearers
than you have. This is what makes the matter hopeless. If a farmer talks to you about his
pigs or his poultry, or a physician about his patients, or a lawyer about his briefs, or a
merchant about stock, or an author about himself, you know how to account for this; it is
a common infirmity; you have a laugh at his expense, and there is no more to be said.
But here is a man who goes out of his way to be absurd, and is troublesome by a
romantic effort of generosity. You cannot say to him, “All this may be interesting to you,
but I have no concern in it;” you cannot put him off in that way. He has got possession of
a subject which is of universal and paramount interest, and on that plea may hold you by
the button as long as he chooses. His delight is to harangue on what nowise regards
himself; how then can you refuse to listen to what as little amuses you? The business
admits of no delay. The question stands first on the order of the day—takes precedence
in its own right of every other question. Any other topic, grave or gay, is looked upon in
the light of impertinence, and sent to Coventry. Business is an interruption to it, pleasure
a digression from it. As Cicero says of study, it follows the man into the country, it stays
with him at home; it sits with him at breakfast, and goes out with him to dinner. It is like
a part of his dress, of the costume of his person, without which he would be at a loss
what to do. If he meets you in the street, he accosts you with it as a form of salutation; if
you see him at his own house, it is supposed you come upon that. If you happen to
remark, “it is a fine day,” or “the town is full,” it is considered as a temporary compromise
of the question; you are suspected of not going the whole length of the principle. Is not
this a species of sober madness more provoking than the real? Has not the theoretical
enthusiast his mind as much warped, as much enslaved by one idea, as the
acknowledged lunatic, only that the former has no lucid intervals? If you see a visionary
of this class going along the street, you can tell as well what he is thinking of and will say
next as the man that fancies himself a tea-pot or the Czar of Muscovy. The one is as
inaccessible to reason as the other: if the one raves, the other dotes!—Hazlitt’s Table-
Talk.
Appreciation.—After all, it is appreciation rather than praise that is delightful. An artist, for
instance, how tired he must be of hearing his pictures called “beautiful, exquisite!”—of
being told for the one hundredth time that he has surpassed himself; but let any one
point out to him one of his own thoughts on the canvass, which he supposed likely to
escape the general eye, and how grateful it is!
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.