lecture3-IE122 - IE 122 Lecture 3 IE122- Lecture 3 Product...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
IE 122 Lecture 3 IE122- Lecture 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Product Mix Example: Part Name TV set Stereo Speaker inventory Chassis 1 1 0 450 Picture Tube 1 0 0 250 Speaker Cone 2 2 1 800 Power Supply 1 1 0 450 Electronics 2 1 1 600 Profit $75 $50 $35 3 products: TV sets, stereos and speakers. 5 different parts: Chassis, picture tubes, speaker cones, power supplies and electronics units. Produce the mix of products to maximize profits, given the inventory of products on hand. IE122- Lecture 3
Background image of page 2
LP model for Product Mix Example: Decision variables: X1= the number of TV sets assembled, X2= the number of stereos, and X3= the number of speakers Objective Function: Our goal is to maximize the total gross profit. Maximize 75 x1 + 50 x2 + 35 x3 (Profit) Constraints: Subject to: 1 x1 + 1 x2 + 0 x3 <= 450 (Chassis) 1 x1 + 0 x2 + 0 x3 <= 250 (Picture tubes) 2 x1 + 2 x2 + 1 x3 <= 800 (Speaker cones) 1 x1 + 1 x2 + 0 x3 <= 450 (Power supplies) 2 x1 + 1 x2 + 1 x3 <= 600 (Electronics) X1>=0, X2>=0, X3>=0 (No negativity) IE122- Lecture 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Model File for Product Mix Example: ProductMix.mod File: IE122- Lecture 3
Background image of page 4
Saving ProductMix.mod Click to Save as Change file type=All Files Save your file in the same folder as the ampl executable. IE122- Lecture 3
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Solving ProductMix.mod In ampl window type: ampl:reset; ampl:model productmix.mod; ampl: solve; Ample gives us: MINOS 5.5: optimal solution found. 3 iterations, objective 25000 To display variables ampl: display x1,x2,x3; x1 = 200 x2 = 200 x3 = 0 IE122- Lecture 3
Background image of page 6
Using Data File: Parameters Parameters are the given values in your problem. i.e. profit rates, production rates, hourly limits. ( DATA in the question statement! ) Define these parameters in your model file. Use NAMES instead of NUMBERS! Syntax to define a parameter in ampl is similar to variable declaration: param parameter-name; (just defines the parameters) param cost1 := 10; (defines the value of parameter) Use the name in your program, as opposed to the value. Use cost instead of 10.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/08/2011 for the course IE 121 taught by Professor Perevalov during the Spring '08 term at Lehigh University .

Page1 / 26

lecture3-IE122 - IE 122 Lecture 3 IE122- Lecture 3 Product...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online