Linear Programming in Quantitative Problem-solving

P
R
O
F
.
 
D
R
.
 
V
E
D
A
T
 
C
E
Y
H
A
N
DOĞRUSAL OLMAYAN
PROGRAMLAMA
(DOP)
LİNEAR
PROGRAMMING(LP)
Farm planning
 
• Transportation problems,
• Stock control
• Personal programming
• Diet problems
• Mixture problems
• Financial planning
• Investment plannimg
• ...........
Scope
Appropriate for all problems that quantitatively
define
.
Po
s
itive 
and
 Normative Analysis
Positive analysis                       Current situation
    Regression analysis, input-output analysis etc.
Normative analysis                   Ideal situation
    Linear programming
Components of linear programming
1.
Objective function
2.
Alternatives
3.
Resources
Objectives
Maximization
     cropping pattern that produce maximum income
Minimization
     Input combination with minimum cost
Alternatives
  
All activities having different input-output
coefficient
1.
Production activities (wheat, dairy etc.)
2.
Sales activities
3.
Buying activities
4.
Renting activities 
(labor, land, credit etc.)
Input-Output Coefficient
Output production from one unit input
                                        Output / Input
Input: 
all things used for production.
Attention!! Please select the unit (hectare, kg, hours)
and use throughout the programming
Example 1
Resource and marketing restriction
Resource restriction
     Land, labor, capital, water, building, store etc.
Marketing restriction
Objective: 
Reaching maximum income or minmum cost
combination
Assumptions of LP
 
1.
Proportionality, (linearity)
2.
Divisibility
3.
Additivity
4.
Certainty
5.
Non-negativity
Formulation of LP problem
Problem statement
Defining objective
(maximization/minimization)
Defining restrictions
Defining decision variables (activities)
Writing objective function equation
Writing restriction equations
Mathematical presentation of problems
Solving LP model
Graphical solution (two activities)
Simplex algorithm (more than 2 activities)
   Hand (long time)
   Computer (quick)
Concepts of LP (1)
Optimum solution
 Solution that ensure the all restrictions
Optimum region
Region show the optimum solution
Slack (S)
 
unused resource
Unnecessary restrictions
Restriction does not affect the optimum solution
Concepts of LP (2)
Infeasible solution
    Situation is presence of no solution ensured the all
restriction
    
Reasons:
    1) High expectation,
    2) Large number of restriction
Concept of LP (3)
Unbounded solution
   The situation of increasing objective function till
infinite or vice versa.
   
Reasons:
    1) Inappropriate formulation of the problem,
    2) Inharmonious with real world
Basic equation (maximization)
 
1.
Production possibilities equation
2.
Profit equation
3.
Criteria equation
Example
Land= 
200 hectare
Capital= enough
Activities= Wheat and maize
Yield=   Wheat  
400 kg/da
               Maize
  
800 kg/da
Gross income= Wheat 
0.2 TL/kg
                            Maize
 
0.15 TL/kg 
Question:
For maximum gross
 
income how much land allocated to wheat
and maize?
Production possibilities equation
 
 
Girdi çıktı katsayılarının 1 kg ürün için hesaplandığına dikkat ediniz!!!!
 
 
Marginal
substitution
ratio
For 1 kg more
wheat, we
sacrifice 0.5 kg
wheat
Production possibility equation
Profit equation
 
 
Wheat
quantity
Maize
quantity
wheat
gross
income
maize
gross
income
Criteria equation
Criteria equation= if sign is + , increasing maize
production increase the gross income
Criteria equation= if sign is - , increasing maize
production decrease the gross income
Crop combination for maximum income
Slope PPC = Slope IRC
                              
(∆B/∆M) = (C
m
/C
b
)
 Slope PPC = Marginal rate of substitution (MRS)
 Slope IRC = slope of iso-revenue curve
Crop combination for maximum income
(Graphical solution)
Optimum
region
More than 1 restrictions
Example
Land= 
200 decare
Labor= 750 hours
Capital= Enough
Activities= Wheat and Maize
Yield= Wheat  400 kg/da
        Maize   800 kg/da
Gross income= Wheat 0.2 TL/kg
            Maize 0.15 TL/kg
Labor requirements: Wheat 2 hours/da
                       Maize 6 hors /da
İşletmenin brüt gelirini maksimum yapan üretim bileşimi nedir?
 
Labor restriction: 
Land restriction: 
Optimum
region
B = 80 000 – 0.5 M
B=150 000 – 1.5 M
Optimum combination
                                         
45
 ton wheat 
ve 
70
 ton maize
Gross income of optimum combination 
19500
 TL
 
Gross income (land allocated completely wheat) 
16000
 TL
Gross income (land allocated completely mai
z
e)  
15000
 TL
Mathematical presentation
Objective function   0.2 B + 0.15 M          Maximum
Subject to
                                                                     land
                                                                     labor
                             B ve M >= 0                 non-negati
vity
Minimum cost combination (Minimization)
Example
 Medicine production
Active matter: 
Avatec
 and 
Biotin
Prices:  Avatec    8 TL/g
                 Biotin     4 TL/g
Restrictions:
     1) total mixture will be larger than 
50 g
.
      2) Avatec will be at least 
20
 
g 
in mixture
      3) 
 Biotin will be maximum 
40 g. 
Objective: finding minimum cost combination
Minimum cost combination
Slope OB= Slope EMD
                              
(∆A/∆B) = (P
b
/P
a
)
 Slope OB = slope of iso product curve
 Slope EMD= slope of iso cost curve
Objective function: 
 
 Restrictions:
Decision
variable 1
Decision
variable 2
Optimum
region
Graphical presentation (minimization)
SİMPLEX ALGROTIMH
 In initial matrix, all activities level area 
“zero”
,  all resource avaliable
and gross income zero.
Activities are included into initial matrix one by one until reaching
optimum solution.
Data requirements
(i)
Net prices and gross income of all decision variable,
(ii)
Quantity of resource,
(iii)
 input-output coefficient of activities
Example
Land: 
15 dekar
,
Labor: 
48 hours
Working capital: 500 TL
Ectivities: maize (x1), soy beans (X2) and oat (X3) 
Karı maksimum yapan üretim bileşimi ?
 
 
Resource restriction and production possibilities
 
1x
1  
+  1x
2  
+  1x
3  
  
≤  15
6x
1  
+  6x
2  
+  2x
3  
  
≤  48
54x
1  
+  36x
2  
+  27x
3  
 
≤  500
1x
1     
+  1x
2     
+  1x
3    
 +  S
1 
 
˭
  15
6x
1     
+  6x
2     
+  2x
3    
 +  S
2 
 
 
˭
  48
54x
1  
+  36x
2  
+  27x
3  
+  S
3 
 
 
˭
  500
Objective function
 
          60 X
1
 + 45 X
2
 + 30 X
3    
Maximum
Subject to
1x
1  
+  1x
2  
+  1x
3  
  
≤  15
6x
1  
+  6x
2  
+  2x
3  
  
≤  48
54x
1  
+  36x
2  
+  27x
3  
 
≤  500
1x
1     
+  1x
2     
+  1x
3    
 +  S
1 
 
˭
  15
6x
1     
+  6x
2     
+  2x
3    
 +  S
2 
 
 
˭
  48
54x
1  
+  36x
2  
+  27x
3  
+  S
3 
 
 
˭
  500
Disposal slack
Initial matrix
Activities in LP
1.
Reel activities
2.
Slack
3.
Transfer activities
4.
Artificial activities
Reel Activities
1. 
All activities having different input-output
coefficient
1.
Production activities (wheat, dairy etc.)
2.
Sales activities
3.
Buying activities
4.
Renting activities 
(labor, land, credit etc.)
Slacks
Reflects the disposal resources
In objective function, take the value of zero.
Take the value of zero or positive values.
Use for transforming inequality
 
to equality.
Transfer activities
Crop produced in farm;
   
1. for other activity requirement
   2. Sale
Artificial activities
Use for ensuring optimum solution in minimization
problem.
Software automatically put “M” values for activities
Restrictions
Resource and input (land, labor, capital, building etc.)
External factors (government programs, legislation)
Farm preference (marketing restriction, lacking of
information etc.)
Cropping rotation and risk factor
Maximum frontier
180 >= 6 X
1
 + 4 X
2
 + 12 X
3
180 = 6 X
1
 + 4 X
2
 + 12 X
3
 + 1 X
4
Slack
Minimum frontier
Fodder crops will be more than 30 tones.
30 <= 2 X
1 
+ 3 X
2
 + 2 X
 3
30 = 2 X
1 
+ 3 X
2
 + 2 X
 3
 – 1 X
4
Slack 
(pay
attention to
negative sign)
Frontier in equation forms
Widely used. (Orchards etc.)
Example
    Fodder crops in 300 decares of farmland.
    Maize (X
1
),
    Rotation (maize+maize+oat+pasture) (X2)
    Soy bean (X
3
)
300 = 1 X
1 
+ 4 X
2
 + 1 X
 3
Meaning of inpu
t
-output coefficient
Positive (+)
    reflects the required resource quantity for increasing
quantity of activity by one unit. 
Negative (-)
    reflects the increase in resource
 
X1: Maize ve X2: labor hiring
(1)
= If maize increase by 1 decare, total farmland decrease by 1 decare.
(7) = If maize increase by 1 decare, labor quantity decrease by 7 hours.
Positive coefficient
Negative sign
1 hour labor hiring,
quantity of labor
increase by one hour
Programming models example
Production, harvest and sale activity
Production and sale activity together with
transfer activity
Intermediate crops and renting activities
Separating
 h
arvesting activity
Crop rotation
Combining crop rotation and sales activities
Production, harvest and sale activity
Land= 100 da, Labor= 6000 hours, (X
1
) = Maize production, harvest and sale
Unit: decare
Brüt gelir sırasındaki rakamlar yazılırken mısırın beklenen verimi (700 kg/da), birim fiyatı (= 0.50 TL/kg) ile çarpılmış ve bundan
modelde yer almayan diğer değişken masraflar (toprak hazırlığı, tohum gübre, ilaç vd. karşılığı olan 220 TL/da) düşülmüştür:
(700)(0.50) – 220 = 130 TL.
Production and sale activity together
with transfer activity
Intermediate crops and renting activities
Separating harvest activitiy
Data entry in LP (1)
Vegetable oil : B1 ve B2
Oils from animal: H1, H2 ve H3
Vegetable oil (X1) <=200 ton/months
Hayvansal yağ (X2) <= 250 ton/months
3<= sertlik derecesi <= 6
Product price= 150 TL/ton
Üretici, ürününü ne şekilde üretmelidir ki elde edeceği kâr en fazla
olsun?
 
Reduced Cost
   Reduced cost reflects the decrease in total profit when
one activity that is not in optimum plan is included
plan.
Slide Note
Embed
Share

Linear Programming (LP) is a powerful tool for solving quantitative problems, providing solutions for a wide range of scenarios such as farm planning, stock control, and financial planning. This method involves defining objectives, alternatives, and resources to maximize income or minimize costs efficiently. LP components include objective functions, alternatives, and resources, with analysis focusing on both current and ideal situations. The process requires input-output coefficients and considerations for resource and marketing constraints. Assumptions like proportionality and certainty guide the application of LP in real-world problem-solving.

  • Linear Programming
  • Quantitative Problems
  • Optimization
  • Resource Constraint
  • Problem-solving

Uploaded on Sep 20, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. DORUSAL OLMAYAN PROGRAMLAMA (DOP) PROGRAMMING(LP) L NEAR PROF. DR. VEDAT CEYHAN

  2. Scope Appropriate for all problems that quantitatively define. Farm planning Transportation problems, Stock control Personal programming Diet problems Mixture problems Financial planning Investment plannimg ...........

  3. Positive and Normative Analysis Positive analysis Current situation Regression analysis, input-output analysis etc. Normative analysis Ideal situation Linear programming

  4. Components of linear programming 1. Objective function 2. Alternatives 3. Resources

  5. Objectives Maximization cropping pattern that produce maximum income Minimization Input combination with minimum cost

  6. Alternatives All activities having different input-output coefficient 1. Production activities (wheat, dairy etc.) 2. Sales activities 3. Buying activities 4. Renting activities (labor, land, credit etc.)

  7. Input-Output Coefficient Output production from one unit input Output / Input Input: all things used for production. Attention!! Please select the unit (hectare, kg, hours) and use throughout the programming

  8. Example 1 Wheat Input-output coefficient Production (kg/da) production Input requirements (input requirements for 1 ton wheat)* activity Land (da) Fertilizer (kg) Land Fertilizer 1 1 2 1/0.2 2/0.2 200 =5 = 10 2 1 4 1/0.3 4/0.3 300 =3.33 =13.3 3 1 6 1/0.36 6/0.36 360 = 2.77 = 16.66

  9. Resource and marketing restriction Resource restriction Land, labor, capital, water, building, store etc. Marketing restriction Objective: Reaching maximum income or minmum cost combination

  10. Assumptions of LP 1. Proportionality, (linearity) 2. Divisibility 3. Additivity 4. Certainty 5. Non-negativity

  11. Formulation of LP problem Problem statement Defining objective(maximization/minimization) Defining restrictions Defining decision variables (activities) Writing objective function equation Writing restriction equations Mathematical presentation of problems

  12. Solving LP model Graphical solution (two activities) Simplex algorithm (more than 2 activities) Hand (long time) Computer (quick)

  13. Concepts of LP (1) Optimum solution Solution that ensure the all restrictions Optimum region Region show the optimum solution Slack (S) unused resource Unnecessary restrictions Restriction does not affect the optimum solution

  14. Concepts of LP (2) Infeasible solution Situation is presence of no solution ensured the all restriction Reasons: 1) High expectation, 2) Large number of restriction

  15. Concept of LP (3) Unbounded solution The situation of increasing objective function till infinite or vice versa. Reasons: 1) Inappropriate formulation of the problem, 2) Inharmonious with real world

  16. Basic equation (maximization) 1. Production possibilities equation 2. Profit equation 3. Criteria equation

  17. Example Land= 200 hectare Capital= enough Activities= Wheat and maize Yield= Wheat 400 kg/da Maize 800 kg/da Gross income= Wheat 0.2 TL/kg Maize 0.15 TL/kg Question: For maximum gross income how much land allocated to wheat and maize?

  18. Production possibilities equation 1 1 + = 200 B M 400 800 1 1 = 200 B M 400 800 = 80000 0 5 . B M Girdi kt katsay lar n n 1 kg r n i in hesapland na dikkat ediniz!!!!

  19. Production possibility equation Marginal substitution ratio For 1 kg more wheat, we sacrifice 0.5 kg wheat = 80000 0 . 5 B M B = MRS m b M B = 80000 B M M

  20. Profit equation wheat gross income maize gross income Wheat quantity Maize quantity = + Z C B C M 0 b m

  21. B = + 80000 C C ( M ) Z C 0 b m b M Criteria equation Criteria equation= if sign is + , increasing maize production increase the gross income Criteria equation= if sign is - , increasing maize production decrease the gross income

  22. Crop combination for maximum income Slope PPC = Slope IRC ( B/ M) = (Cm/Cb) Slope PPC = Marginal rate of substitution (MRS) Slope IRC = slope of iso-revenue curve

  23. Crop combination for maximum income (Graphical solution) a Optimum region

  24. More than 1 restrictions Example Land= 200 decare Labor= 750 hours Capital= Enough Activities= Wheat and Maize Yield= Wheat 400 kg/da Maize 800 kg/da Gross income= Wheat 0.2 TL/kg Maize 0.15 TL/kg Labor requirements: Wheat 2 hours/da Maize 6 hors /da letmenin br t gelirini maksimum yapan retim bile imi nedir?

  25. Land restriction: = 80000 0 5 . B M Labor restriction: 2 6 + = 750 B M 400 800 = B 150000 1.5M

  26. Optimum region

  27. B = 80 000 0.5 M B=150 000 1.5 M Optimum combination 45 ton wheat ve 70 ton maize Gross income of optimum combination 19500 TL Gross income (land allocated completely wheat) 16000 TL Gross income (land allocated completely maize) 15000 TL

  28. Mathematical presentation Objective function 0.2 B + 0.15 M Maximum Subject to 1 1 land + = 200 B M 400 800 labor 2 6 + = 750 B M 400 800 B ve M >= 0 non-negativity

  29. Minimum cost combination (Minimization) Example Medicine production Active matter: Avatec and Biotin Prices: Avatec 8 TL/g Biotin 4 TL/g Restrictions: 1) total mixture will be larger than 50 g. 2) Avatec will be at least 20 g in mixture 3) Biotin will be maximum 40 g. Objective: finding minimum cost combination

  30. Minimum cost combination Slope OB= Slope EMD ( A/ B) = (Pb/Pa) Slope OB = slope of iso product curve Slope EMD= slope of isocost curve

  31. Objective function: Decision variable 1 Decision variable 2 = + 8 4 min Z A B Restrictions: + 50 A B 40 20 B A

  32. Graphical presentation (minimization) Optimum region

  33. SMPLEX ALGROTIMH In initial matrix, all activities level area zero , all resource avaliable and gross income zero. Activities are included into initial matrix one by one until reaching optimum solution. Data requirements (i) Net prices and gross income of all decision variable, (ii) Quantity of resource, (iii) input-output coefficient of activities

  34. Example Land: 15 dekar, Labor: 48 hours Working capital: 500 TL Ectivities: maize (x1), soy beans (X2) and oat (X3) Kar maksimum yapan retim bile imi ? Gross production value (TL/decare) 112,5 75 55 Variable cost (TL/decare) 52,5 30 25 Labor Capital (TL/decare) 54 36 27 (hours/decare) 6 6 2 Maize Soy bean Oat

  35. Resource restriction and production possibilities Maize Soy bean Oat LAnd (decare) (15) 1 1 1 Labor (hours) (48) 6 6 2 Working capital (TL) (500) 54 36 27 1x1 + 1x2 + 1x3 6x1 + 6x2 + 2x3 54x1 + 36x2 + 27x3 500 1x1 + 1x2 + 1x3 + S1 6x1 + 6x2 + 2x3 + S2 54x1 + 36x2 + 27x3 + S3 15 48 15 48 500

  36. Objective function 60 X1 + 45 X2 + 30 X3 Maximum Subject to 1x1 + 1x2 + 1x3 6x1 + 6x2 + 2x3 54x1 + 36x2 + 27x3 500 15 48 Disposal slack 1x1 + 1x2 + 1x3 + S1 6x1 + 6x2 + 2x3 + S2 54x1 + 36x2 + 27x3 + S3 15 48 500

  37. Initial matrix Disposal resource Activities gross income and Resource activities or ? Land Labor Capital Maize Soy Oat ?? bean X2 45 S1 0 S2 0 S3 0 X1 60 X3 30 Quantity (B) Name 1 2 3.1 3.2 3.3 4.1 4.2 4.3 5 Initial plan(Plan 0) 0 0 0 ?? ?? ?? S1 S2 S3 15 48 500 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 6 54 0 -60 1 6 1 2 15 8 9.3 36 0 -45 27 0 -30

  38. Activities in LP 1. Reel activities 2. Slack 3. Transfer activities 4. Artificial activities

  39. Reel Activities 1. All activities having different input-output coefficient 1. Production activities (wheat, dairy etc.) 2. Sales activities 3. Buying activities 4. Renting activities (labor, land, credit etc.)

  40. Slacks Reflects the disposal resources In objective function, take the value of zero. Take the value of zero or positive values. Use for transforming inequality to equality.

  41. Transfer activities Crop produced in farm; 1. for other activity requirement 2. Sale

  42. Artificial activities Use for ensuring optimum solution in minimization problem. Software automatically put M values for activities

  43. Restrictions Resource and input (land, labor, capital, building etc.) External factors (government programs, legislation) Farm preference (marketing restriction, lacking of information etc.) Cropping rotation and risk factor

  44. Maximum frontier 180 >= 6 X1 + 4 X2 + 12 X3 Slack 180 = 6 X1 + 4 X2 + 12 X3 + 1 X4

  45. Minimum frontier Fodder crops will be more than 30 tones. Slack (pay attention to negative sign) 30 <= 2 X1 + 3 X2 + 2 X 3 30 = 2 X1 + 3 X2 + 2 X 3 1 X4

  46. Frontier in equation forms Widely used. (Orchards etc.) Example Fodder crops in 300 decares of farmland. Maize (X1), Rotation (maize+maize+oat+pasture) (X2) Soy bean (X3) 300 = 1 X1 + 4 X2 + 1 X 3

  47. Meaning of input-output coefficient Positive (+) reflects the required resource quantity for increasing quantity of activity by one unit. Negative (-) reflects the increase in resource

  48. ? Negative sign 1 hour labor hiring, quantity of labor increase by one hour ?1?2 Arazi 200 1 0 g c 80 7 -1 X1: Maize ve X2: labor hiring Positive coefficient (1) = If maize increase by 1 decare, total farmland decrease by 1 decare. (7) = If maize increase by 1 decare, labor quantity decrease by 7 hours.

  49. Programming models example Production, harvest and sale activity Production and sale activity together with transfer activity Intermediate crops and renting activities Separating harvesting activity Crop rotation Combining crop rotation and sales activities

More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#