Professional Documents
Culture Documents
02 1 Linear Programming Introduction 2018
02 1 Linear Programming Introduction 2018
(Module 4904-460)
Overview of Optimization
Outline
Objectives:
Optimization and Linear Programming is introduced with the help of a
simple example. A graphical approach is applied to solving the LP
problems.
Contents:
• Formulating LP problems
Characteristics
General mathematical form
• Examples
Graphical Solution
Anomalies
Main reference:
Ragsdale, CT (2008): Managerial decision modeling, chapter 2
3
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Farm management
• Management Science
What should we do?
Operations research, Decision
science, Decision support
Uses scientific methods to solve
business decision problems with
the help of computers, statistics,
and mathematics
Farm management as a sub
Farmers field, with specific methods and
applications, for example Whole
Farm Linear Programming
4
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
• Predictive
How will the system react to …?
• Prescriptive/Normative
What should we do to obtain the best solution…?
5
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Computer Modeling
Problem & Data Analysis
Conceptual model
Mathematical model
Computer model
Result interpretation 6
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Today:
Problem & Data Analysis
Spreadsheet
Computer model
(Excel, LibreOffice)
Result interpretation 7
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Mathematical Programming
• MP is a field of management science that finds
the optimal - or most efficient - way of using
limited resources to achieve the objectives of an
individual or of a business
• a.k.a. Optimization
Applications of Optimization
Conceptual model:
• Decisions
expressed as variables X1, X2, …
• Objectives
expressed as function involving X1, X2, …
to be maximized or minimized
• Constraints
expressed as equations or inequations involving X1,
X2, …
11
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Mathematical Model:
General Form of an Optimization Problem
Objective function:
MAX (or MIN): 0(X1, X2, …, Xn)
Constraints:
subject to: f1(X1, X2, …, Xn) <= b1
:
fk(X1, X2, …, Xn) >= bk
:
fm(X1, X2, …, Xn) = bm
Mathematical model:
Linear Programming (LP) Problems
MAX (or IN): c1X1 + c2X2 + … + cnXn
Subject to: a11X1 + a12X2 + … + a1nXn <= b1
:
ak1X1 + ak2X2 + … + aknXn >= bk
:
am1X1 + am2X2 + … + amnXn = bm
14
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Conceptual Model:
An Example Problem
Blue Ridge Hot Tubs produces two types of hot tubs:
Aqua-Spas & Hydro-Luxes
Aqua-Spa Hydro-Lux
Pumps 1 1
Labor 9 hours 6 hours
Tubing 12 feet 16 feet
Unit Profit $350 $300
There are 200 pumps, 1566 hours of labor, and 2880
feet of tubing available
Based on Ragsdale, Ch2 15
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Solving LP Problems:
An Intuitive Approach
Idea: Each Aqua-Spa (X1) generates the highest unit profit
($350), so let’s make as many of them as possible!
How many would that be?
Let X2 = 0
1st constraint: 1X1 <= 200
2nd constraint: 9X1 <= 1566 or X1 <=174
3rd constraint:
12X1 <= 2880 or X1 <= 240
If X2=0, the maximum value of X1 is 174 and the total profit is
$350*174 + $300*0 = $60,900
This solution is feasible, but is it optimal?
No!
Based on Ragsdale, Ch2 20
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
200
Boundary line of pump constraint
150 X1 + X2 = 200
100
50 (0,200)
0
0 50 100 150 200 250 X1 22
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
200
Boundary line of labor constraint
150
9X1 + 6X2 = 1566
100
50 (174,0)
0
0 50 100 150 200 250 X1 23
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
200
Boundary line of tubing constraint
150
12X1 + 16X2 = 2880
100
50 (240,0)
0
0 50 100 150 200 250 X1 24
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
200
Objective function
150 350X1 + 300X2= 35000
100
50 (100,0)
0
0 50 100 150 200 250 X1 25
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
50 (150,0)
0
0 50 100 150 200 250 X1 26
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Optimal solution
150
0
0 50 100 150 200 250 X1 27
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
0
0 50 100 150 200 250 X1 30
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
150
100
Alternate optimal solutions
50
0
0 50 100 150 200 250 X1 34
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
0
0 50 100 150 200 250 X1 35
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
600
400
200
X1 + X2 =
400
0
0 200 400 600 80 1000 X1 36
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Example of Infeasibility
X2
250
X1 + X2 = 200
200 Feasible region
for second
150 constraint
100
50 Feasible region
for first
constraint
X1 + X2 = 150
0
0 50 100 150 200 250 X1 37
Based on Ragsdale, Ch2
Institut für Tropische Agrarwissenschaften (490d): Farm System Modeling (4904-460)_Optimization
Assignment #1
• Reading:
Review Ragsdale chapter 2
http://www.wadsworthmedia.com/marketing/sample_chapters/
0324312504_ch02.pdf
Prepare Ragsdale chapter 3
Assignment #2
• Exercises (all on ILIAS):
Formulate the LP problems for
1. Farm problem 1 (Zeddies)
2. Farm problem 2 (Ragsdale)
3. Investment problem 1 (Ragsdale, Ch.)
40