{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture3-IE122

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

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

IE 122 Lecture 3 IE122- Lecture 3

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

View Full Document
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
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

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

View Full Document
Model File for Product Mix Example: ProductMix.mod File: IE122- Lecture 3
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

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

View Full Document
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
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.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern