Professional Documents
Culture Documents
Integer Programming
Integer Programming (IP) Models
Copyright © 2016 Pearson Education, Inc. 5-1 Copyright © 2016 Pearson Education, Inc. 5-2
Lathe 30 4,000
Copyright © 2016 Pearson Education, Inc. 5-3 Copyright © 2016 Pearson Education, Inc. 5-4
Integer Programming Model: ■ Recreation facilities selection to maximize daily usage by residents.
Copyright © 2016 Pearson Education, Inc. 5-5 Copyright © 2016 Pearson Education, Inc. 5-6
1
A 0 - 1 Integer Model (2 of 2) A Mixed Integer Model (1 of 2)
Integer Programming Model: ■ $250,000 available for investments providing greatest return after
Maximize Z = 300x1 + 90x2 + 400x3 + 150x4 one year.
$35,000x1 + 10,000x2 + 25,000x3 + 90,000x4 $120,000 Condominium cost $50,000/unit; $9,000 profit if sold after one
year.
4x1 + 2x2 + 7x3 + 3x4 12 acres
Land cost $12,000/ acre; $1,500 profit if sold after one year.
x1 + x2 1 facility
Municipal bond cost $8,000/bond; $1,000 profit if sold after
x1, x2, x3, x4 = 0 or 1 one year.
x1 = construction of a swimming pool Only 4 condominiums, 15 acres of land, and 20 municipal bonds
x2 = construction of a tennis center available.
x3 = construction of an athletic field
x4 = construction of a gymnasium
Copyright © 2016 Pearson Education, Inc. 5-7 Copyright © 2016 Pearson Education, Inc. 5-8
Copyright © 2016 Pearson Education, Inc. 5-9 Copyright © 2016 Pearson Education, Inc. 5-10
2
Computer Solution of IP Problems Computer Solution of IP Problems
0 – 1 Model with Excel (1 of 5) 0 – 1 Model with Excel (2 of 5)
Copyright © 2016 Pearson Education, Inc. 5-13 Copyright © 2016 Pearson Education, Inc. 5-14
Copyright © 2016 Pearson Education, Inc. 5-17 Copyright © 2016 Pearson Education, Inc. 5-18
3
Computer Solution of IP Problems Computer Solution of IP Problems
0 – 1 Model with QM for Windows (2 of 3) 0 – 1 Model with QM for Windows (3 of 3)
Click to solve.
Exhibit 5.6
Exhibit 5.7
Copyright © 2016 Pearson Education, Inc. 5-19 Copyright © 2016 Pearson Education, Inc. 5-20
Objective function
Integer variables
Slack, =G6-E6
Decision variables—
B10:B11 =C6*B10+D6*B11
Exhibit 5.10
Exhibit 5.9
Copyright © 2016 Pearson Education, Inc. 5-23 Copyright © 2016 Pearson Education, Inc. 5-24
4
Computer Solution of IP Problems Computer Solution of IP Problems
Total Integer Model with Excel (5 of 6) Total Integer Model with Excel (6 of 6)
Click on “int”
Integer Solution
Exhibit 5.13
Copyright © 2016 Pearson Education, Inc. 5-27 Copyright © 2016 Pearson Education, Inc. 5-28
Exhibit 5.14
Click on “Real”
Exhibit 5.15
Copyright © 2016 Pearson Education, Inc. 5-29 Copyright © 2016 Pearson Education, Inc. 5-30
5
Computer Solution of IP Problems 0 – 1 Integer Programming Modeling Examples
Mixed Integer Model with QM for Windows (2 of 2) Capital Budgeting Example (1 of 4)
■ University bookstore expansion project.
■ Not enough space available for both a computer department and a
clothing department.
Exhibit 5.16
Copyright © 2016 Pearson Education, Inc. 5-31 Copyright © 2016 Pearson Education, Inc. 5-32
Copyright © 2016 Pearson Education, Inc. 5-35 Copyright © 2016 Pearson Education, Inc. 5-36
6
0 – 1 Integer Programming Modeling Examples 0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (2 of 4) Fixed Charge and Facility Example (3 of 4)
yi = 0 if farm i is not selected, and 1 if farm i is selected; i = 1,2,3,4,5,6 Objective function
xij = potatoes (1000 tons) shipped from farm I to plant j; j = A,B,C.
Minimize Z = 18x1A+ 15x1B+ 12x1C+ 13x2A+ 10x2B+ 17x2C+ 16x3+ 14x3B
+18x3C+ 19x4A+ 15x4b+ 16x4C+ 17x5A+ 19x5B+12x5C+ 14x6A
+ 16x6B+ 12x6C+ 405y1+ 390y2+ 450y3+ 368y4+ 520y5+ 465y6
subject to:
x1A + x1B + x1B - 11.2y1 ≤ 0 x2A + x2B + x2C -10.5y2 ≤ 0
x3A + x3A + x3C - 12.8y3 ≤ 0 x4A + x4b + x4C - 9.3y4 ≤ 0
x5A + x5B + x5B - 10.8y5 ≤ 0 x6A + x6B + X6C - 9.6y6 ≤ 0
=G10-C22*F10
x1A + x2A + x3A + x4A + x5A + x6A = 12
x1B + x2B + x3B + x4B + x5B + x6B = 10 =SUM(C5:C10) =C10+D10+E10
x1C + x2C + x3C + x4C + x5C + x6C = 14
xij ≥ 0 yi = 0 or 1
Exhibit 5.19
Copyright © 2016 Pearson Education, Inc. 5-37 Copyright © 2016 Pearson Education, Inc. 5-38
Copyright © 2016 Pearson Education, Inc. 5-39 Copyright © 2016 Pearson Education, Inc. 5-40
Copyright © 2016 Pearson Education, Inc. 5-41 Copyright © 2016 Pearson Education, Inc. Exhibit 5.21 5-42
7
0 – 1 Integer Programming Modeling Examples Total Integer Programming Modeling Example
Set Covering Example (4 of 4) Problem Statement (1 of 3)
■ Textbook company developing two new regions.
Exhibit 5.22 ■ Planning to transfer some of its 10 salespeople into new regions.
■ Average annual expenses for sales person:
▪ Region 1 - $10,000/salesperson
▪ Region 2 - $7,500/salesperson
City constraints
set > 1 ■ Total annual expense budget is $72,000.
■ Sales generated each year:
▪ Region 1 - $85,000/salesperson
▪ Region 2 - $60,000/salesperson
■ How many salespeople should be transferred into each region in order to
maximize increased sales?
Copyright © 2016 Pearson Education, Inc. 5-43 Copyright © 2016 Pearson Education, Inc. 5-44
Total Integer Programming Modeling Example Total Integer Programming Modeling Example
Model Formulation (2 of 3) Solution with QM for Windows (3 of 3)
Step 1:
Formulate the Integer Programming Model
Maximize Z = $85,000x1 + 60,000x2
subject to:
x1 + x2 10 salespeople
$10,000x1 + 7,000x2 $72,000 expense budget
x1, x2 0 or integer
Step 2:
Solve the Model using QM for Windows
Copyright © 2016 Pearson Education, Inc. 5-45 Copyright © 2016 Pearson Education, Inc. 5-46
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, electronic, mechanical, photocopying,
recording, or otherwise, without the prior written permission of the publisher.
Printed in the United States of America.