basic lp problem formulations - texas a&m...

36
1 Basic LP problem formulations Notes for AGEC 622 Bruce McCarl Regents Professor of Agricultural Economics Texas A&M University

Upload: nguyenthuy

Post on 12-Mar-2018

222 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

1

Basic LP problem formulations

Notes for AGEC 622

Bruce McCarl

Regents Professor of Agricultural Economics

Texas A&M University

Page 2: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

2

Basic LP formulations

Linear programming formulations are typically composed of a number of standard problem types.

In these notes we review four basic problems examining their:

a. Basic Structureb. Formulationc. Example applicationd. Answer interpretations

The problems examined are the:a. Transportation problemb. Feed mix problemc. Joint products problemd. Disassembly problem

Page 3: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

3

Transportation ProblemMcCarl and Spreen Chapter 5

Basic Concept

This problem involves the shipment of a homogeneous product from a number of supply locations to a number of demand locations.

Supply Locations Demand Locations 1 12 2… …m n

Problem given needs at the demand locations how should I take limited supply at supply locations and move the goods. Further suppose we wish to minimize cost.

Objective: Minimize costVariables: Quantity of goods shipped

from each supply point to each demand point

Restrictions: Non negative shipmentsSupply availability at a supply pointDemand need at a demand point

Page 4: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

4

Transportation ProblemFormulating the Problem

Basic notation and the decision variable

Let us denote the supply locations as i

Let us denote the demand locations as j

Let us define our fundamental decision variable

as the set of individual shipment quantities

from each supply location to each demand

location and denote this variable

algebraically as Movesupplyi,demandj

Page 5: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

5

Transportation ProblemFormulating the Problem

The objective function:

We want to minimize total shipping cost so we need an expression for shipping cost

Let us define a data item giving the per unit cost of shipments from each supply location to each demand location as costsupplyi,demandj

Our objective then becomes to minimize the sum of the shipment costs over all supplyi, demandjpairs or

Minimize costsupplyi,demandjMovesupplyi,demandj

which is the per unit cost of moving from each supply location to each demand location times the amount shipped summed over all possible shipment routes

i jsupply demand

∑ ∑

Page 6: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

6

Transportation ProblemFormulating the Problem

There are three types of constraints:

1) supply availability limiting shipments from each supply point to existing supply so that the sum of outgoing shipments from the supplyith supply point to all possible destinations (demandj) to not exceed supplysupplyi

Movesupplyi,demandj supplysupplyi

2) minimum demand requiring shipments into the demandjth demand point be greater than or equal to demand at that point. Incoming shipments include shipments from all possible supply points supplyi to the demandjth demand point.

Movesupplyi,demandj demanddemandj

3) nonnegative shipmentsMovesupplyi,demandj 0

demandj∑ ≤

supplyi∑ ≥

Page 7: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

7

Transportation ProblemFormulating the Problem

Minimize costsupplyi,demandj Movesupplyi,demandj

s.t Movesupplyi,demandj supplysupplyi for all supplyi

Movesupplyi,demandj demanddemandj for all demandj

Movesupplyi,demandj 0 for all supplyi, demandj

supplyi demandj∑ ∑

demandj∑ ≤

supplyi∑ ≥

Page 8: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

8

Transportation ProblemExample: Shipping Goods

Three plants: New York, Chicago, Los Angeles

Four demand markets: Miami,Houston,Minneapolis,Portland

Quantity availability:

Supply Available Demand RequiredNew York 100 Miami 30Chicago 75 Houston 75Los Angeles 90 Minneapolis 90

Portland 50Distances:

Miami Houston Minneapolis Portland

New York 3 7 6 23

Chicago 9 11 3 13

Los Angeles 17 6 13 7

Transportation costs = 5 +5*Distance:Miami Houston Minneapolis Portland

New York 20 40 35 120

Chicago 50 60 20 70

Los Angeles 90 35 70 40

Page 9: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

9

Transportation ProblemExample: Shipping Goods

Minimize costsupplyi,demandj Movesupplyi,demandj

s.t Movesupplyi,demandj supplysupplyi for all supplyi

Movesupplyi,demandj demanddemandj for all demandj

Movesupplyi,demandj 0 for all supplyi, demandj

supplyi demandj∑ ∑

demandj∑ ≤

supplyi∑ ≥

Mov

e 11

Mov

e 12

Mov

e 13

Mov

e 23

Mov

e 24

Mov

e 31

Mov

e 32

Mov

e 33

Mov

e 34

Mov

e 14

Mov

e 21

Mov

e 22

20 40 35 120 50 60 20 70 90 35 70 40 Minimize1 1 1 1 < 100

1 1 1 1 < 751 1 1 1 < 90

+1 +1 +1 > 30+1 +1 +1 > 75

+1 +1 +1 > 90+1 +1 +1 > 50

Page 10: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

10

Transportation ProblemExample: Shipping Goods – Solution

shadow price represents marginal values of the resources

i.e.marginal value of additional units in Chicago = $15- reduced cost represents marginal costs of forcing non-

basic variable into the solutioni.e. shipments from New York to Portland costs $75

- twenty units are left in New York

Optimal Solution: Objective value $7,425Variable Value Reduced Cost Equation Slack Shadow PriceMove11 30 0 1 20 0Move12 35 0 2 0 -15Move13 15 0 3 0 -5Move14 0 75 4 0 20Move21 0 45 5 0 40Move22 0 35 6 0 35Move23 75 0 7 0 45Move24 0 40Move31 0 75Move32 40 0Move33 0 40Move34 50 0

Optimal Shipping PatternDestination

Miami Houston Minneapolis PortlandUnits Variable Units Variable Units Variable Units Variable

New York 30 Move11 35 Move12 15 Move13

Chicago 75 Move23

LA 40 Move32 50 Move34

Page 11: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

11

Feeding ProblemMcCarl and Spreen Chapter 5

Basic Concept

This problem involves composing a minimum cost diet from a set of available ingredients while maintaining nutritional characteristics within certain bounds.

Objective: Minimize total diet costsVariables: how much of each feedstuff is used

in the dietRestrictions: Non negative feedstuff

Minimum requirements by nutrientMaximum requirements by nutrientTotal volume of the diet

This problem requires two types of indices:Type of feed ingredients available from which the diet can be composed

ingredientj = {corn, soybeans, salt, etc.}

Type of nutritional characteristics which must fall within certain limits

nutrient = {protein, calories, etc.}

Page 12: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

12

Feeding ProblemBasic Concept

Variable -- Feed ingredientj amount of feedstuff

ingredientj fed to animal

Objective – total cost

We want to minimize total diet costs across all the feedstuffs so we need an expression for feedstuff costs.

Let us define a data item giving the per unit cost of ingredients as costingredientj.

Our objective then becomes to minimize the sum of the diet costs over all feed ingredients

Minimize costingredientj Feedingredientj

which is the per unit cost of ingredients summed over the feed ingredients.

∑ jingredient

Page 13: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

13

Feeding ProblemBasic Concept

Additional parameters representing how much of each nutrient is present in each feedstuff as well as the dietary minimum and maximum requirements for that nutrient are needed.

Let1). anutrient,ingredientj be the amount of the

nutrientth nutrient present in one unit of the ingredientjth feed ingredient

2). ULnutrient and LLnutrient be the maximum and minimum amount of the nutrientth nutrientin the diet

Then the nutrient constraints are formed by summing the nutrients generated from each feedstuff (anutrient,ingredientjFingredientj) and requiring these to exceed the dietary minimum and/or be less than the maximum.

Problem then focuses on how much of each feedstuff is used in the diet to maintain nutritional characteristics within certain bounds.

Page 14: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

14

Feeding ProblemFormulating the Problem

The constraints:

There are four general types of constraints:

1) minimum nutrient requirements restricting the sum of the nutrients generated from each feedstuff (anutrient,ingredientjFingredientj) to meet the dietary minimum

anutrient,ingredientj Feedingredientj minimumnutrient

2) maximum nutrient requirements restricting the sum of the nutrients generated from each feedstuff (anutrient,ingredientjFingredientj) to not exceed the dietary maximum

anutrient,ingredient Feedingredient maximumnutrient

3) total volume of the diet constraint requiring the ingredients in the diet equal the required weight of the diet. Suppose the weight of the formulated diet and the feedstuffs are the same, then

Feedingredientj = 1

4) nonnegative feedstuffFeedingredientj 0

∑ jingredient

∑ jingredient

∑ jingredient

Page 15: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

15

Feeding ProblemExample: cattle feeding

Seven nutritional characteristics:energy, digestible protein, fat, vitamin A, calcium, salt, phosphorus

Seven feed ingredient availability:corn, hay, soybeans, urea, dical phosphate, salt, vitamin A

New product: potato slurry

Ingredient costs per kilogram (cingredientj)

Ingredient Costs per kgCorn $0.133Dical Phosphate $0.498Alfalfa hay $0.077Salt $0.110

Nutrient Unit Minimum Maximum

Net energy Mega calories 1.34 -- Digestible protein Kilograms 0.071 0.13 Fat Kilograms -- 0.05 Vitamin A International Units 2200 -- Salt Kilograms 0.015 0.02 Calcium Kilograms 0.0025 0.01 Phosphorus Kilograms 0.0035 0.012 Weight Kilograms 1 1

Nutrient requirements per Kilogram:

Vitamin A $0.286Urea $0.332

Soybeans $0.300

Page 16: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

16

Feeding ProblemExample: cattle feeding

Nutrient

Characteristic Corn Hay Soybean Urea

Dical

Phosphate Salt

Vitamin A

Concentrate

Potato

Slurry

Net energy 1.48 0.49 1.29 1.39

Protein 0.075 0.127 0.438 2.62 0.032

Fat .0357 0.022 0.013 0.009

Vitamin A 600 50880 80 2204600

Salt 1

Calcium .0002 .0125 0.0036 0.2313 0.002

Phosphorus .0035 .0023 0.0075 0.68 0.1865 0.0024

Nutrient compositions of 1 kg of each feed:

Page 17: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

17

Feeding ProblemExample: cattle feeding

Corn Hay Soybean Urea Dical Salt Vitamin A Slurry

Min .133FeedC + .077FeedH + .3FeedSB + .332FeedUr + .498Feedd + .110FeedXLT +.286FeedVA + PFeedSL

s.t. .075FeedC + .127FeedH + .438FeedSB + 2.62FeedUr + .032FeedSL LE .13 protein

MaxNutrient

.0357FeedC + .022FeedH + .013FeedSB + .009FeedSL LE .05 fat

FeedXLT LE .02 salt

.0002FeedC + .0125FeedH + .0036FeedSB + .2313Feedd + .002FeedSL LE .01 Calc

.0035FeedC + .0023FeedH + .0075FeedSB + .68FeedUr + .1865Feedd + .0024FeedSL LE .012 phosp

1.48FeedC + .49FeedH + 1.29FeedSB + 1.39FeedSL GE 1.34 energy

.075FeedC + .127FeedH + .438FeedSB + 2.62FeedUr + .032FeedSL GE .071 protein

MinNutrient

600FeedC + 50880FeedH + 80FeedSB + 2204600FeedVA GE 2200 VA

FeedXLT GE .015 salt

.0002FeedC + .0125FeedH + .0036FeedSB + .2313Feedd + .002FeedSL GE .0025 Calc

.0035FeedC + .0023FeedH + .0075FeedSB +.68FeedUr + .1865Feedd + .0024FeedSL GE .0035 phos

Volume FeedC + FeedH + FeedSB + FeedUr + Feedd + FeedXLT + FeedVA + FeedSL = 1

FeedC , FeedH , FeedSB , FeedUr , Feedd , FeedXLT , FeedVA , FeedSL GE 0

Page 18: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

18

Feeding ProblemExample: cattle feeding -- Solution

- least cost feed ration is 95.6% slurry, 0.1%vitamin A, 1.5% salt, 0.2% dicalcium phosphate, 1.4%urea, 1.1% soybeans, and 0.1% hay

- reduced costs of feeding corn is 0.95 cents.- shadow prices: nonzero values indicate the

binding constraints (the phosphorous maximum constraint along with the net energy, protein, salt, and calcium minimums and the weight constraint).

- If relaxing the energy minimum, we save $0.065.

Optimal Solution: Objective value = $0.021Variable Value Reduced Cost Equation Slack Shadow PriceFeedc 0 0.095 Protein Max 0.059 0FeedH 0.001 0 Fat Max 0.041 0FeedSB 0.011 0 Salt Max 0.005 0FeedUR 0.014 0 Calcium Max 0.007 0Feedd 0.002 0 Phosphrs Max 0.000 -2.207FeedSLT 0.015 0 EnergyMin 0.000 0.065FeedVA 0.001 0 Protein Min 0.000 0.741FeedSL 0.956 0 Vita Min 0.000 0

Salt Min 0.000 0.218Calcium Min 0.002 4.400Phosphrs Min 0.008 0Weight 0.000 -0.108

Page 19: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

19

Joint Products ProblemMcCarl and Spreen Chapter 5

Basic Concept

This problem deals with joint products in which firms wish to maximize total profits derived from the available production possibilities.

Each of the production possibilities yields multiple products, uses some inputs with a fixed market price, and uses some resources that are available in fixed quantity.

Problem focuses on maximizing profit derived from available production possibilities.

Objective: Maximize profits

Variables: i. How much of quantity of the productth

product is produced.ii. Quantity of processth production

possibilityiii. Amount of the inputth input purchased

Restrictions: Non negativitySupply demand balanceResource availability

Page 20: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

20

Joint Products ProblemFormulation

Basic notation and the decision variable

Let us denote the set of: the produced products as product: the production possibilities as process: the purchased inputs as input: the available resources as resource

Let us define three fundamental decision variables as

: the set of produced product, Salesproduct

: the set of production possibilities,Productionprocess

: the set of purchased inputs, BuyInputinput

Page 21: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

21

Joint Products ProblemFormulation

To set up the joint products problem, four additional parameter values that give the composite relationship among product, process, input, and resource are needed.

These parameters are:

: the quantity sold of each produced product product to the quantity yielded by the processth

production possibility, qproduct,process

: the amount of the inputth input used by the processth production possibility, rinput,process

: the amount of the resourceth resource used by the processth production possibility, sresource,process

: the amount of resource availability or endowment by resource, bresource

Page 22: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

22

Joint Products ProblemFormulating the Problem

The objective function:

We want to maximize total profits across all of the possible productions. To do so, three additional required parameters for sale price, input purchase cost, and other production costs associated with production are needed.

Let us define these parameters as: SalePriceproduct: InputCostinput: OtherCostprocess

Then the objective function becomes

Maximize

SalePriceproduct Salesproduct

-InputCostinput BuyInputinput

-OthCostprocess Productionprocess

∑product

∑input

∑process

Page 23: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

23

Joint Products ProblemFormulating the Problem

The constraints:

There are four general types of constraints:

1) demand and supply balance for which quantity sold of each product is less than or equal to the quantity yielded by production.Salesproduct - qproduct,process Productionprocess 0

2) demand and supply balance for which quantity purchased of each fixed price input is greater than or equal to the quantity utilized by the production activities.

rinput,process Productionprocess - BuyInputinput 0

3) resource availability constraint insuring that the quantity used of each fixed quantity input does not exceed the resource endowments.

sresource,process Productionprocess bresource

4) nonnegativity

Salesproduct, BuyInputinput, Productionprocess 0

∑process

∑process

∑process

Page 24: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

24

Maximize

SalePriceproduct Salesproduct

-InputCostinput BuyInputinput

-OthCostprocess Productionprocess

s.t.

Salesproduct - qproduct,process Productionprocess 0

rinput,process Productionprocess - BuyInputinput 0

sresource,process Productionprocess bresource

Salesproduct, BuyInputinput, Productionprocess 0

Joint Products ProblemFormulating the Problem

∑product

∑input

∑process

∑process

∑process

∑process

Page 25: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

25

Joint Products ProblemExample: wheat production

Two products produced: Wheat and wheat straw

Three inputs: Land,fertilizer, seed

Seven production processes:

Outputs and inputs per acre Process1 2 3 4 5 6 7

Wheat yield in bushel 30 50 65 75 80 80 75

Wheat straw yield/bales 10 17 22 26 29 31 32

Fertilizer use in Kg. 0 5 10 15 20 25 30

Seed in pounds 10 10 10 10 10 10 10

land 1 1 1 1 1 1 1

Wheat price = $4/bushel, wheat straw price =$0.5/bale

Fertilizer = $2 per kg, Seed = $0.2/lb.

$5 per acre production cost for each process

Land = 500 acres

Page 26: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

26

∑product

∑input

∑process

∑process

∑process

∑process

Maximize

SalePriceproduct Salesproduct

-InputCostinput BuyInputinput

-OthCostprocess Productionprocess

s.t.

Salesproduct - qproduct,process Productionprocess 0

rinput,process Productionprocess - BuyInputinput 0

sresource,process Productionprocess bresource

Salesproduct, BuyInputinput, Productionprocess 0

Joint Products ProblemExample: Wheat Production

4Sale1+.5Sale2- 5Y1 - 5Y2 - 5Y3 - 5Y4 - 5Y5 - 5Y6 - 5Y7 - 2Z1 - .2Z 2 Maximize

s.t. Sale1 - 30Y1 - 50Y2- 65Y3 - 75Y4 - 80Y5 - 80Y6 - 75Y7 LE 0Sale2 - 10Y1 - 17Y2- 22Y3 - 26Y4 - 29Y5 - 31Y6 - 32Y7 LE 0

+ 5Y2 + 10Y3 + 15Y4 + 20Y5 + 25Y6 + 30Y7 - Z1 LE 010Y1 + 10Y2+ 10Y3 + 10Y4 + 10Y5 + 10Y6 + 10Y7 - Z2 LE 0Y1 + Y2 + Y3 + Y4 + Y5 + Y6 + Y7 LE 500

Sale1, , Y1 , Y2 , Y3 , Y4 , Y5 , Y6 , Y7 , Z1 , Z2 GE 0Sale2

Note that: Y refers to Productionprocess and Z refers to BuyInputinput

Page 27: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

27

Joint Products ProblemExample: Wheat Production -- Solution

- 40,000 bushels of wheat and 14,500 bales of straw are produced by 500 acres of the fifth production possibility using 10,000 kilograms of fertilizer and 5,000 lbs. of seed

- reduced cost shows a $169.50 cost if the first production possibility is used.

- shadow prices are values of sales, purchase prices of the various outputs and inputs, and land values ($287.5).

Optimal Solution: Objective value $143,450

Variable Value Reduced Cost Equation Slack Shadow PriceSalewheat 40,000 0 Wheat 0 -4Salestaw 14,500 0 Straw 0 -0.5Process1 0 -169.50 Fertilizer 0 2Process2 0 -96.00 Seed 0 0.2Process3 0 -43.50 Land 0 287.5Process4 0 -11.50Process5 500 0Process6 0 -9.00Process7 0 -38.50Byinputfert 10,000 0Byinputseed 5,000 0

Page 28: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

28

Disassembly ProblemMcCarl and Spreen Chapter7

Basic Concept

This problem involves raw product disassembly.This problem is common in agricultural processing where animals are purchased, slaughtered and cut into parts (steak, hamburger, etc.) which are sold.

The primal formulation involves the maximization of the product sold revenues less the raw product purchased costs, subject to restrictions that relate the amount of component parts to the amount of raw products disassembled.

Objective: Maximize operating profits

Variables: : Quantity of the final product sold : Number of units of raw product

purchased

Restrictions: : Non negativity: Product balance: Resource limitation: Upper bound on raw disassembly: Upper and lower bounds on sales

Page 29: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

29

Disassembly ProblemFormulating the Problem

Basic notation and the decision variable

This problem requires three types of indices:

: Raw products disassembly and let denote it as productj

: Component parts and let denote it as partk

: Resource and let denote it as resourcer

Let us define fundamental decision variables:

Rawproductj is the number of units of raw product purchased.

Soldpartk is the quantity of component part sold.

Page 30: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

30

Disassembly ProblemFormulating the Problem

The objective function:

Because the objective function is to maximize operating profits (revenue earned by sales minus input costs), we need additional expression for

1). the cost of purchasing one unit of raw product, Costproductj

2). the selling price of component part, Pricepartk

Our objective then becomes to maximize the sum over all final products sold (Soldpartk) of the total revenue earned by sales less the costs of all purchased inputs (Rawproductj).

Maximize - Costproductj Rawproductj

+ Pricepartk Soldpartk

productj∑

partk∑

Page 31: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

31

Disassembly ProblemFormulating the Problem

To set up this problem, six additional parameter values that give the relationship among productj, partk, and resourcer are needed. These parameters are:

: the yield component part partk from raw product productj, yieldpartk,productj

: the use of resource limit resourcer when disassembling raw product productj, userawresourcer,productj

: the amount of resource limit resourcer used by the sale of one unit of component part partk, usesoldresourcer,partk

: the maximum amount of raw product limit resourcer available, bresourcer

: the maximum amount of component part productj available, maxavailableproductj

: the maximum quantity of component part partkthat can be sold, maxsoldpartk

: the minimum amount of the component partkthat can be sold, minsoldpartk

Page 32: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

32

Disassembly ProblemFormulating the Problem

There are five types of constraints:

1) product balance limiting the quantity sold to be no greater than the quantity supplied when the raw product is disassembled. - yieldpartk,productj Rawproductj + Soldpartk 0

2) resource limitation constraining on raw product disassembly and product sale.

userawresourcer,productj Rawproductj

+ usesoldresourcer,partk Soldpartk bresourcer

3) upper bound on disassemblyRawproductj maxavaialableproductj

4) upper and lower bound on salesSoldpartk maxsoldpartk

Soldpartk minsoldpartk

6) NonnegativityRawproductj , Soldpartk 0

productj∑

productj∑

partk∑

Page 33: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

33

Disassembly ProblemFormulating the Problem

Maximize - Costproductj Rawproductj

+ Pricepartk Soldpartk

s.t

- yieldpartk,productj Rawproductj + Soldpartk 0

userawresourcer,productj Rawproductj

+ usesoldresourcer,partk Soldpartk bresourcer

Rawproductj maxavailableproductj

Soldpartk maxsoldpartk

Soldpartk minsoldpartk

Rawproductj , Soldpartk 0

productj∑

partk∑

productj∑

productj∑

partk∑

Page 34: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

34

Disassembly ProblemExample: Junk Yard

Disassembling 4 type of cars: Escorts, 626's, T-birds, Caddy's

5 component parts: Metal, seats, chrome, doors, junk

Component part yields from each type of car:

Car Data ESCORTS 626S TBIRDS CADDIESPURCHASE PRICE 85 90 115 140WEIGHT 2300 2200 3200 3900DISASSEMBLY COST 100 120 150 170AVAILABILITY 13 12 20 10

Resource Use to Breakdown CarsCAPACITY 1 1 1.2 1.4LABOR 10 12 15 20

Proportional Breakdown of Cars into Component Parts (/lb)

ESCORTS 626S TBIRDS CADDIESMETAL .60 .55 .60 .62SEATS .10 .10 .06 .04CHROME .05 .05 .09 .14DOORS .08 .10 .10 .07JUNK .17 .20 .15 .13

Part Data MAXIMUM PRICE PARTSPACE LABORMETAL 0.15 0 0.0010 SEATS 6000 0.90 0.003 0.0015 CHROME 0.70 0.0014 0.0020 DOORS 5000 1.00 0.0016 0.0025 JUNK -0.05 0 0.0001

10000

Page 35: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

35

Disassembly ProblemExample: Junk Yard

- Labor endowment = 700 hours- Junk yard capacity = 42 units, parts space = 60 units- Extending the problem by requiring parts to be

transformed to other usages if max sales have been exceed:

- chrome => metal- seat => junk- doors => 70% metal and 30% junk

ESC

OR

TS

626S

TBIR

DS

CA

DD

IES

MET

AL

SEA

TS

CH

RO

ME

DO

OR

S

JUN

K

CO

NV

ERT

SEA

TS

CO

NV

ERT

CH

RO

ME

CO

NV

ERT

DO

OR

S

RHS MIN

OBJECTIVE - 185 -210 -265 -310 0.15 0.90 0.70 1.00 -0.05

METAL - 1380 -1210 -1920 -2418 1 -1 -0.7 = 0

SEATS - 230 -220 -192 -156 1 1 = 0

CHROME - 115 -110 -288 -546 1 1 = 0

DOORS - 184 -220 -320 -273 1 1 = 0

JUNK - 391 -440 -480 -507 1 -1 -0.3 = 0

CAPACITY 1 1 1.2 1.4 < 42

LABOR 10 12 15 20 .001 .0015 .0020 .0025 .0001 < 700

PARTSPACE .003 .0014 .0016 < 60

6000 50001000013 12 15 20Upper Bound

Page 36: Basic LP problem formulations - Texas A&M Universityagecon2.tamu.edu/people/faculty/mccarl-bruce/622class/overhead05... · Basic LP problem formulations ... Basic Concept This problem

36

Disassembly ProblemExample: Junk Yard -- Solution

- shadow price: i.e. marginal value of additional junk yard capacity is $24.76

- reduced cost: i.e. selling more 1 more seat costs $0.95- max sales possibilities on seats, chrome, doors are exceeded

a. 320 lbs. of seats are converted to junkb. 1680 lbs. of chrome are converted to metalc. 70% of 4866 lbs. of doors are converted to metal and

the rest is converted to junk.

Optimal Solution: Objective value = $18337.2

Variable Value Reduced Cost Constraint Slack Shadow Price

ESCORTS 4 0

Parts:

626S 0 -49.960

METAL 0 0.150

TBIRDS 20 0CADDIES 10

SEATS 0 0.050CHROME 0 0.150DOORS 0 0.090

Sell:

JUNK 0 0.050

METAL 73186.2 0

CAPACITY 0 24.760

SEATS 6000 0

LABOR 43.512 0

CHROME 10000 0

PARTSP 20 0

DOORS 5000 0JUNK 18013.8 0

Convert:SEATS 320 0CHROME 1680 0DOORS 4866 0

ESCORTS 9 0

TBIRDS 0 31.688

Max Cars:

0

Max Sell:SEATS 0 0.95CHROME 0 0.550DOORS 0 0.910

0

626S 14 0

CADDIES 0 91.356

Resources

Dissasemble: