Book - Linear Programming
Book - Linear Programming
Federico
Villarreal
ACADEMIC
LINEAR LOVE
TOPICS III
CYCLE
itary
LINEAR PROGRAMMING
INDEX
Pages
INTRODUCTION……………………………………………………………………………5
GENERAL STUDY GUIDELINES………………………………………..…6
TUTORIALS…………………………………………………………………………………..7
SCHEDULE………………………………………………………………………….7
EVALUATION………………………………………………………………………………7
RESOURCES AND TEACHING MEDIA……………………………………………......8
GENERAL OBJECTIVES……………………………………………………………….9
FIRST UNIT:
OPERATIONS RESEARCH AND LINEAR PROGRAM………………....................10
SPECIFIC OBJECTIVES…………………………………………………………..10
INTRODUCTION…………………………………………………………………………..10
1.1 ORIGINS OF OPERATIONS RESEARCH……………………..10
1.1.1 Historical background……………………………………………………….10
1.1.2 What is Operations Research……………………………….........................12
2
LINEAR PROGRAMMING
3
LINEAR PROGRAMMING
difficulties and work needs; otherwise the study plan will not be fulfilled.
> Reinforce the proposed topics through the guide text according to the
indication of the academic guide.
> Study in a place where you feel comfortable doing your readings and
homework. If possible, a place with light and free of noise.
> Investigate real situations where you can apply the knowledge you have
acquired.
> Work through the material in the order in which it is delivered. Don't forget to
carry out the activities that you have in your Text as well as in your
Academic Guide, try to carry out the work under the teamwork approach, in
order to optimize the reinforcements and other resources.
> Read the material several times, highlighting the main ideas to organize the
study material (summaries, synoptic tables, etc.), since it must be studied
with previously established goals, which will guide you in the development
of the subject.
b. Recommendations for the use of the academic guide
> This work is aimed at distance learning vocational training students,
therefore it is not a formal textbook; consequently, it is necessary to consult
other books, in order to expand your knowledge and interact fluently during
the sessions. Do it in advance.
> Developing the questions for the activities in a necessary and conscious
way is a way to measure the progress of learning, as is reading, studying
and working with the teaching material on a daily basis. If the result of the
self-assessment is less than 60%, it is recommended to review the unit,
since studying in the distance learning modality requires will and discipline,
which, dear participant, you can achieve by dedicating at least one hour a
day to study, punctually complying with the dates for the delivery of
academic assignments.
> Review the bibliography and webography in order to delve deeper into the
topics covered.
INTRODUCTION
4
LINEAR PROGRAMMING
techniques. It is important to have this definition clear and, in this way, we will realize
the breadth of its field.
The Linear Programming Teaching Guide is organized into four units, each unit
is structured with its respective objectives, concepts and activities for the constant
preparation of the student.
The first unit presents the concepts of operations research and linear
programming. The second unit presents the points necessary to know the primal
solution of linear programming. The third unit provides theoretical knowledge with the
dual program and post-optimal analysis. Finally, in the fourth unit, special applications
of linear programming are developed.
In conclusion, we hope that the text will be an effective and didactic guide that
motivates the student to study and to dedicate himself adequately to achieving the
objectives set out in the course. The use of the guide must be complemented by the
student's deepening or expanding knowledge of the topics contained therein with the
base text and manual of the EUDED.
5
LINEAR PROGRAMMING
Studying in the modality you have chosen requires a great deal of effort and dedication, as well as
responsibility and good organization.
For this reason, when you begin studying our subject, it is important to provide you with some
guidance to optimize your academic performance:
> Find a comfortable and quiet place to read the teaching guide and the basic text. If
possible, a place with light and free of noise.
> Plan and organize a study schedule in which each subject has the necessary time
according to its degree of difficulty.
> Carry out a comprehensive reading, using techniques such as underlining, the use of
conceptual maps or visual organizers that allow you to identify the main ideas to reinforce
knowledge. Or otherwise, read the text many times until you understand the topic at hand.
> It is recommended that you carry out the activities proposed in this Teaching Guide as it
will allow you to verify the achievement of the learning.
It was decided to use a base text for the study, choosing the book: Introduction to Operations
Research, by the author Taha, Hamdy. We call this book Basic Text No. 1
In the first unit we must develop the study of Operations Research and the concepts of linear
programming. This topic can be found in chapter 1 and 2 of basic text 1.
In the second unit we will study the primal solution of linear programming for which chapter 2 of
basic text 1 will be studied.
In the third unit, duality and post-optimization of linear programming will be studied, which will be
found in chapters 2, 3 and 4 of basic text 2.
In the fourth unit we will study special applications of linear programming that will be found in
chapters 5, 6 and 7 of the basic text 1.
It is important to note that the purpose of the Teaching Guide is to clarify and reinforce the topics
covered in Basic Text 1; for example, you will find the solution to some exercises for each topic
proposed in the Basic Text, in this way we hope to contribute to the achievement of the proposed
objectives.
6
LINEAR PROGRAMMING
TUTORIALS
The tutorials will be developed by scheduling a tutorial calendar. These will be in person
and virtual.
SCHEDULE
Week 1 2 2,5 3
UNIT I
Week 2 2 2,5 3
Week 3 2 2,5 3
UNIT II
Week 4 2 2,5 3
Virtual partial evaluation Units I – II
UNIT III Week 5 2 2,5 3
Week 6 2 2,5 3
Week 8 2 2,5 3
Final evaluation Units III – IV
16 20 24
TOTAL
60 academic hours
ASSESSMENT
The final average of the subject in the Face-to-Face – Virtual Modality is obtained by applying
the following percentage steps:
A student who drops the course will have an average of 00 (zero) on the final grade and will
have to register his/her enrollment again.
7
LINEAR PROGRAMMING
Electronic references:
http://www.investigaciondeoperaciones.net/
http://www.programacionlineal.net/
http://www.itlalaguna.edu.mx/academico/carreras/industrial/invoperaciones1/
http://www.gestiondeoperaciones.net/programacion_lineal/
programacion-lineal-metodo-grafico/
http://www.phpsimplex.com/eemplo_metodo_simplex.htm
V?
3=== /mÉge
• Anderson D. (1999). Introduction to Quantitative Models for Management. Editorial
Iberoamericana SA Mexico.
Electronic references:
http://www.investigaciondeoperaciones.net/
dualidad_en_programacion_lineal.html
http://www.gestiondeoperaciones.net/programacion_lineal/relaciones-de-
dualidad-en-programacion-lineal-como-pasar-de-primal-a-dual/
http://www.programacionlineal.net/sensibilidad.html
http://home.ubalt.edu/ntsbarsh/opre640S/PARTVIIS.HTM
http://www.investigacion-operaciones.com/modelo_de_transporte.htm
http://investigaciondeoperacionesind331.blogspot.pe/p/metodo-de-transporte.html
• Bonini, Charles, Hausman, Warren, Bierman, Harold. (2002). Quantitative Analysis for the
Business. Mc Graw Hill Publishing House. 9th Edition. Mexico.
Complementary
• Render, Heyzer (2000). Operations Management. Mc Graw Hill Publishing House. Mexico.
Texts • Prawda, J. (2002). Operations Research Methods and Models. Limusa Publishing House.
Mexico.
3== /S4giE
Qe
00
Links, videos, exam, pages among others.
8
LINEAR PROGRAMMING
GENERAL OBJECTIVES
V Introduce the student to the knowledge of the principles, techniques and philosophy in the
formulation of mathematical models of linear programming.
V Apply methodologies in the formulation and solution of transportation problems, with a critical
and responsible attitude, assessing their importance in business management.
V Provide students with quantitative optimization techniques in the field of engineering for the
use of available resources through linear programming in decision making.
9
LINEAR PROGRAMMING
✓z
FIRST UNIT
OPERATIONS RESEARCH AND LINEAR PROGRAM
SPECIFIC OBJECTIVES
• Train students in the interpretation of the general model for linear programming, either
maximizing benefits or minimizing costs to achieve desired objectives in the company
through practical cases.
INTRODUCTION
The objective of the course is for the student to learn to recognize the typical problems of
Operations Research so that he or she knows which technician to turn to in each case, for an
adequate study and solution of the same.
As its name indicates, Operations Research (OR), or Operational Research, is the investigation
of the operations to be performed for the optimal achievement of the objectives of a system or its
improvement. This discipline provides and uses scientific methodology in the search for optimal
solutions, as support in decision-making processes, in terms of optimal decision-making and in
systems that originate in real life.
The term IO was first used in 1939 during World War II, specifically when the need
arose to investigate tactical and strategic air defense operations, given the incorporation
of a new radar during the German attacks on Great Britain.
The rapid advance of military technology means that British military executives and
administrators must turn to scientists for support and guidance in planning their defence.
The success of a small group of scientists working in conjunction with the military
executive in charge of operations on the “line” led to increased demand for their
services and the extension of the use of the methodology to the USA, Canada and
France, among others.
However, the origin of Operational Research can be considered as prior to the Industrial
Revolution, although it was during this period that the type of problems that Operational
Research tries to solve began to arise. Since the Industrial Revolution and over the
years, a functional and geographic segmentation of the administration has arisen, which
gives rise
Yo 10-YO
LINEAR PROGRAMMING
to the executive or integration function of the administration to serve the interests of the
system as a whole.
Operational Research takes time to develop in the field of industrial management. The
use of scientific methodology in industry was incorporated at the beginning of the 1950s,
starting with the 2nd Industrial Revolution, driven by advances in Communications and
Computing, which laid the foundations for automation, and above all by the economic
flourishing and well-being of that period.
The first developments of this discipline (IO) referred to problems of task ordering,
distribution of workloads, planning and allocation of resources in the military field in its
beginnings, later diversifying, and finally extending to industrial, academic and
governmental organizations.
ORSA Foundation- Degenera don. Chames, Duality, Lemke, Matrix form and
decomposition.
on IO. MIT.
military detection system.
IO. Case Ins. Fundamentals of genetic
ter. Cidode lectures
at University College Of Technol ogy algorithms, Holland.
on of London. Ackoff and
Churchman. Here are my
interior point
First results in methods tutorials
USA. Created by IO groups Full PL. Gomory.
IT and O RS on PL Karma rkar.
England
in the three armies
Foundation m
Monolevel Perceptron.
Founded on
RAND
Corporation. , Donald Doudas.
Algorithm
* SIM PLEX Danzig
Taboo Search.
15. Working Group, chaired r conference on the 10th in Glover. EPR. Rumelhart
by PMS Blacket Created for the industry. Case Institute
Minskyy
the study of radar-controlled of Technology, Cleveland . Multi-level Perceptron. GemyyKirpatrick
anti-aircraft defense systems. annealed amula
Characterization of ccindi don es
of optimality. Kuhn-Tucker.
Dantzig, Ordnance and Wolfe.
Historical Line
Currently, IoT is applied to the private and public sectors, industry, marketing systems,
financial systems, transportation systems, health systems, etc., in developed countries,
“on the way to” countries, and in third world countries.
There are several associations around the world that bring together people (students,
scientists and professionals) interested in the study and application of Operational
Research. The largest of all is INFORMS, from the United States of America, an
Yo 11-YO
LINEAR PROGRAMMING
association that was born from the union of the ORSA Operation Research Society of
America, with 8,000 members, and the TIMS = Institute of Management Science with
6,000 members. There are also Canadian, European, Latin American and Asian
Associations federated in IFORS, the International Federation of Operation Research
Societies. The
Yo 12-YO
LINEAR PROGRAMMING
Latin American Operations Research Association, ALIO, brings together most of the
Associations of Central and South America. There are dozens of different magazines
published around the world. There are postgraduate programs (master's and doctorate)
in the specialty, in America and Europe.
The steps to follow in the application of the scientific method (coinciding with those of
the General Systems Theory) are, in their simplest expression:
There are 4 administrative functions that have given rise to departments whose
objectives are:
Function Aim
Maximize the quantity of goods (services) produced and
Production
minimize the unit cost of production.
Marketing Maximize the quantity sold and minimize the unit cost of sales.
Yo 13-YO
LINEAR PROGRAMMING
The marketing department also needs a large inventory, but to sell as much as possible,
it must stock the widest variety of products. Reasons for disagreement with the
production department.
To minimize the capital needed to run the business, the Finance department must
reduce the amount of money "committed" by, most directly, reducing inventories. It is
proposed that inventories should increase or decrease in proportion to the fluctuation in
sales.
In contrast, when sales are low, neither production nor personnel require reducing
production or staff. It is in the interest of the staff to maintain production at as constant a
level as possible, since dismissals imply repercussions on staff morale, loss of qualified
personnel, and new costs of training new personnel when required. This translates into
producing up to inventory level when sales are low and depleting it when sales are high.
Objectives listed and defined in this way are difficult to put into practice because of their
inconsistency from the point of view of the organization and the system as a whole. It is
the task and responsibility of the executive (manager) to determine an inventory policy
that suits the interests of the entire company and not just one of the subordinate
functions. The task of organization and management requires that the SYSTEM be
considered as a whole and this is the essence of managerial work. The executive must
decide and will use some method to do so. You may want to hire an Operations
Researcher, who will presumably be qualified to use scientific research to support the
decisions that the executive must make. This support is especially necessary when it
comes to finding “optimal” solutions to problems that originate in organizations and
services in general.
In mathematical IO models, the decision variables can be integer or continuous, and the
objective and constraint functions are linear and nonlinear. The optimization problems
posed by these models gave rise to a variety of solution methods, each designed to
take into account the special mathematical properties of the model. The most prominent
and successful of these techniques is linear programming, where all functions,
objectives, and constraints are linear and all variables are continuous. Other techniques
that address other types of mathematical models are dynamic programming, integer
programming, non-linear programming, goal programming, network programming, etc.
In fact, all operations research techniques result in computational algorithms that are
iterative in nature. This means that
Yo 14-YO
LINEAR PROGRAMMING
The problem is solved in iterations and each new iteration brings the solution closer to
the optimal one. The iterative nature of algorithms often results in cumbersome and
tedious calculations. It is imperative that these algorithms be run on a computer.
The use of the computer as an essential instrument for solving IO models gave rise to a
prominent computational difficulty: that of the machine's rounding error. These errors
become more important as the number of iterations increases. The problem is even
more difficult when the model variables are restricted to integer values. Because the
computer does all calculations in floating point arithmetic (not integer), exact
representation of (some) integer values is not possible and appropriate tolerances must
be implemented to account for such inherent approximations.
Some mathematical models are so complex that it is impossible to solve them using any
of the available optimization algorithms. In such cases, it may be necessary to abandon
the search for the optimal solution and simply search for a good solution, using
heuristics. Most often, a heuristic applies short rules to produce a good solution to the
problem. The advantage of a heuristic over an exact optimization algorithm is that it is
generally faster to execute.
The model is the representation of a system according to the objectives of the study of
the system. That is, for a certain system objective, certain parts of the system are
relevant; and if the study objective changes, the relevant parts of the system will
probably be different. This implies that depending on the objective of the study, a
system can be represented by different models.
U = f(xi, Y, )
IO models can be represented with equations which, although they may seem complex,
have a very simple structure:
Yj: These are the controllable, or independent, variables with given values.
will depend on the interrelationships and values of the independent variables.
f : It is a function in X
^ and Yj .
One or more so-called constraint equations or inequalities are often required to express
the fact that some (or all) of the uncontrollable variables can be managed within certain
limits. For example, the machine time allocated to the production of a product will
always have a positive value, and will not be greater than the total time available or
allocated for that purpose; another example, the sum of money budgeted for
15 -YO
LINEAR PROGRAMMING
SUMMA
RY
Operations Research is a set of technical and scientific procedures applied to problems related to the
control of organizations or systems (man-machine) in order to produce solutions
that best serve the objectives of the entire organization. Therefore, Operational
Research basically has 3 characteristics: system approach, the use of
interdisciplinary teams and the adaptation of the scientific method.
ACTIVITIES
a. The term IO is used for the first time, specifically when the need arises to
investigate tactical and strategic air defense operations, given the incorporation
of a new radar.
V F
b. One of the steps to follow in the application of the scientific method of IO is the
optimal achievement of the objectives of a system or its improvement.
V F
c. In mathematical IO models, the most prominent and successful of these
techniques is linear programming, where all functions, objectives, and
constraints are linear and all variables are continuous.
to. The rapid advance of military technology means that military executives and
administrators must turn to scientists, in which country did this event occur:
a) Americans
b) Spaniards
c) Japanese
d) English
e) Russians
Yo 16
LINEAR PROGRAMMING
c) 1951
d) 1969
e) 1986
c. Dantzig's simplex algorithm through the SCOOP project was given in the year:
a) 1969
b) 1951
c) 1947
d) 1977
e) N. TO.
The term programming refers to the process of determining a particular program or plan
of action.
There are several optimization methods; some classical ones use differential calculus
and work well in many cases; non-classical ones, whose development is more recent,
are based on a series of models called Mathematical Programming Models, such as
linear programming models, integer programming models, non-linear programming
models, etc.
^ , ^ ^ ,………^
It is equal to the (algebraic) sum of partial contributions to each of the decision
variables, 1 2, 3
Yo 17
LINEAR PROGRAMMING
1 =1
aij = Technical coefficient of resource i of the j – th product.
V i = 1, 2, 3,………,m
x , ≥^
V i = 1, 2, 3,………,n
This means that the product, process, service is equal to or greater than
zero.
4. Proportionality
The flow quantities of the different items entering and leaving the activity are always
proportional to the level of the activity. If you want to duplicate this level, simply
duplicate all the corresponding flows.
5. Additivity
It is to specify that the activity system be complete in the sense that a complete
accounting can be made of each item by activity. To be precise, for each item, the
total quantity specified by the system as a whole is required to be equal to the sum
of the quantities entering the various activities minus the sum of the quantities
leaving.
Yo 18
LINEAR PROGRAMMING
∑
Subject to:
1 =1 ai
j Xj ≤ b^
Xj ≥0
V i = 1, 2, 3,………,m................Restrictions
V i = 1, 2, 3,………,n………Non-conditions
Negativity
z
min= ∑
J=1 CjXj ……………………. Objective Function
∑
Subject to:
1 =1 ai
j Xj ≤ b^
Xj ≥0
V i = 1, 2, 3,………,m................Restrictions
V i = 1, 2, 3,………,n………Non-conditions
Negativity
SUMMAR
Linear programming is the set Y of mathematical techniques that aim to resolve the
following situation: Optimize (maximize or minimize) an objective function, a linear
function of several variables, subject to a series of restrictions, expressed by
linear inequalities.
Maximizing can be changed to minimizing, and the meaning of inequalities. In a
linear programming problem the following are involved:
• The function z = ax + by is called the objective function and it is necessary to
optimize. In that expression x and y are the decision variables, while a, b and
c are constants.
• The constraints must be linear inequalities. Their number depends on the
availability or needs, which are: less than (< or ≤); at least… (> or ≥).
problem at hand. The character of inequality is imposed by limitations,
The optimal solution to the problem will be a pair of values (Xiy y^) from the
either direction.
•
feasible set that makes f(x, y) take the maximum or minimum value.
Yo 19-YO
LINEAR PROGRAMMING
ACTIVITIES
✓z..........................................................................................................................................11
a. The term programming is a plan of action.
FIRST UNIT.........................................................................................................................11
OPERATIONS RESEARCH AND LINEAR PROGRAM..................................................11
∑
C =X, j=1...................................................................................................................................19
1 =1...................................................................................................................................................19
= SECOND UNIT.................................................................................................................27
PRIMAL SOLUTION OF LINEAR PROGRAMMING.....................................................27
ENTER......................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................50
ENTER......................................................................................................................................50
Zj -.....................................................................................................................................51
ENTER......................................................................................................................................52
SALE........................................................................................................................................52
Zj -.....................................................................................................................................53
€ THIRD UNIT.....................................................................................................................55
DUALITY AND POST-OPTIMAL ANALYSIS.................................................................55
X, + 2X2 < 200..........................................................................................................................59
X, + X2 < 140............................................................................................................................59
X, > 0 ; X, > 0............................................................................................................................59
Y + Y > 30........................................................................................................................59
—• 2Y + Y > 50...........................................................................................................59
And, > 0 ; And, > 0....................................................................................................................59
FOURTH UNIT....................................................................................................................69
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING............................................69
2)........................................................................................................................................71
2)........................................................................................................................................72
3)........................................................................................................................................72
20 -YO
LINEAR PROGRAMMING
a) Objective Function
b) Constant
c) Non-negativity condition
d) ayb
e) N. TO.
a) Programming
b) Objective function
c) Restrictions
d) Non-Negativity Condition
e) oh b.
It consists of carefully reading the problem in question and clearly identifying its objective.
To solve it is recommended to prepare an information matrix:
It consists of symbolically representing all the parameters that enter into the formation of the
linear programming model.
x1
X2
Xm
It consists of defining the objective or goal that you wish to achieve. This function shows the
relationship between total production and the maximum utility to be achieved, or the minimum
cost to carry out said production or any other objective pursued.
Yo 21-YO
LINEAR PROGRAMMING
4. Statement of Restrictions
This part should be given special importance because it is the most important tool within the field
of operational research. It provides us with a mathematical treatment of the problems.
We are going to pose the problems in an abstract way through mathematical modeling that will
allow us to solve them numerically.
This part of operational research deals with the treatment of problems through
mathematical modeling of the problem. It is about optimizing systems based on certain
premises.
In every system there will be a set of variables and the relationships between these
variables.
1.5.2. Examples
1. We have type A tables with 2 m 2345 of wood, 1 hour of work and a profit of 80 soles
each, and type B with 1 m2 of wood, 3 hours of work and 50 soles of profit. If there are
600 m2 of wood and a maximum of 900 hours, determine how to obtain the maximum
benefit. Formulate the linear programming program.
Solution:
1) Information Matrix
4 Statement of Restrictions
2X1 + X2 ≤ 600
X1 + 3X2 ≤ 900
X1 ≥ 0; X2 ≥ 0
5 Formulation of the Non-Negativity Condition
2. Two types of devices A and B are manufactured in workshops 1 and 2. In each of the
workshops, 100 hours of work are done per week. Each device A requires 3 hours of
workshop 1 and one hour of workshop 2. And each device B, 1 and 2 hours
respectively. Each device A is sold for 100 soles and each device B for 150 soles.
Calculate the number of devices in each
Yo 22-YO
LINEAR PROGRAMMING
Solution:
Taking into account the following steps, we solve the problem: 1) Information
Matrix
4) Statement of Restrictions
3X1 + X2 ≤ 100
X1 + 2X2 ≤ 100
X1 ≥ 0; X2 ≥ 0
5) Formulation of the Non-Negativity Condition
Solution:
1) Information Matrix
Z
min = 0.50X1 + 0.30X2
4) Statement of Restrictions
10X1 + 10X2 ≥ 60
15X1 + 10X2 ≥ 90
Yo 23-YO
LINEAR PROGRAMMING
X1 ≥ 0; X2 ≥ 0
5) Formulation of the Non-Negativity Condition
4. Feed A and B are the two types of feed for cows. Food A costs 12 soles/ounce and
food B costs 8 soles/ounce. You want to minimize total food costs while meeting all
three vitamin restrictions. At least 30 units of vitamin P, 50 units of vitamin W and 60
units of vitamin Q are desired. Each ounce of A food provides 2 units of vitamin P, 4
units of vitamin W, and 7 units of vitamin Q. Food B provides 3 units of P, 3 units of
W, and 6 units of Q per ounce respectively. How many ounces of each food should
they buy? Formulate the linear programming program.
Solution:
1) Information Matrix
Total
Food A Food B
Vitamin P 2 3 30
Vitamin W 4 3 50
Vitamin Q 7 6 60
Price per device (S/) 12 8
Yo 24-YO
LINEAR PROGRAMMING
4) Statement of Restrictions
4X1 + 3X2 ≤ 50
2X1 + 3X2 ≤ 30
7X1 + 6X2 ≤ 60
X1 ≥ 0; X2 ≥ 0
5) Formulation of the Non-Negativity Condition
SUMMARY
To carry out the approach of a linear program, it is important to know whether the problem
is to increase profits, benefits, etc. (Maximize) or decrease costs, expenses, etc.
(Minimize). To do this, the following steps are taken into account:
7 1. Information Matrix
8 2. Definition of decision variables
3. Objective Function Formulation
4. Statement of Restrictions
5. Formulation of the Non-Negativity Condition.
ACTIVITIES
1. Rulisa produces type I and II cake dough. Type I is sold at 5 euros per kilo,
spending 1 euro on ingredients and 2 on labor. Type II is sold for 3 euros and both
the ingredients and the work cost 1 euro. To make dough, two types of activities
are needed: kneading and baking. Rulisa has 18 hours of kneading and 12 hours
of baking per week. Type I dough requires 2 hours of kneading and 3 hours of
baking, while type II dough requires 3 hours of kneading and 1 hour of baking. If
the amount of dough that can be sold is unlimited, it optimizes Rulisa's weekly
profits. Formulate the linear programming program.
2. INTEL company produces two computer devices, (product 1 and product 2) and
requires metal parts and electrical components. Management wants to determine
how many units of each product to manufacture to maximize profit. For every unit
of product 1, 1 unit of metal parts and 2 units of electrical components are required.
For every unit of product 2, 3 units of metal parts and 2 units of electrical
components are needed. The company has 200 units of metal parts and 300
electrical components. Each unit of product 1 gives a profit of $2 and each unit of
product 2 gives a profit of $3.00
3. A chocolate factory has 500 kg stored. chocolate, 100 Kg. of almonds and 85 Kg.
of fruits. It produces two types of boxes: type A contains 3 kg. chocolate, 1 Kg. of
almonds and 1
1 25-YO
LINEAR PROGRAMMING
Kg. of fruit; type B contains 2 kg. chocolate, 1.5 Kg. of almonds and 1 Kg. of
fruits. The prices of type A and B boxes are €13 and €13.50, respectively. How
many boxes of each type should you make to maximize your sales?
=
SECOND UNIT
PRIMAL SOLUTION OF LINEAR PROGRAMMING
J
SPECIFIC OBJECTIVES
• Provide the necessary knowledge for the optimal feasible solution, focusing on the
Dantzing algorithm as a basis for applying the simplex method to obtain the optimal
solution.
• Interpret the results of results in the cases of maximization and minimization.
• Identify the special cases of the optimal feasible solution and their respective interpretation
of results.
INTRODUCTION
—
The objective of this topic is for the student to learn to recognize Graphic methods and the
Simplex algorithm that helps make a decision by maximizing or minimizing with the optimal result.
The graphical method is a quick and easy way to solve Linear Programming problems, as long as
the model consists of two variables. For models with three or more variables, the graphical
method is impossible.
It consists of geometrically representing the restrictions, technical conditions and objective
function.
Yo 26-YO
LINEAR PROGRAMMING
2
1
a2X1 b2X2
+ ≤C2
Cn 1 + bnX
3 ≤ Cn 1
Maximizing can be changed to minimizing, and the meaning of inequalities.
In a linear programming problem the following are involved:
• The optimal solution to the problem will be a pair of values from the feasible set
Yo 27-YO
LINEAR PROGRAMMING
In a system where there are “n” variables and “m” constraints; a basic solution is
obtained by making (n + m) variables equal to zero and the values of the remaining
variables are determined by solving the “m” equations with “n” variables. The “n”
variables are called basic variables.
To find the solution of a linear program, it is necessary to execute two steps: first
the feasible region is found and then the optimal point (or points) on the feasible
region are found.
The optimal solution of a linear program has certain properties, the application of
which facilitates the task of calculating the optimal point (or points).
Theorem 1:
The set of all feasible solutions to the linear programming problem is a convex
1 28-YO
LINEAR PROGRAMMING
set.
Theorem 2:
The objective function reaches its maximum or minimum at an extreme point of
the convex set, generated by the set of feasible solutions to the linear
programming problem.
If it attains this maximum (minimum) at more than one extreme point, then it
takes the same value for every convex combination of these particular points.
Applications of these two theorems:
1. There is an extreme point of the convex polyhedron at which the objective
function has its maximum or minimum.
2. Each basic feasible solution corresponds to an extreme point of the convex
polyhedron.
3X1+5X2 ≤ 15
5X1+2X2 ≤ 10
X1, X2 ≥ 0
29 -YO
LINEAR PROGRAMMING
Solution
---------• p (0, 5) L2
From (2) If X1 = 0, X2 = 5
If X2 = 0, X1 = 2 ---------» p (2, 0)
3. We graph and find convex polygons; ≤ downwards or to the left with respect to the axis.
Yo 30-YO
LINEAR PROGRAMMING
4. We find the optimal solution taking into account the objective function and the points of the
equation, as follows:
Example 2:
X1, X2 ≥ 0
4X1+ 2X2 ≤ 280
Solution
✓z..........................................................................................................................................11
1. We equalize the inequalities like this:
FIRST UNIT.........................................................................................................................11
OPERATIONS RESEARCH AND LINEAR PROGRAM..................................................11
∑
C =X, j=1...................................................................................................................................19
1 =1...................................................................................................................................................19
= SECOND UNIT.................................................................................................................27
PRIMAL SOLUTION OF LINEAR PROGRAMMING.....................................................27
ENTER......................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................50
ENTER......................................................................................................................................50
31 -YO
LINEAR PROGRAMMING
Zj -.....................................................................................................................................51
ENTER......................................................................................................................................52
SALE........................................................................................................................................52
Zj -.....................................................................................................................................53
€ THIRD UNIT.....................................................................................................................55
DUALITY AND POST-OPTIMAL ANALYSIS.................................................................55
X, + 2X2 < 200..........................................................................................................................59
X, + X2 < 140............................................................................................................................59
X, > 0 ; X, > 0............................................................................................................................59
Y + Y > 30........................................................................................................................59
—• 2Y + Y > 50...........................................................................................................59
And, > 0 ; And, > 0....................................................................................................................59
FOURTH UNIT....................................................................................................................69
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING............................................69
2)........................................................................................................................................71
2)........................................................................................................................................72
3)........................................................................................................................................72
2. We determine two points of each of the equations to find the line of the equation, like this:
From (1) If X1 = 0, X2 = 80
If X2 = 0, X1 = 80
* p (0, 80)
L1
* p (80, 0)
Yo 32-YO
LINEAR PROGRAMMING
From (2) If X1 = 0, X2 = 60
If X2 = 0, X1 = 120
Zmax = X1+ 1.5X2 * p (0, 60)
-» p (120, 0)
Yo 33-YO
LINEAR PROGRAMMING
5X1+ X2 ≥ 15
X1, X2 ≥ 0
Solution
1. We equalize the inequalities like this:
5X1+ X2 = 15 (2)
2. We determine two points of each of the equations to find the line of the equation, like this:
✓z 11
FIRST UNIT * p (0, 3) L1 11
OPERATIONS RESEARCH AND • p(15, 0)
LINEAR PROGRAM 11
• p(0, 15)
∑
C =X, j=1 L2 19
• p(3, 0)
1 =1 19
= SECOND UNIT 27
PRIMAL SOLUTION OF LINEAR PROGRAMMING 27
ENTER 48
Zj - 48
Zj - 48
Zj - 50
ENTER 50
Zj - 51
ENTER 52
SALE 52
Zj - 53
€ THIRD UNIT 55
DUALITY AND POST-OPTIMAL ANALYSIS 55
X, + 2X2 < 200 59
X, + X2 < 140 59
34 -YO
LINEAR PROGRAMMING
X, > 0 ; X, > 0 59
Y + Y > 30 59
—• 2Y + Y > 50 59
And, > 0 ; And, > 0 59
FOURTH UNIT 69
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING 69
2) 71
2) 72
3) 72
3. We graph.
Yo 35-YO
LINEAR PROGRAMMING
NOTE:
In green: the points where the solution is located.
In red: the points that do not belong to the feasible region.
4. We find the optimal solution taking into account the objective function and the points of the
equation, as follows:
Example 4:
Let the following Linear Program be:
Zmin = 3X1+ 2X2
Subject to:
5X1+ 2X2 ≥ 20
36 -YO
LINEAR PROGRAMMING
2X1+ 4X2 ≥ 20
3X1+ X2 ≥ 9
X1, X2 ≥ 0
Solution
✓z..........................................................................................................................................11
1. We equalize the inequalities like this:
FIRST UNIT.........................................................................................................................11
OPERATIONS RESEARCH AND LINEAR PROGRAM..................................................11
∑
C =X, j=1...................................................................................................................................19
1 =1...................................................................................................................................................19
= SECOND UNIT.................................................................................................................27
PRIMAL SOLUTION OF LINEAR PROGRAMMING.....................................................27
ENTER......................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................50
ENTER......................................................................................................................................50
Zj -.....................................................................................................................................51
ENTER......................................................................................................................................52
SALE........................................................................................................................................52
Zj -.....................................................................................................................................53
€ THIRD UNIT.....................................................................................................................55
DUALITY AND POST-OPTIMAL ANALYSIS.................................................................55
X, + 2X2 < 200..........................................................................................................................59
X, + X2 < 140............................................................................................................................59
X, > 0 ; X, > 0............................................................................................................................59
Y + Y > 30........................................................................................................................59
—• 2Y + Y > 50...........................................................................................................59
And, > 0 ; And, > 0....................................................................................................................59
FOURTH UNIT....................................................................................................................69
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING............................................69
2)........................................................................................................................................71
2)........................................................................................................................................72
3)........................................................................................................................................72
2. We determine two points of each of the equations to find the line of the equation, like this:
Yo 37-YO
LINEAR PROGRAMMING
If X2 = 0, X1 = 10 ---------• p (10, 0)
3. We graph.
38 -YO
LINEAR PROGRAMMING
p (0.10)
p (2.5; 3.75) C
3- -
2- -
E p (10.0)
3
L3
L1
NOTE:
In green: the points where the solution is located.
In red: the points that do not belong to the feasible region.
4. We find the optimal solution taking into account the objective function and the points of the
equation, as follows:
Zmin = 3X1+ 2X2
p (0;10) = 3(0) + 2(10) = 0 + 20 = 20
p (2.5; 3.75) = 3(2.5) + 2(3.75) = 7.5 + 7.5 = 15 Min
p (10; 0) = 3(10) + 2(0) = 30 + 0 = 30
Yo 39-YO
LINEAR PROGRAMMING
✓z..........................................................................................................................................11
1. We equalize the inequalities like this:
FIRST UNIT.........................................................................................................................11
OPERATIONS RESEARCH AND LINEAR PROGRAM..................................................11
∑
C =X, j=1...................................................................................................................................19
1 =1...................................................................................................................................................19
= SECOND UNIT.................................................................................................................27
PRIMAL SOLUTION OF LINEAR PROGRAMMING.....................................................27
ENTER......................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................50
ENTER......................................................................................................................................50
Zj -.....................................................................................................................................51
ENTER......................................................................................................................................52
SALE........................................................................................................................................52
Zj -.....................................................................................................................................53
€ THIRD UNIT.....................................................................................................................55
DUALITY AND POST-OPTIMAL ANALYSIS.................................................................55
X, + 2X2 < 200..........................................................................................................................59
X, + X2 < 140............................................................................................................................59
X, > 0 ; X, > 0............................................................................................................................59
Y + Y > 30........................................................................................................................59
—• 2Y + Y > 50...........................................................................................................59
And, > 0 ; And, > 0....................................................................................................................59
FOURTH UNIT....................................................................................................................69
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING............................................69
2)........................................................................................................................................71
2)........................................................................................................................................72
40 -YO
LINEAR PROGRAMMING
3)........................................................................................................................................72
2. We graph
Yo 41-YO
LINEAR PROGRAMMING
L3
NOTE:
In green: the points where the solution is located.
In red: the points that do not belong to the feasible region.
3. We find the optimal solution taking into account the objective function and the points of the
equation, as follows:
Zmax = 10X1 + 40X2
p (0, 20) = 10(0) + 40(20) = 0 + 800 = 800
✓z
p (320/19; 300/19) = 10(320/19) + 40(300/19) = 800 MAX
11
FIRST UNIT 11
OPERATIONS RESEARCH AND LINEAR PROGRAM 11
∑
C =X, j=1 19
1 =1 19
= SECOND UNIT 27
LINEAR PROGRAMMING
Example 6:
* p (0, 1)
L2 Yo 43-YO
* p (2/3, 0)
LINEAR PROGRAMMING
NOTE:
In green: the points where the solution is located.
In red: the points that do not belong to the feasible region.
4. We find the optimal solution taking into account the objective function and the points of the
equation, as follows:
Zmin = 3X1+ 2X2
p (0, 3) = 3(0) + 2(3) = 0 + 6 = 6
p (4; 0) = 3(4) + 2(0) = 12
p (2/3, 0) = 3(2/3) + 2(0) = 2 + 0 = 2 Min
p (0, 1) = 3(0) + 2(1) = 0 + 2 = 2 Min
SUMMAR
Y
To perform the graphic method it is important to know the following steps:
6. The sign restrictions ≥ or ≤ are changed to =.
7. Zero is assigned to each variable in order to determine points.
8. Draw the straight line corresponding to each restriction on the plane. The region in
which each restriction is located.
9. The area corresponding to each restriction is defined by the sign corresponding to
each restriction (≥ or ≤). A point is evaluated before and after the drawn line. The
point that satisfies the inequality will indicate the corresponding area.
10. The feasible region is considered where there is intensity of encounters of the lines
depending on the definition of the sign.
ACTIVITIES
X1+ X2 ≤ 15
2000X1+ 3000X2 ≥ 24000
X1, X2
1000X1+ 500 X2 ≥ 10000
The Simplex method is one of the methods that exist for calculating linear programs and consists
of a process that follows a series of steps starting from an original board (which is posed almost
identically as in matrix inversion), originating others until having determined a solution that is
called the optimal solution.
2.2.1. Slack and Excess Variables
There are restrictions such as inequalities, where there is always an “excess” or “missing”
amount that we do not yet know but that will need to be assumed (considered as an
unknown), so that it compensates for the other member of the restriction. This unknown
variable will be calculated or not, depending on the optimization of the objective function.
The slack variable is the one that will be added to the constraint variables, if the sign of
the inequality is ≤.
The excess variable is the one that will subtract the variables generated consecutively
and will add the so-called artificial variables with the purpose of compensating them in the
restrictions if the sign is ≥.
Artificial Variable: It is the variable that will be generated when the consecutive variables
are subtracted from the restrictions if the sign is ≥ in which said variable will be
represented by λ and it is the one that will be added, considering that said variable has a
null value.
Yo 45-YO
LINEAR PROGRAMMING
+ ^ 2 + 0^3 +
2. Zmin = 2^1
^ + 0^3 + 0^4 + Mλ1 + Mλ
-
3^1+ ^2 ≥ 2 4^2
^
- =5
3^1+ ^
3 =2
2
^ +^
Mλ2
2^ + 3^
1 2 =2
– ^1 ^2 + λ
1 2 = 4
2^1+ +λ
2.2.3. The Simplex Algorithm + =2 Artificial Variable
Tabular Representation
3 ^2
=4
To represent the tabulation of the
simplex algorithm, the following steps are required:
Zmax = ^1 + 2^2
1. Let the following linear program be given the solution by the simplex algorithm.
2^1+ ^2 ≤ 4
^1- ^2 ≤ 6
SA:
Yo 46-YO
^ ≥ 0; ^ ≥0
LINEAR PROGRAMMING
1 2
1st Step:
^1- ^2 + ^4 = 6
=4
ENTER
C
SALE Ck Xk Bi
1 2 0 0
^ ^ ^ ^
1 2 3 4
0 ^3 4 2 1 1 0 α = 4/1 = 4
^
4
zi
0 6 1 -1 0 1 α = 6/-1 = -6
zi -G
0 0 0 0 0
-1 -2 0 0
Zj -
As it is a matter of maximization so that the row of
Zj -
It is chosen in the
The variable that should come out will be ^3 because it is the smallest positive. Don't
take the negatives into account. So the 2nd board is as follows:
Xk
Ck
1 2 0 0
^ ^ ^ ^
Bi j 1 2 3 4
^2
Ck
2 4 2 1 1 0
^
0 4 10 3 0 1 1
zi 8 4 2 2 0
Z-CJ 3 0 2 0
The intersection of the variable that enters and exits is the Pivot and the other values in
the same column are considered as the semi pivot /
Calculating on the second board:
Yo 47-YO
LINEAR PROGRAMMING
✓z..........................................................................................................................................11
FIRST UNIT.........................................................................................................................11
OPERATIONS RESEARCH AND LINEAR PROGRAM..................................................11
∑
C =X, j=1...................................................................................................................................19
1 =1...................................................................................................................................................19
= SECOND UNIT.................................................................................................................27
PRIMAL SOLUTION OF LINEAR PROGRAMMING.....................................................27
ENTER......................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................48
Zj -.....................................................................................................................................50
ENTER......................................................................................................................................50
Zj -.....................................................................................................................................51
ENTER......................................................................................................................................52
SALE........................................................................................................................................52
Zj -.....................................................................................................................................53
€ THIRD UNIT.....................................................................................................................55
DUALITY AND POST-OPTIMAL ANALYSIS.................................................................55
X, + 2X2 < 200..........................................................................................................................59
X, + X2 < 140............................................................................................................................59
X, > 0 ; X, > 0............................................................................................................................59
Y + Y > 30........................................................................................................................59
—• 2Y + Y > 50...........................................................................................................59
And, > 0 ; And, > 0....................................................................................................................59
FOURTH UNIT....................................................................................................................69
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING............................................69
2)........................................................................................................................................71
2)........................................................................................................................................72
3)........................................................................................................................................72
Yo 48-YO
LINEAR PROGRAMMING
Zj -
Watching the queue
Cj, on the 2nd board all are zeros and positive, therefore the
optimal solution has been reached.
^ +^ ≥2
SA:
4^ + ^ ≥ 4
1 2
^ ≥ 0; ^ ≥0
1 2
1 2
1st Step:
The system of equations is established where a base is presented:
4^1+ ^2 - ^4 + λ2 = 4
=2
Here the excess and artificial variables -^3; -^4; +λ1; +λ2 will be initially formed.
2nd Step:
The variables, their coefficients and costs or utilities, as well as the magnitudes of
the second member are arranged in an original board as follows:
ENTER
C
Ck Xk B λ1 λ2
5 6 0 0 M M
^ ^ ^ ^
1 2 3 4
λ1
λ2
M 2 1 1 -1 0 1 0 α = 2/1 = 2
SALE
Zi
4--------- M 4 4 1 0 -1 0 1 α = 4/4 = 1
7M 5M 2M -M -M M M
ZC 5M-5 2M-6 -M -M 0 0
Zj -
As it is a matter of minimization so that the row can be an optimal solution
It is chosen in the
M, in this case (5M) in this column is the variable ^1 so that this variable can enter,
Zj when it comes to minimization the highest positive value of the
it must exit, λ1 or λ2 as the case may be, for this it is necessary to do:
Yo 49-YO
LINEAR PROGRAMMING
Yo 50-YO
LINEAR PROGRAMMING
2 – 1(1) = 2 – 1 = 1
1 – 1 (1) = 1 - 1 = 0
1 – 1/4 (1) = 1 - 1/4 = 3/4
-1 – 0 (1) = -1 – 0 = -1
0 – -1/4 (1) = 0 + 1/4 = 1/4
1 – 0 (1) = 1 – 0 = 1
0 – 1/4 (1) = 0 - 1/4 = -1/4
The variable that should come out will be λ2 because it is the lowest positive value of
the α. So the 2nd board is as follows:
ENTER
Cl
Xk ^1 ^2 ^3 λ1 λ
5 6 0 0 M M
BI j
λ1
SALE Ck 2
Where:
CI = Initial coefficients (from the previous board)
CP = Pivotal coefficients (of what has been found) SP = Semi-pivot in this case -1/4
Yo 51-YO
LINEAR PROGRAMMING
1 – 4(-1/4) = 1 + 1 = 2
1 – 0 (-1/4) = 1 - 0 = 1
1/4 – 3 (-1/4) = 1/4 + 3/4 = 1
0 – -4 (-1/4) = 0 – 1 = -1
-1/4 – 1 (-1/4) = -1/4 + 1/4 = 0
0 – 4 (-1/4) = 0 + 1 = 1
1/4 – -1 (-1/4) = 1/4 - 1/4 = 0
Ck Xk
C ^
5 6
^
0
^
0
^
M M
Bi j 1 2 3 4 λ1 λ2
0 ^4
5
4 0 3 -4 1 4 -1
^
1
Zi
2 1 1 -1 0 1 0
Z-CJ
10 5 5 -5 0 5 -1/10
D 0 -1 -5 0 -M+5 -M
Zj -
Watching the queue
Cj, on the 3rd board all are zeros, negatives and more
negatives, therefore the optimal solution has been reached.
SUMMARY
To perform the Simplex Algorithm it is important to know the following steps:
1. For the sign restrictions ≥ or ≤ know what type of variable has to be used to
form the equation =.
2. Place the coefficients of the entire linear program plus the added variables.
3. According to the result Zj – Cj (Maximization) and Zj (Minimization) the
entering column will be defined.
4. Always keep in mind that to know which row enters the α's must be the
lowest positive value.
5. The solution must always be zeros and positive numbers
if it is maximization; zeros, negative numbers and
negative Ms if it is minimization to know that the last board of the simplex
algorithm has been reached.
6. On the last board, the Zj will demonstrate the results of the objective
function.
1 52-YO
LINEAR PROGRAMMING
ACTIVITIES
Zmax = ^1 + 2^2
^ + 3^ ≤ 18
^ +^ ≤8
SA:
1 2
2^ + ^ ≤ 14
1 2
^ ≥ 0; ^ ≥0
1 2
1 2
From the optimal solution using the simplex algorithm.
Zmin = 3^1 + ^2
^ + 2^ ≥ 5
^ +^ ≥2
SA:
1 2
^ ≥ 0; ^ ≥0
1 2
1 2
From the optimal solution using the simplex algorithm.
100^1+ 100^2 ≥ 5
SA:
25^1+ 100^2 ≥ 2
^1≥ 0; ^2≥0
From the optimal solution using the simplex algorithm.
^1+ 5^2 ≤ 10
SA:
2^1+ 3^2 ≤ 15
^1≥ 0; ^2≥0
€
THIRD UNIT
DUALITY AND POST-OPTIMAL ANALYSIS
Ji
SPECIFIC OBJECTIVES
• Provide theoretical knowledge related to the dual problem.
Yo 53—
LINEAR PROGRAMMING
INTRODUCTION
The objective of this topic is for the student to learn the concepts of duality since associated with each
linear problem there is another linear programming problem called dual problem (PD), which has
important properties and notable relationships with respect to the original linear problem, a problem that,
in contrast to the dual, is then called a primal problem (PP).
Duality is characterized because for every linear programming maximization program there exists an
equivalent minimization problem, and conversely; for every linear programming minimization problem
there exists an equivalent maximization problem.
The theoretical importance lies in the conceptualization that is not given of the mathematical relations
between the primal and the dual, which allows finding the solution of one of the problems and obtaining
at the same time the solution of its equivalent problem.
Primal Dual
Minimization
Maximization Restriction ≤
Restriction ≥ Restriction ≥
Restriction ≤ Availability
Objective Function: utility, Coefficients are the same but
profit, cost Primal coefficients transposed from the primal
c) The coefficients of the objective function of the dual problem are the terms independent of the
constraints or availabilities of the primal program.
d) The independent terms of the constraints or availabilities of the dual are the coefficients of the
objective function of the primal problem.
e) The technical coefficient matrix of the dual problem is the transpose of the technical matrix of the
primal problem.
f) The sense of the inequalities of the restrictions of the dual problem and the sign of the variables of
the same problem depend on the form of the sign of the variables of the primal problem and the
sense of the restrictions of the same problem. (See table).
g) If the primal program is a maximization problem, the dual program is a minimization problem.
h) The dual problem of a dual problem is the original primal program.
Yo 54-YO
LINEAR PROGRAMMING
3.2.1 Formulation of the Dual Program from Primal.
Next, a dual program will be developed from the primal to analyze the development of
transposing a linear program and turning it into a dual program.
The Electronic Company SA produces radios and televisions. Each radio is sold with a profit of
30 soles while each television sold earns 50 soles. Both products must pass through departments
A and B (circuit printing and assembly) monthly, 200 and 140 hours/month are available for
departments A and B respectively.
Each radio requires 1 hour of A and 1 hour of B, each television requires 2 hours of A and 1 hour
of B. What is the production schedule that maximizes profit?
Solution:
Yo 55-YO
LINEAR PROGRAMMING
4. Statement of restrictions
X1 + 2X2 ≤ 200
X1 + X2 ≤ 140
5. Formulation of the Non-Negativity Condition
X1 ≥ 0; X2 ≥ 0
DUAL FORMULATION
X1
And^
+ 2X2 ≤ 200 Y \
X1+ X2 ≤ 140 Y where i = 1, …., m.
X1 ≥ 0; X2 ≥ 0
b. Primal resources are optimized, for this the objective function will be changed according to
the aforementioned table considering the new variables (Y):
Analyzing: If the electronics company had to rent its resources to another company, then it
has to find the value of the 200 hours of department A and 140 hours of department B. This
company that acquires the lease will try to minimize the value of the corresponding resources.
c. Regarding restrictions:
The combined value of the resources to produce a radio is: Y1 + y2, on the other hand, a radio
produces a profit of 30 soles to the company. So the combined value of all the resources
used to produce a radio is at least 30 soles: And
1 +y2 ≥ 30.
Similarly, the combined value of all resources to produce a television is: 2y1 +y2 ≥ 50.
y1 ≥ 0; y2 ≥ 0
56 -YO
LINEAR PROGRAMMING
Doing a Primal – Dual analysis:
SA: SA:
+ 21 = 30
SA:
Y1 Y2 -Y3
+
Yk
Cj 200 140 0 0 M M
Bt Y1 And^
TO
Ck 1 a2
AND AND to
M 30 1 1 -1 0 1 0 α = 30/1 = 30
1
M A2 50 2 1 0 -1 0 1 α = 50/2 = 25
Zj 80M 3M 2M -M -M M M
Zj - Cj 3M-200 2M-140 -M -M 0 0
TO
1
A
M 0 1/2 -1 1/2 1 -1/2 α = 5/1/2 = 10
5
200 25 1 1/2 0 -1/2 0 1/2 α = 25/1/2 =50
Zj 5M+5000 200 M/2+100 -M M/2-100 M -M/2+100
Y2
Zj - Cj 0 M/2-40 -M M/2-100 0 -3M/2+100
A
140 10 0 1 -2 1 2 -1
200 20 1 0 1 -1 -1 1
Zj 5400 200 140 -80 -60 80 60
Zj - Cj 0 0 -80 -60 -M+80 -M+60
Zmin = 5400
Yo 57-YO
LINEAR PROGRAMMING
2X1 + + 5X3 ≥ 30 AND
3X2 + X3 ≥ 4 Y2
X2
X1 +
X1 ≥ 0; X2 ≥ 0; X3 ≥ 0
Move on to the Dual Program.
✓z
SA:
11
FIRST UNIT 11
OPERATIONS RESEARCH AND LINEAR PROGRAM 11
∑
C =X, j=1 19
1 =1 19
= SECOND UNIT 27
PRIMAL SOLUTION OF LINEAR PROGRAMMING 27
ENTER 48
Zj - 48
Zj - 48
Zj - 50
ENTER 50
Zj - 51
ENTER 52
SALE 52
Zj - 53
€ THIRD UNIT 55
DUALITY AND POST-OPTIMAL ANALYSIS 55
X, + 2X2 < 200 59
X, + X2 < 140 59
X, > 0 ; X, > 0 59
Y + Y > 30 59
—• 2Y + Y > 50 59
And, > 0 ; And, > 0 59
FOURTH UNIT 69
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING 69
2) 71
2) 72
3) 72
Y1 ≥ 0; Y2 ≥ 0
Developing:
Yo 58-YO
LINEAR PROGRAMMING
4Y2 SA:
Zmax = 30Y1 + + 0Y3 + 0Y4 + 0Y5
2Y1 + Y2 +Y3
3Y2
= 10 (1)
Y1 Y4
5Y1 Y2
+ + = 18 (2)
+
+Y5 = 4
Y1 ≥ 0; Y2 ≥ 0
Alrea
Cj 30 4 0 0 0
ck Yk Bt Yi AND Y4 Y5
0 Y3 10 2 1 1 0 1 α = 10/2 = 5
AND
Ye
0 18 1 3 0 1 0 α = 18/1 = 18
0 4 5 1 0 0 1 α = 4/5 = 0,8
Zj 0 0 0 0 0 0
-30 -14 0 0 0
Y3
Zj - Cj
0 42/5 0 3/5 1 0 -2/5
AND,
AND.
0 86/5 0 14/5 0 1 -1/5
30 4/5 1 1/5 0 0 1/5
Zj 24 30 6 0 0 6
Zj - Cj 0 2 0 0 0
Yo 59-YO
LINEAR PROGRAMMING
Finding the optimal solution:
Zmax = 30Y1 + 4Y2 + 0Y3+ 0Y4 + 0Y5
Zmax = 24
SUMMAR
variables. Y
Thanks to the theorems that we will present below, the solution of one of the
problems (primal or dual) automatically provides us with the solution of the other
program.
Sensitivity Analysis is concerned with the quantification of the effects on the optimal solution of
changes in the parameters of the mathematical model. When we write a model, we assume
that the values of the parameters are known with certainty; but in reality, the values are not
always true, since, for example, variations in the costs of materials, labor, or the price of a
product cause changes in the coefficients of the objective function. Likewise, delays in
shipments from suppliers, strikes, unforeseen deterioration and other unforeseen factors will
generate changes in the availability of resources.
Changes in the mathematical model, which can sometimes be quantified without having to re-
solve the model, are related to: Changes in the coefficients of the decision variables in the
objective function (Gains per unit of decision variable) or Changes in the right-hand sides of the
restrictions that define the model. (Amount of available resources) The effects of changes in
the coefficients within the matrix are very difficult to quantify, and therefore in these cases it is
6
0
LINEAR PROGRAMMING
advisable to run the model again with the changes. First we will see when only one coefficient
changes; then we will see when several coefficients change simultaneously.
a. Linear programming models are often large and expensive, therefore they cannot
be used for a single case.
b. The elements given as data for a linear programming problem are most often
estimates, therefore it is necessary to investigate or take into account more than
one set of possible cases.
The analysis to be carried out will be done taking into account the greatest impact on
the optimal solution due to variations in the values of the parameters due to inaccuracy
in the estimates. We begin by investigating the consequences of the variations in the
coefficients of the objective function and available resources, then continue analyzing
the variations of the aij appearance of a new restriction or need to add a new variable.
3.3.4 Practical applications to find the primal solution, the dual and the variations of
the Bi (availabilities) and Cj (coefficients of the objective function).
A carpenter makes two types of wooden tables. Each type 1 table requires 4 hours of
primary machining (part preparation) and 4 hours of secondary machining (assembly
and varnishing). Similarly, each table of type 2 requires 3 hours of primary machining
and 7 hours of secondary machining. The daily availabilities of primary and secondary
machining are 40 and 56 machine hours respectively. The sale of a table of type 1
brings a profit of 70 euros, while the sale of a table of type 2 brings a profit of 90
euros.
Machining time
Daily availability
(hours)
(machine hours)
Type of table Type 1 Type 2
Primary machining 4 3 40
Yo 61—
LINEAR PROGRAMMING
Secondary machining 4 7 56
Profit (€) 70 90
It is about determining the number of tables of each type that must be produced daily
to maximize the profit obtained.
Yo 62—
LINEAR PROGRAMMING
B, AND, Yz
Ci 40 56 0 0 M M
ck Yk And^ 1 2
TO
AND to to
M 70 4 4 -1 0 1 0 α = 70/4 = 17,5
1
M A2 90 3 7 0 -1 0 1 α = 90/7 = 12,9
Zj 160M 7M 11M -M -M M M
TO
Zj - Cj 7M-40 11M-56 -M -M 0 0
M 130/7 16/7 0 -1 4/7 1 -4/7 α = 65/8 = 8,1
1
56 AND 90/7 3/7 1 0 -1/7 0 1/7 α = 30
Zj 130M/7+720 16M/7+24 56 -M 4M/7-8 M -4M/7+8
Zj - Cj 16M/7-16 0 -M 4M/7-8 0 -11M/7+8
A
40 65/8 1 0 -7/16 1/4 7/16 -1/4
56 75/8 0 1 3/16 -1/4 -3/16 1/4
Zj 850 40 56 -7 -4 7 4
Zj - Cj 0 0 -7 -4 -M+7 -M+4
Optimal Program:
Zmin = 850
Y1 = 65/8
Y1= 75/8; And the other variables are zeros.
LI = Cj - V Cj LS = Cj + △ Cj
(To Bi)
Yo 63-YO
LINEAR PROGRAMMING
Applying:
Sensitivity analysis of the functional coefficients. Applying the primal solution of the previous example, that is;
maximizing.
Ck X X X X X
Cj 600 1000 0 0 0
Bt X4
k 1 2 3 5
1000 X2 500 0 1 1,25 -2,5 0
6000 X 1 600 1 0 -1,5 5 0
0 X5 180 0 0 0,05 -0,5 1
Zj 860000 600 1000 350 500 0
Zj – Cj 0 0 350 500 0
aik>0 aik<0
Variation C1:
- (500) ≤ △ Cj ≤ -(350)
5 -1,25
- 100 ≤ A Cj ≤ 233.33
LS = (600+233.33)X1 + 1000X2
LS = 823.33X1 +56X2
LI = (600-100)X1 + 100X2
LI = 500X1 + 1000X2
Variation C2:
- (350) ≤ A Cj ≤ -(500)
1,25 -2,5
- 280 ≤ A Cj ≤ 200
LS = 600X1 + (1000+200)X2
LS = 600X1 + 1200X2
LI = 600X1 + (1000-280)X2
LI = 600X1 + 720X2
Interpretation:
The coefficients of the first variable of the functional can vary from 500 to 833.33 and the optimal solution does
not vary.
The coefficients of the second variable of the functional can vary from 720 to 1200 and the optimal solution
does not vary.
Yo 64-YO
LINEAR PROGRAMMING
Analysis of variation in Bi-availabilities. Dual Board from the previous example:
C 40 56 0 0 M M
Ck Yk Bt AND, Y2 AND Y4
to
1 2
to
40 65/8 1 0 -7/16 1/4 7/16 -1/4
AN
56 75/8 0 1 3/16 -1/4 -3/16 1/4
Zj 850 40 56 -7 -4 7 4
Zj – Cj 0 0 -7 -4 -M+7 -M+4
aik<0 aik>0
Variation B1:
- (-7) ≤ Bi ≤ -(-4)
- 7/16 1/4
aik<0 aik>0
- 16 ≤ Bi ≤ 16
LS = (40+16)y1 +56Y2
LS = 56Y1 +56Y2
LI = (40-16)Y1 +56Y2
LI = 24Y1 +56Y2
Variation B2:
- (-4) ≤ Bi ≤ -(-7)
- 1/4 3/16
aik<0 aik>0
- 16 ≤ A Bi ≤ 37.33
LS = 40Y1 + (56+37.33)Y2
LS = 40Y1 +93.33Y2
Yo 65-YO
LINEAR PROGRAMMING
LI = 40Y1 + (56-16)Y2
LI = 24 y1 + 40 Y2
SUMMARY
Sensitivity analysis is carried out on: Changes in the levels of scarce resources. Changes in the
coefficients of the objective function (coefficients of basic variables and coefficients of non-basic
variables). Changes in technological coefficients (variations in aij for basic and non-basic
variables). Removing and adding restrictions. Adding new variables.
ACTIVITIES
Zmax = ^1 + 2^2
1. Let the following linear program be:
^ + 3^ ≤ 18
^ +^ ≤8
SA:
1 2
2^ + ^ ≤ 14
1 2
^ ≥ 0; ^ ≥0
1 2
1 2
Move to the dual program and perform your sensitivity analysis.
Zmin = 3^1 + ^2
2. Let the following linear program be:
^ + 2^ ≥ 5
^ +^ ≥2
SA:
1 2
^ ≥ 0; ^ ≥0
1 2
1 2
Move to the dual program and perform your sensitivity analysis.
100^1+ 100^2 ≥ 5
SA:
25^1+ 100^2 ≥ 2
^1≥ 0; ^2≥0
Move to the dual program and perform your sensitivity analysis.
^ + 5^
SA:
1 2 ≤ 10
1 66—l
LINEAR PROGRAMMING
2^1+ 3^2 ≤ 15
^1≥ 0; ^2≥0
Move to the dual program and perform your sensitivity analysis.
FOURTH UNIT
SPECIAL APPLICATIONS OF LINEAR PROGRAMMING
SPECIFIC OBJECTIVES
• To provide the student with theoretical knowledge related to the special applications of
linear programming.
• Solve the transportation and assignment cases to find the expected profitability values.
• Apply algorithms derived from linear programming in specific cases.
INTRODUCTION
The transportation problem is a special type of problem within linear programming and has
to do with determining and establishing optimal schemes for transporting merchandise or
products already known from supply locations to locations where they are required, and with
the knowledge of the individual costs proportional to the quantity transported, the total cost
can be found with the sum of all these particular costs.
1 67-YO
LINEAR PROGRAMMING
C1
1 2 3 4
1 C11 C12 n a1
C21 C22 C2 a2
n1
2
m C^1 C^2 c
-mn A.
M
bj bj bj bj
There are several methods to determine an initial basic feasible solution which vary in
time to determine the solution.
1. When a real transportation problem is out of balance, adding either artificial origins
follows: ∑ a = ∑ bj
or destinations balances it.
2. A flow matrix is constructed as ^
3. At position 1,1 which is the northwestern end of the matrix, assign the minimum (a
1; b1) subtract X11 from the supply a1 or the demand b1 , obviously one of
these quantities becomes zero.
4. If a1 is less than b1, it will go to position (2,1) and do X21= MIN
PROBLEM:
A soft drink company wants new markets. This company has factories in A, B, C and
wants to supply these markets, whose warehouses are in: W, X, Y and Z; the monthly
capacities of the factory are 100, 150 and 170 units respectively.
The unit shipping costs are as follows:
Yo 68-YO
LINEAR PROGRAMMING
Destination
W X AND Z
Origin
TO 12 20 12 5
B 17 14 21 10
C 16 15 15 5
Determine an initial basic feasible solution and minimum total cost using the N – O
corner method.
Solution:
1. First, place the data clearly in our operations table.
2. Our chart must be balanced, that is, the origins must be equal to the destinations.
to
a
X11
1
= min (100; 70)
b^ = 100 – 70 = 30
=
1-
___ai;b^
We move to the cell below We
6- e —
AA o-
——
a9
= min (a
X12
1;b 2)
to
= min (30; 90) = 30
1 <b2—► b
X11
2 =b
2 -a1 = 60
we move to cell (2, 2)
1 69-YO
LINEAR PROGRAMMING
= min (a
1;b
X22
2)
to
X22= min (150; 60) = 30
1 <b2—► a
2 =a
2 -b2 = 90
We move to cell (2, 3)
w X AND Z
T 12
O
20 12 5
30
B
17 14 21 10
* 150
C
16 15 15 20
170
b1 70 90 120 140
to
X23= min (
2;b3)
X23
= min (90; 1200) = 90
b3
w X AND Z a1
T 12
O
20 12 5
30
B
17 14 21 10
150
C
16 15 15 20
* 170
b1 70 90 30 140
3;b
to
X33= min (
3)
Yo 70-YO
LINEAR PROGRAMMING
to
= min (170; 30) = 30
3 >a2—► a
X33
3 =a
3 -b2 = 140
We move to cell (3, 4)
X11= 70 x 12 = 840
X12= 30 x 20 = 600
X22= 60 x 14 = 840
X23= 90 x 21 = 1890
X33= 30 x 15 = 450
X34= 140 x 20 = 2800
CT = 7420
The minimum Total Cost is equal to 7420 new soles.
The other variables assume the value of 0 (zero)
The minimum cost method is an algorithm developed with the aim of solving
transportation or distribution problems, yielding better results than methods
such as the northwest corner method, since it focuses on routes that present
lower costs. The flow chart of this algorithm is much simpler than the previous
ones since it simply involves assigning the largest possible number of units
(subject to supply and/or demand restrictions) to the least expensive cell in the
entire matrix until the method ends.
PROBLEM:
A Peruvian energy company has four generating plants to meet the daily
electricity demand in four cities: Lima, Arequipa, Ancash and Ica. Plants 1, 2, 3
and 4 can satisfy 80, 30, 60 and 45 million KW per day respectively. The needs
of the cities of Lima, Arequipa, Ancash and Ica are 70, 40, 70 and 35 million
kW per day
Yo 71-YO
LINEAR PROGRAMMING
respectively.
The costs associated with sending energy supplies per million kW between
each plant and each city are recorded in the following table.
Formulate a linear programming model that can meet the needs of all cities
while minimizing the costs associated with transportation.
Solution:
Then that assigned amount is subtracted from the demand of Arequipa and the
supply of "Plant 3", in a very logical process. Since Arequipa is left without
demand, this column disappears, and the first process is repeated.
3 6
Floor 2
30
o
cor
6 2 4
Floor 3
60
4 6 6
Floor 4
45
Demand 70 70 35
72 -YO
LINEAR PROGRAMMING
Floor 1
Floor 2
Floor 3
Floor 4
Demand
Floor 1
Floor 2
Floor 3
Floor 4
Demand
Floor 1
Floor 2
Floor 3
Floor 4
Demand
Yo 73-YO
LINEAR PROGRAMMING
Once the previous table is finished, we will realize that there will only be one row left,
therefore we assign the units and the method is finished.
Floor 1
Floor 2
Floor 3
Floor 4
Demand
The table of assignments (which we must develop in parallel) looks like this:
Floor 1 25 50 5
80
Floor 2 30
30
Floor 3 40 20
60
Floor 4 45
45
Demand 70 40 70 35
The costs associated with distribution are:
X11 25 5 125
X12 0 2 0
X13 50 7 350
X14 5 3 15
X21 0 3 0
X22 0 6 0
X23 0 6 0
X24 30 1 30
X31 0 6 0
X32 40 1 40
X33 20 2 40
X34 0 4 0
Yo 74-YO
LINEAR PROGRAMMING
X41 45 4 180
X42 0 3 0
X43 0 6 0
X44 0 6 0
TOTAL 780
The method consists of carrying out an algorithm that consists of 3 fundamental steps
and 1 more that ensures the cycle until the culmination of the method.
1. Step 1:
For each row and column, determine a penalty measure by subtracting the two lowest
costs in rows and columns.
2. Step 2:
Choose the row or column with the highest penalty, that is, from the subtraction
performed in "Step 1" the highest number must be chosen. In case of a tie, a choice must
be made arbitrarily (based on personal judgment).
3. Step 3
From the row or column with the highest penalty determined in the previous step, we
must choose the cell with the lowest cost, and assign the largest possible number of units
to it. Once this step is completed, an offer or demand will be satisfied, therefore the row
or column will be crossed out. In the case of a tie, only 1 will be crossed out, and the
remaining row or column will have an offer or demand equal to zero (0).
PROBLEM:
A Peruvian energy company has four generating plants to meet the daily electricity demand
in four cities: Lima, Arequipa, Ancash and Ica. Plants 1, 2, 3 and 4 can satisfy 80, 30, 60
and 45 million KW per day respectively. The needs of the cities of Lima, Arequipa, Ancash
and Ica are 70, 40, 70 and 35 million kW per day respectively.
The costs associated with sending energy supplies per million kW between each plant and
each city are recorded in the following table.
Yo 75-YO
LINEAR PROGRAMMING
Formulate a linear programming model that can meet the needs of all cities while
minimizing the costs associated with transportation.
Solution:
The first step is to determine the penalty measures and record them in the cost table, as
shown below.
Floor 1 5 2 7 3 80 1
Floor 2 3 6 6 1 30 2 The two lowest
values in the row,
Floor 3 6 1 2 4 60 1 2 and 3. These are
Floor 4 4 3 6 6 45 1 subtracted (2 – 3)
Absolute value =
Demand 70 40 70 35 1
Penalty 1 1 4 2
The two lowest values in the column, 3 and 4
These values are subtracted (3 – 4). Absolute values =
1
Yo 76-YO
LINEAR PROGRAMMING
In this step we choose the highest penalty “4”, and proceed to select the column or row to
which it corresponds.
The next step is to choose the lowest value from this column, and in a parallel table the
largest possible number of units is assigned to it. We can see that the lowest cost is "2" and
that a maximum of 60 units can be assigned to that cell, "which is the capacity of plant 3."
Since the "Plant 3" row has already allocated all its capacity (60 units) it must disappear.
Yo 77-YO
LINEAR PROGRAMMING
Floor 4 4 3 6 6 45 1
Demand 70 40 10 35
Penalty 1 1 4 2
The row corresponding to the Plant that has no units left is eliminated; also, we observe
how Ancash's demand changes; now it only needs 10 units, since the amount already
assigned is subtracted.
The end of the cycle has been reached, therefore the process is repeated.
Lime Arequipa Ancash Ica Offer Penalty
Floor 1 5 2 7 3 80 1
Floor 2 3 6 6 1 30 2
Floor 4 4 3 6 6 45 1
Demand 70 40 10 35
Penalty 1 1 0 2
Penalty 1 1 0 2
Yo 78-YO
LINEAR PROGRAMMING
SOLUTION CHART
Lime Arequipa Ancash Ica Offer Penalty
Floor 1 80
Floor 2 30 30
Floor 3 60 60
Floor 4 45
Demand 70 40 70 35
Penalty
Therefore we assign in this cell the largest number of units possible, that is, 30,
given the capacity of “Plant 2”
Floor 4 4 3 6 6 45 1
Demand 70 40 70 35
Penalty 1 1 0 2
Since “Plant 2” has run out of units, it is eliminated and Ica’s demand is now 35 –
30 = 5.
Yo 79-YO
LINEAR PROGRAMMING
We can see how the demand for Ica is satisfied, therefore it will disappear, likewise the
supply of plant 1 is limited to 80 – 5 = 75 units.
SOLUTION CHART
Lime Arequipa Ancash Ica Offer
Floor 1 40 5 80
Floor 2 30 30
Floor 3 60 60
Floor 4 45
Demand 70 40 70 35
Yo 80-YO
LINEAR PROGRAMMING
SOLUTION CHART
Lime Arequipa Ancash Ica Offer
Floor 1 40 5 80
Floor 2 30 30
Floor 3 60 60
Floor 4 45 45
Demand 70 40 70 35
Demand 25 10
Penalty 1 1
At the end of this iteration we can see how the table has one row left uncrossed and with
positive values, therefore we assign the basic variables and have concluded the method.
Yo 81-YO
LINEAR PROGRAMMING
SOLUTION CHART
Lime Arequipa Ancash Ica Offer
Floor 1 25 40 10 5 80
Floor 2 30 30
Floor 3 60 60
Floor 4 45 45
Demand 70 40 70 35
Now we can observe how each demand is satisfied without exceeding the levels
established by the supply of each Plant.
The costs associated with distribution are:
Floor 1 Lim
e
Floor 2 Arequip
a
Floor 3 Ancas
h
Floor 4 Ica
Yo 82-YO
LINEAR PROGRAMMING
The goal is to determine which task is assigned to each worker such that the total cost is
minimum and the constraints that each task can only be assigned to one worker and that
each worker can only perform one task are respected.
In the assignment problem, the number of tasks is considered equal to the number of
workers. If there are more tasks than workers, it is possible to define fictitious workers
(with very high costs). Once an assignment to real workers is obtained, the
corresponding tasks can be eliminated from the problem, so that either a second
assignment to real workers or new workers can be found. Similarly, it is common to
define dummy tasks when there are more workers than tasks, so that real tasks are
83-YO
LINEAR PROGRAMMING
assigned to the most efficient workers; once real tasks are assigned to a subset of
workers, idle workers can be given new tasks (possibly in new jobs) or fired.
The allocation problem can also be posed in terms of benefits. Suppose we have n
workers and n tasks that we must assign to them. A benefit aij is obtained for each task i
performed by worker j. As before, a task can only be assigned to one worker and a
worker can only perform one task. In this case we want to know what task to assign to
each worker so that the total profit is maximized. For this case, we have a benefits
matrix:
Yo 84-YO
LINEAR PROGRAMMING
between each cost and the minimum value of the column to which each cost
corresponds will be recorded, a matrix called "Reduced Cost Matrix".
PROBLEM:
Yo 85-YO
LINEAR PROGRAMMING
SOLUTION:
1. STEP 1
We find the smallest element of each row
Minor element of
Machine 1 Machine 2 Machine 3
the row
Team of
10 9 5 5
Maintenance 1
Maintenance
9 8 3 3
Team 2
Maintenance
6 4 7 4
Team 3
2. STEP 2
We build a new matrix with the differences between the values of the original matrix
and the smallest element of the row to which it corresponds.
((9 – 3) (8 – 3) (3 – 3))
((6 – 4) (4 – 4) (7 – 4))
In the matrix built in the previous step, step 1 is carried out this time in relation to the
columns, therefore we choose the smallest element of each column. We also build a
new matrix with the difference between the values of matrix 2 and the smallest element
of the column to which each value corresponds.
Yo 86-YO
LINEAR PROGRAMMING
Maintenance
2 0 3
Team 3
Minor element of
2 0 0
the Column
Yo 87-YO
LINEAR PROGRAMMING
4. STEP 4
In this step we will draw the smallest number of combinations of horizontal and vertical
lines with the aim of covering all the zeros of the reduced cost matrix.
As can be seen, the smallest number of horizontal and/or vertical lines needed to cover
the zeros of the reduced cost matrix is equal to 2, therefore, since it is smaller than the
number of rows or columns, it is necessary to resort to step 5.
5. STEP 5
In this step we select the smallest element of the non-underlined elements.
Then we proceed to subtract from the non-underlined elements and add to the
elements located at the intersections of the lines, in this case there is a single
intersection (3).
Yo 88-YO
LINEAR PROGRAMMING
Now we see how it is necessary to draw three lines (the same number of rows
or columns of the matrix) and thus we have reached the final tabulation, in
which the optimal assignments are determined by simple observation.
Therefore, the assignment that represents the lowest cost for the preventive
maintenance day determines that Team 1 performs the maintenance of
Machine 1, Team 2 performs the maintenance of Machine 3, and Team 3
performs the maintenance of Machine 2, a day that will have a total cost of 17
monetary units.
SUMMARY
The Transport model seeks to minimize the cost of transporting goods from a
number of sources to various destinations; the supply at each source and the
demand at each destination are known. There are different types of transport
models to obtain the optimal result.
The Allocation problem consists of assigning or allocating different resources.
Strictly speaking, the problem is to dedicate a group of resources to different
purposes, so that all the purposes are achieved and only one resource is allocated to each of
them.
1 89-YO
LINEAR PROGRAMMING
ACTIVITIES
1. The company “Chemicos del Caribe SA” has 4 sulfur deposits that must be used to
manufacture 4 different types of products (A, B, C, D), in addition, for each liter
made of products A, B, C, and D, one liter of sulfur is used. It is known that the
capacities of each tank are 100L, 120L, 80L, 95L respectively. The company has an
order for 125L of substance A, 50L of substance B, 130L of substance C and 90L of
substance D. The costs that react the production of each chemical with each deposit
are presented below:
TO B C D
Device 1 2 3 4 6
Device 2 1 5 8 3
Device 3 8 5 1 4
Device 4 4 5 6 3
Formulate a Northwest method solution to this problem so that the order is fulfilled
and costs are minimized.
2. A company has four canneries supplying four warehouses, and management wants
to determine the minimum cost shipping schedule for its monthly production of
canned tomatoes. The supply from canneries, the demands from warehouses, and
the shipping costs per case of canned tomatoes are shown in the following Table:
Formulate a solution using the minimum cost method for this problem so that the
order is fulfilled and costs are minimized.
Yo 90-YO
LINEAR PROGRAMMING
Formulate a solution using Vogel's method for this problem so that the order is
fulfilled and costs are minimized.
PLANT
VICE PRESIDENT 1 2 3 4
Finance (F) 24 10 21 11
Marketing (M) 14 22 10 15
Operations (O) 15 17 20 19
Staff (P) 11 19 14 13
Establish the minimum cost allocation plan. Using the Hungarian method
Yo 91-YO