管理科学附录c-整数规划
- 格式:pdf
- 大小:1.95 MB
- 文档页数:14
1. 整数规划的基本概念1. 在某些线性规划问题中,变量只有取整数值才有意义,这时约束条件中还需要添加上变量取整数值的限制,这就是整数规划问题。
2. 在整数规划中,如果所有的变量都为非负整数,则称为纯整数规划问题;如果有一部分变量为非负整数,则称之为混合整数规划问题。
在整数规划中,如果变量的取值只限于0和1,这样的变量我们称之为0-1变量。
在纯整数规划和混合整数规划问题中,如果所有的变量都为0-1变量,则称之为0-1规划。
3. 求整数解的线性规划问题,不是用四舍五入法或去尾法对线性规划的非整数解加以处理都能解决的,而要用整数规划的方法(分枝定界法与割平面法)加以解决。
2. 整数规划的应用1. 生产与销售计划问题例1. 某公司用两种原油(A 和B )混合加工成两种汽油(甲和乙),甲、乙两种汽油含原油A 的最低比例分别为50%和60%,每吨售价分别为4800元和5600,该公司现有原油A 和B 的库存量分别为500吨和1000吨,还可以从市场上买到不超过1500吨的原油A ,不超过500吨时单价为10000元/吨;超过500吨时,超过的部分单价为8000元/吨;超过1000吨时超过的部分单价为6000元/吨。
该公司应如何安排原油的采购和加工。
分析:问题中需要决定如何安排采购:决定原油A 的采购数量 (可设为变量x)如何安排加工:决定原油A 分别用于生产甲、乙产品的数量(可设为变量x11、x12) 决定原油B 分别用于生产甲、乙产品的数量(可设为变量x21、x22); 共有5个决策变量。
则:x11+x21为甲产品的产量, x12+x22为乙产品的产量。
约束条件资源限制:()()210001 50022211211≤++≤+x x x x x 比例要求:()()4 6.03 5.0221212211111≥+≥+x x x x x x变量非负:x ,x11,x12,x21,x22≥0 目标函数假设目标为利润最大利润=收入-成本,用Z 表示利润额:Z=4800 (x11+x21)+5600 (x12+x22) -C(x) 其中: C(x)为采购原油A 的支出 C(x)的具体形式?()()()⎪⎩⎪⎨⎧≤<-+≤<-+≤=15001000 ,1000600090000001000500 ,50080005000000500,10000x x x x x x x C整理得:()⎪⎩⎪⎨⎧≤<+≤<+≤=15001000 ,600030000001000500 ,80001000000500 ,10000x x x x x x x C建立模型:model :max =4.8*x11+4.8*x21+5.6*x12+5.6*x22-c; x11+x12<x+500; x21+x22<1000; x<1500;0.5*x11-0.5*x21>0; 0.4*x12-0.6*x22>0;c=@if (x#le#500,10*x,@if (x#le#1000,1000+8*x,3000+6*x)); end运用lingo 求解得:Objective value: 5000.000Variable Value Reduced CostX11 0.000000 0.000000 X21 0.000000 1.600000 X12 1500.000 0.000000 X22 1000.000 0.000000 C 9000.000 0.000000 X 1000.000 0.000000第二种解法:模型中的问题约束(1)左端含变量,(3)、(4)不是线性函数,转化为:5001211≤-+x x x06.04.005.05.022122111≥-≥-x x x x目标函数为分段函数,如何处理? 目标函数的转换将x 分解为三个量x1、x2、x3,分别表示以价格10000/吨、8000/吨、6000/吨购买的原油A 的数量,且 x=x1+x2+x3,则目标函数变为 Z=4800 (x11+x21)+5600 (x12+x22)-(10000x1+8000x2+6000x3) 此时约束条件应增加: (x1-500) ·x2=0,(x2-500) ·x3=0 0≤ x1,x2,x3 ≤500目标函数虽已化为线性函数,但约束条件含非线性等式,如何解决这一问题? 引入0-1变量 y1、y2、y3⎩⎨⎧=>=0 ,00 ,11x x y ,⎩⎨⎧≤>=500 ,0500 ,12x x y ,⎩⎨⎧≤>=1000 ,01000 ,13x x y则:112500500y x y ≤≤,223500500y x y ≤≤,33500y x ≤综合可得问题的数学模型()()321221221116000800010000 56004800min x x x x x x x Z ---+++=⎪⎪⎪⎪⎪⎪⎩⎪⎪⎪⎪⎪⎪⎨⎧=≥≤≤≤≤≤≥-≥-≤+≤---+1,0,,0,,,,,,50050050050050006.04.005.05.0100050032132122211211332231122212211122213211211y y y x x x x x x x y x yx y y x y x x x x x x x x x x xmodel :max =4.8*x11+4.8*x21+5.6*x12+5.6*x22-10*x1-8*x2-6*x3; x11+x12-x<500; x21+x22<1000; 0.5*x11-0.5*x21>0; 0.4*x12-0.6*x22>0; x-x1-x2-x3=0; x1-500*y1<0; x2-500*y2<0; x3-500*y3<0; x1-500*y2>0; x2-500*y3>0; @BIN (y1); @BIN (y2); @BIN (y3); endObjective value: 5000.000 Variable Value Reduced CostX11 0.000000 0.000000 X21 0.000000 1.400000 X12 1500.000 0.000000 X22 1000.000 0.000000 X1 500.0000 0.000000X3 0.000000 0.000000X 1000.000 0.000000Y1 1.000000 0.000000Y2 1.000000 2000.000Y3 1.000000 1000.000第三种解法:记x轴上的分点为b1=0, b2=500, b3=1000, b4=1500. 当x属于第1个小区间[b1,b2]时,记x=z1b1+z2b2, z1+z2=1, z1,z2≥0, 因为c(x)在[b1,b2]上是线性函数,所以c(x)= z1c(b1)+z2c(b2)。
管理运筹学讲义整数规划整数规划是管理运筹学中一种重要的优化技术,它在实际问题中具有广泛的应用。
本文将介绍整数规划的基本概念、建模方法以及解决算法,并通过实例展示其在实际问题中的应用。
一、整数规划的基本概念整数规划是线性规划的一种扩展形式,其决策变量被限制为整数。
在实际问题中,往往存在某些变量只能取整数值的约束条件,这时就需要使用整数规划方法进行求解。
与线性规划相比,整数规划的求解难度更大,但可以提供更精确的结果。
二、整数规划的建模方法在进行整数规划建模时,需要确定决策变量、目标函数和约束条件。
1. 决策变量决策变量是问题中需要优化的变量,其取值决定了问题的解。
在整数规划中,决策变量通常表示为整数。
2. 目标函数目标函数是整数规划问题中需要最小化或最大化的目标。
它可以是线性函数或非线性函数,但在整数规划中,通常只考虑线性目标函数。
3. 约束条件约束条件是问题的限制条件,限制了决策变量的取值范围。
在整数规划中,约束条件可以是线性等式或线性不等式。
三、整数规划的解决算法解决整数规划问题的常见算法包括割平面法、分支定界法和动态规划法等。
这些算法通过不断对问题进行优化,逐步逼近最优解。
1. 割平面法割平面法是一种通过添加额外的约束条件来逼近最优解的方法。
它首先求解一个松弛问题,然后根据松弛问题的解加入新的约束条件,直到找到最优解。
2. 分支定界法分支定界法是一种将整数规划问题划分为多个子问题,并对每个子问题进行求解的方法。
它通过不断分支和剪枝来找到最优解。
3. 动态规划法动态规划法是一种通过将问题分解为多个子问题,并通过求解子问题的最优解来求解原始问题的方法。
它采用自底向上的求解方式,将所有可能的决策情况进行组合,得到最优解。
四、整数规划在实际问题中的应用整数规划在实际问题中有着广泛的应用。
以下是一个应用整数规划解决的实际问题示例:某公司生产两种产品A和B,每天的生产时间为8小时。
产品A每单位利润为100元,产品B每单位利润为150元。
整数规划模型整数规划模型是一种数学模型,用于解决优化问题。
在整数规划中,决策变量必须是整数。
这种模型广泛应用于工程、科学、运筹学和管理等领域。
整数规划模型的一般形式如下:\[\text{maximize} \quad c^Tx\]\[\text{subject to} \quad Ax \leq b\]\[x_j \text{整数} , j = 1,2,...,n\]其中,c是一个n维向量,表示目标函数的系数;x是n维向量,表示决策变量;A是m×n维矩阵,表示约束条件的系数矩阵;b是一个m维向量,表示约束条件的上界。
整数规划模型的目标是找到一个满足约束条件的决策变量向量x,使得目标函数值最大或最小。
由于决策变量必须是整数,所以整数规划模型要比普通的线性规划模型更复杂。
整数规划模型可以应用于许多实际问题。
例如,一个公司要决定生产哪种产品以最大化利润,但每种产品有一定的生产限制,需要整数规划模型来确定生产量;一个配送中心要决定如何分配物流资源以最小化成本,但每个分配决策都必须是整数,需要整数规划模型来求解。
求解整数规划模型可以使用多种算法。
例如,分支定界算法通过将问题分解为一个个子问题,并通过剪枝策略来减少搜索空间,最终找到最优解;约简与延迟约束算法通过线性松弛将整数规划转化为一个松弛线性规划问题,并通过迭代加入约束条件来逼近整数解。
整数规划模型的求解过程需要注意一些问题。
首先,由于整数规划是一个NP难问题,没有通用的多项式时间算法可以解决所有情况。
其次,整数规划模型可能有多个最优解,求解算法可能只能找到其中一个最优解。
最后,整数规划模型的求解过程可能需要大量的计算资源和时间。
总之,整数规划模型是一种重要的数学模型,可以用于解决各种实际优化问题。
但由于其复杂性和求解困难,需要合理选择算法和求解策略来获得满意的结果。
管理科学与工程考研必备运筹学与决策分析题型解析管理科学与工程考研必备:运筹学与决策分析题型解析运筹学与决策分析作为管理科学与工程领域中的重要学科,广泛应用于各种实际问题的分析与解决。
考研中,这一学科的题型也是必考内容之一。
在本文中,我们将对运筹学与决策分析的题型进行详细解析,帮助考生更好地应对考试。
一、线性规划题型线性规划是运筹学与决策分析中最基础的内容之一。
在考研中,常见的线性规划题型包括最大化问题、最小化问题和求解最优解等。
解决这类题目的关键在于建立数学模型和运用线性规划的相关理论与方法。
例如,某企业要决定生产两种产品A和B,其单价分别为10元/件和8元/件。
已知每天生产产品A需要人工2小时,材料1件,而生产产品B需要人工3小时,材料1件。
每日可用的人工总量为20小时,材料总量为15件。
企业的目标是最大化每日的总利润。
如何确定生产各种产品的数量以实现最大利润?请给出详细解答。
解析:首先,我们定义变量x和y分别表示产品A和产品B的数量。
目标函数可以表示为:最大化利润=10x + 8y。
约束条件为:2x + 3y ≤20和x + y ≤ 15。
在满足约束条件的前提下,求取目标函数的最大值。
二、整数规划题型整数规划是线性规划的一种扩展形式,要求变量的取值必须为整数。
在实际问题中,往往存在许多限制条件,这就需要考生在解题过程中综合运用线性规划和整数规划的方法。
例如,某工厂需要生产一种产品,并有3条生产线可供选择。
第一条生产线每天生产产品的数量不得多于100件;第二条生产线每天生产产品的数量不得多于200件;第三条生产线每天生产产品的数量不得多于150件。
工厂希望最大化每天的总产量。
请问该如何进行决策?解析:我们定义变量x1、x2和x3分别表示选择第一、二和三条生产线生产产品的数量。
目标函数可以表示为:最大化总产量=x1 + x2 +x3。
约束条件为:x1 ≤ 100、x2 ≤ 200和x3 ≤ 150。
第一章测试1.运筹学的工作步骤, 往往按照以下步骤:①. 提出和形成问题;②. 解的检验;③. 建立模型;④. 求解(最优解、次优解、近似最优解、满意解、非劣解);⑤. 解的控制;⑥. 解的实施。
以上步骤的正确顺序是()。
A:① ③ ② ⑤ ④ ⑥B:① ③ ④ ② ⑤ ⑥C:① ② ③ ④ ⑤ ⑥D:① ③ ② ④ ⑤ ⑥答案:B2.运筹学具有多学科交叉的特点。
()A:对B:错答案:A3.运筹学引入中国的时间是二十世纪六十年代。
()A:对B:错答案:B4.运筹学是一门在第一次世界大战期间发展起来的新兴科学。
()A:对B:错答案:A5.运筹学具有显著的系统分析特征。
()A:错B:对答案:B6.运筹学具有丰富广泛的应用性和强烈的实践性。
()A:对B:错答案:A7.运筹学的研究与应用从军事大规模转向工农业生产,经济管理等民用领域始于20世纪50年代。
()A:错B:对答案:A8.世界上第一运筹学研究小组在美国成立。
()A:对B:错答案:B9.我国第一个运筹学小组成立于1956年。
()A:对B:错答案:A10.沈括运军粮的故事说明我国很早就产生了运筹学。
()A:错B:对答案:A第二章测试1.在下面的数学模型中,属于线性规划模型的为()A:B:C:D:答案:B2.线性规划问题若有最优解,则一定可以在可行域的()上达到。
A:外点B:几何点C:内点D:顶点答案:D3.在线性规划模型中,没有非负约束的变量称为()A:多余变量B:自由变量C:松弛变量D:人工变量答案:B4.若线性规划问题的最优解同时在可行解域的两个顶点处达到,那么该线性规划问题最优解为()A:两个B:零个C:无穷多个D:有限多个答案:C5.对于线性规划问题标准型、maxZ=CX, AX=b, X≥0, 利用单纯形法求解时,每作一次迭代,都能保证它相应的目标函数值Z必为()。
A:减少B:增大C:不增大D:不减少答案:B6.若线性规划问题的最优解不唯一,则在最优单纯形表上()。
管理科学与工程考研重点知识点整理轻松搞定管理科学与工程是一门综合性的学科,涉及到管理学、数学、经济学、工程学等多个领域的知识。
对于考研生来说,整理掌握重点知识点是提高学习效果的关键。
在本文中,将为大家整理一些管理科学与工程考研的重点知识点,帮助大家轻松搞定考试。
一、线性规划1. 问题的建模线性规划是运用线性数学模型研究决策问题的方法。
在解决线性规划问题时,首先需要明确决策变量、目标函数以及约束条件。
其中,决策变量是需要决策的量,而目标函数则是优化的目标,约束条件是问题的限制条件。
2. 单纯形法单纯形法是解决线性规划问题的一种常用方法。
其基本思想是通过变换确定基变量与非基变量,逐步优化得到最优解。
单纯形法需要注意初始解的选择,以及如何确定最优解是否存在。
3. 整数规划整数规划是线性规划的一种扩展形式,其决策变量需要取整数值。
与线性规划相比,整数规划的求解更加困难,一般需要采用分支定界法、割平面法等特殊的方法。
二、排队论1. 排队模型排队论是研究随机到达、随机服务的排队系统的数学理论。
在排队论中,需要定义到达率、服务率等参数,并通过排队模型来描述系统的行为。
常见的排队模型有M/M/1模型、M/M/c模型等。
2. 基本性能指标排队论中常用的性能指标有平均队长、平均等待时间、系统繁忙率等。
这些指标可以帮助我们评估系统的效率和性能。
3. 排队论的应用排队论在实际生活中有着广泛的应用,比如交通拥堵问题、客户服务效率等。
通过排队论的分析,我们可以找到优化系统性能的方法。
三、决策分析1. 决策树决策树是一种用图形模型表示决策过程的工具。
通过决策树,我们可以清晰地了解不同决策路径的可能结果,并选择最优的决策。
2. 敏感性分析敏感性分析是对决策模型不确定性的一种评估方法。
通过改变决策变量或者参数的数值,分析其对决策结果的影响,帮助我们了解模型的稳定性和可靠性。
3. 多目标决策多目标决策是指在决策过程中,存在多个相互矛盾的目标。
CInteger Programming:The Branch andBound MethodC-1C-2Module C Integer Programming:The Branch and Bound Method The Branch and Bound MethodThe branch and bound method is not a solution technique specifically limited to integer programming problems.It is a solution approach that can be applied to a number of differ-ent types of problems.The branch and bound approach is based on the principle that thetotal set of feasible solutions can be partitioned into smaller subsets of solutions.These smaller subsets can then be evaluated systematically until the best solution is found.When the branch and bound approach is applied to an integer programming problem,it is used in conjunction with the normal noninteger solution approach.We will demonstrate the branch and bound method using the following example.The owner of a machine shop is planning to expand by purchasing some new machines—presses and lathes.The owner has estimated that each press purchased will increase profit by $100 per day and each lathe will increase profit by $150 daily.The num-ber of machines the owner can purchase is limited by the cost of the machines and the available floor space in the shop.The machine purchase prices and space requirements are as follows.Required MachineFloor Space (ft 2)Purchase Price Press15$8,000Lathe 304,000The owner has a budget of $40,000 for purchasing machines and 200 square feet of available floor space.The owner wants to know how many of each type of machine to pur-chase to maximize the daily increase in profit.The linear programming model for an integer programming problem is formulated in exactly the same way as the linear programming examples in chapters 2 and 4 of the text.The only difference is that in this problem,the decision variables are restricted to integer values because the owner cannot purchase a fraction,or portion,of a machine.The linear programming model follows.maximize Z ϭ$100x 1ϩ150x 2subject to8,000x 1ϩ4,000x 2Յ$40,00015x 1ϩ30x 2Յ200 ft 2x 1,x 2Ն0 and integerThe branch and bound method isa solution approach that parti-tions the feasible solution spaceinto smaller subsets of solutions.where x 1ϭnumber of presses x 2ϭnumber of lathes The decision variables in this model are restricted to whole machines.The fact that both decision variables,x 1and x 2,can assume any integer value greater than or equal to zero is what gives this model its designation as a total integer model.We begin the branch and bound method by first solving the problem as a regular linear programming model without integer restrictions (i.e.,the integer restrictions are relaxed ).The linear programming model for the problem and the optimal relaxed solution is maximize Z ϭ$100x 1ϩ150x 2subject to 8,000x 1ϩ4,000x 2Յ$40,00015x 1ϩ30x 2Յ200 ft 2x 1,x 2Ն0and x 1ϭ2.22,x 2ϭ5.56,and Z ϭ1,055.56The branch and bound method employs a diagram consisting of nodes and branches as a framework for the solution process.The first node of the branch and bound diagram,shown in Figure C-1 contains the relaxed linear programming solution shown earlier and the rounded-down solution.The Branch and Bound Method C-3A linear programming model solu-tion with no integer restrictions iscalled a relaxed solution.The branch and bound methoduses a tree diagram of nodes andbranches to organize the solutionpartitioning.Figure C-1The initial node in the branchand bound diagramNotice that this node has two designated bounds:an upper bound (UB) of $1,055.56 and a lower bound (LB) of $950.The lower bound is the Z value for the rounded-down solu-tion,x 1ϭ2 and x 2ϭ5;the upper bound is the Z value for the relaxed solution,x 1ϭ2.22and x 2ϭ5.56.The optimal integer solution will be between these two bounds.Rounding down might result in a suboptimal solution.In other words,we are hoping that a Z value greater than $950 might be possible.We are not concerned that a value lower than $950 might be available.Thus,$950 represents a lower bound for our solution.Alternatively,since Z ϭ$1,055.56 reflects an optimal solution point on the solution space boundary,a greater Z value cannot possibly be attained.Hence,Z ϭ$1,055.56 is the upper bound of our solution.Now that the possible feasible solutions have been narrowed to values between the upper and lower bounds,we must test the solutions within these bounds to determine the best one.The first step in the branch and bound method is to create two solution subsetsfrom the present relaxed solution.This is accomplished by observing the relaxed solution value for each variable,x 1ϭ2.22x 2ϭ5.56The optimal integer solution willalways be between the upperbound of the relaxed solution anda lower bound of the rounded-down integer solution.Branch on the variable with thesolution value with the greatestfractional part.C-4Module C Integer Programming:The Branch and Bound Method Figure C-2Solution subsets x 2and seeing which one is the farthest from the rounded-down integer value (i.e.,which vari-able has the greatest fractional part).The .56 portion of 5.56 is the greatest fractional part;thus,x 2will be the variable that we will “branch”on.Because x 2must be an integer value in the optimal solution,the following constraints can be developed.x 2Յ5x 2Ն6In other words,x 2can be 0,1,2,3,4,5,or 6,7,8,etc.,but it cannot be a value between 5and 6,such as 5.56.These two new constraints represent the two solution subsets for our solution approach.Each of these constraints will be added to our linear programming model,which will then be solved normally to determine a relaxed solution.This sequence of events is shown on the branch and bound diagram in Figure C-2.The solutions at nodes 2 and 3 will be the relaxed solutions obtained by solving our example model with the appropriate constraints added.Create two constraints (or subsets)to eliminate the fractional part ofthe solution valueFirst,the solution at node 2 is found by solving the following model with the constraint x 2Յ5 added.maximize Z ϭ$100x 1ϩ150x 2subject toThe optimal solution for this model with integer restrictions relaxed (solved using the computer) is x 1ϭ2.5,x 2ϭ5,and Z ϭ1,000.Next,the solution at node 3 is found by solving the model with x 2Ն6 added.maximize Z ϭ$100x 1ϩ150x 2subject to8,000x 1ϩ4,000x 2Յ40,00015x 1ϩ30x 2Յ200x 2Ն6x 1,x 2Ն0The optimal solution for this model with integer restrictions relaxed is x 1ϭ1.33,x 2ϭ6,and Z ϭ1,033.33.x 1, x 2Ն0x 2Յ515x 1ϩ30x 2Յ2008,000x 1ϩ4,000x 2Յ40,000These solutions with x 2Յ5 and x 2Ն6 reflect the partitioning of the original relaxed model into two subsets formed by the addition of the two constraints.The resulting solu-tion sets are shown in the graphs in Figure C-3.The Branch and Bound Method C-5Figure C-3Feasible solution spaces fornodes 2 and 3Figure C-4Branch and bound diagramwith upper and lower bounds atnodes 2 and 3Notice that in the node 2 graph in Figure C-3,the solution point x 1ϭ2.5,x 2ϭ5results in a maximum Z value of $1,000,which is the upper bound for this node.Next,notice that in the node 3 graph,the solution point x 1ϭ1.33,x 2ϭ6 results in a maximum Z value of $1,033.Thus,$1,033 is the upper bound for node 3.The lower bound at each of these nodes is the maximum integer solution.Since neither of these relaxed solutions is totally integer,the lower bound remains $950,the integer solution value already obtained at node 1 for the rounded-down integer solution.The diagram in Figure C-4 reflects the addition of the upper and lower bounds at each node.Since we do not have an optimal and feasible integer solution yet,we must continue to branch (i.e.,partition) the model,from either node 2 or node 3.A look at Figure C-4reveals that if we branch from node 2,the maximum value that can possibly be achieved is $1,000 (the upper bound).However,if we branch from node 3,a higher maximum value of $1,033 is possible.Thus,we will branch from node 3.In general,always branch from the node with the maximum upper bound.Now the steps for branching previously followed at node 1 are repeated at node 3.First,the variable that has the value with the greatest fractional part is selected.Because x 2has an integer value,x 1,with a fractional part of .33,is the only variable we can select.Thus,two new constraints are developed from x 1,C-6Module C Integer Programming:The Branch and Bound MethodFigure C-5 Solution subsets for x1x1Յ1x1Ն2This process creates the new branch and bound diagram shown in Figure C-5.Next,the relaxed linear programming model with the new constraints added must be solved at nodes 4 and 5.(However,do not forget that the model is not the original,but the original with the constraint previously added,x2Ն6.) Consider the node 4 model first.maximum Zϭ100x1ϩ150x2subject to8,000x1ϩ4,000x2Յ40,00015x1ϩ30x2Յ200x2Ն6x1Յ1x1,x2Ն0The optimal solution for this model with integer restrictions relaxed is x1ϭ1,x2ϭ6.17,and Zϭ1,025.Next,consider the node 5 model.maximize Zϭ100x1ϩ150x2subject to8,000x1ϩ4,000x2Յ 40,00015x1ϩ30x2Յ200x2Ն6x1Ն2x1,x2Ն0However,there is no feasible solution for this model.Therefore,no solution exists at node 5,and we have only to evaluate the solution at node 4.The branch and bound dia-gram reflecting these results is shown in Figure C-6.The Branch and Bound Method C-7Figure C-6Branch and bound diagramwith upper and lower bounds atnodes 4 and 5Figure C-7 Solution subsets for x2The branch and bound diagram in Figure C-6 indicates that we still have not reached an optimal integer solution;thus,we must repeat the branching steps followed earlier.Since a solution does not exist at node 5,there is no comparison between the upper bounds at nodes 4 and paring nodes 2 and 4,we must branch from node 4 because it has the greater upper bound.Next,since x1has an integer value,x2,with a fractional part of.17,is selected by default.The two new constraints developed from x2arex2Յ6x2Ն7This creates the new branch and bound diagram in Figure C-7.The relaxed linear programming model with the new constraints added must be solved at nodes 6 and 7.Consider the node 6 model first.C-8Module C Integer Programming:The Branch and Bound MethodFigure C-8 The branch and bound diagram with optimal solutionat node 6An optimal integer solution isreached when a feasible integer solution is achieved at a node that has an upper bound greater than or equal to the upper bound at anyother ending node.maximize Zϭ100x1ϩ150x2subject to8,000x1ϩ4,000x2Յ40,00015x1ϩ30x2Յ200x2Ն6x1Յ1x2Յ6x1,x2Ն0The optimal solution for this relaxed linear programming model is x1ϭ1,x2ϭ6,and Zϭ1,000.Next,consider the node 7 model.maximize Zϭ100x1ϩ150x2subject to8,000x1ϩ4,000x2Յ40,00015x1ϩ30x2Յ200x2Ն6x1Յ1x2Ն7x1,x2Ն0However,the solution to this model is infeasible and no solution exists at node 7.The branch and bound diagram reflecting these results is shown in Figure C-8.This version of the branch and bound diagram indicates that the optimal integer solution,x1ϭ1,x2ϭ6, has been reached at node 6.The value of1,000 at node 6 is the maximum,or upper bound, integer value that can be obtained.It is also the recomputed lower bound because it is the maximum integer solution achieved to this point.Thus,it is not possible to achieve any higher value by further branching from node 6.A comparison of the node 6 solution withthose at nodes 2,5,and 7 shows that a better solution is not possible.The upper bound at node 2 is 1,000,which is the same as that obtained at node 6;thus,node 2 can result in no improvement.The solutions at nodes 5 and 7 are infeasible (and thus further branching will result in only infeasible solutions).By the process of elimination,the integer solution at node 6 is optimal.In general,the optimal integer solution is reached when a feasible integer solution is generated at a node and the upper bound at that node is greater than or equal to the upper bound at any other ending node (i.e.,a node at the end of a branch).In the context of the original example,this solution indicates that if the machine shop owner purchases one press and six lathes,a daily increase in profit of $1,000 will result.The steps of the branch and bound method for determining an optimal integer solution for a maximization model (with Յconstraints) can be summarized as follows.1.Find the optimal solution to the linear programming model with the integer restric-tions relaxed.2.At node 1 let the relaxed solution be the upper bound and the rounded-down integer solution be the lower bound.3.Select the variable with the greatest fractional part for branching.Create two new constraints for this variable reflecting the partitioned integer values.The result will be a new Յconstraint and a new Նconstraint.4.Create two new nodes,one for the Նconstraint and one for the Յconstraint.5.Solve the relaxed linear programming model with the new constraint added at each of these nodes.6.The relaxed solution is the upper bound at each node,and the existing maximum integer solution (at any node) is the lower bound.7.If the process produces a feasible integer solution with the greatest upper bound value of any ending node,the optimal integer solution has been reached.If a feasible integer solution does not emerge,branch from the node with the greatest upper bound.8.Return to step 3.For a minimization model,relaxed solutions are rounded up,and upper and lower bounds are reversed.Mixed integer linear programming problems can also be solved using the branch and bound method.The same basic steps that were applied to the total integer model in theprevious section are used for a mixed integer model with only a few differences.First,at node 1 only those variables with integer restrictions are rounded down to achieve the lower bound.Second,in determining which variable to branch from,we select the greatest fractional part from among only those variables that must be integer.All other steps remain the same.The optimal solution is reached when a feasible solution is gener-ated at a node that has integer values for those variables requiring integers and that has reached the maximum upper bound of all ending nodes.The 0–1 integer model can also be solved using the branch and bound method.First,the 0–1 restrictions for variables must be reflected as model constraints,x j Յ1.As an example,consider the following 0–1 integer model for selecting recreational facilities following fromchapter 5 in the text.A community council must decide which recreation facilities to construct in its com-munity.Four new recreation facilities have been proposed —a swimming pool,a tennisThe Branch and Bound Method C-9The steps of the branch and boundmethod.The branch and bound method can be used for mixed integer problems,except only variables with integer restrictions are rounded down to achieve the ini-tial lower bound and only integer variables are branched on.Solution of the Mixed Integer Model Solution of the 0–1Integer ModelC-10Module C Integer Programming:The Branch and Bound Method center,an athletic field,and a gymnasium.The council wants to construct facilities that will maximize the expected daily usage by the residents of the community subject to land and cost limitations.The expected daily usage and cost and land requirements for each facility follow.Expected Usage Land Requirements Recreation Facility (people/day)Cost ($)(acres)Swimming pool 30035,0004Tennis center 9010,0002Athletic field 40025,0007Gymnasium 15090,0003The community has a $120,000 construction budget and 12 acres of land.Because the swimming pool and tennis center must be built on the same part of the land parcel,how-ever,only one of these two facilities can be constructed.The council wants to know which of the recreation facilities to construct in order to maximize the expected daily usage.The model for this problem is formulated as follows.maximize Z ϭ300x 1ϩ90x 2ϩ400x 3ϩ150x 4subject to $35,000x 1ϩ10,000x 2ϩ25,000x 3ϩ90,000x 4Յ$120,000 (capital budget)4x 1ϩ2x 2ϩ7x 3ϩ3x 4Յ12 acres (space available)x 1ϩx 2Յ1 facility x 1,x 2,x 3,x 4ϭ0 or 1where Z ϭexpected daily usage (people per day)x 1ϭconstruction of a swimming pool x 2ϭconstruction of a tennis center x 3ϭconstruction of an athletic field x 4ϭconstruction of a gymnasium In this model,the decision variables can have a solution value of either zero or one.If a facility is not selected for construction,the decision variable representing it will have a value of zero.If a facility is selected,its decision variable will have a value of one.The last constraint,x 1ϩx 2Յ1,reflects the contingency that either the swimming pool (x 1) or the tennis center (x 2) can be constructed,but not both.In order for the sum of x 1and x 2to be less than or equal to one,either of the variables can have a value of one,or both variables can equal zero.This is also referred to as a mutually exclusive constraint.To apply the branch and bound method,the following four constraints have to be added to the model in place of the single restriction x 1,x 2,x 3,x 4ϭ0 or 1.x1Յ1x 2Յ1x 3Յ1x 4Յ1The only other change in the normal branch and bound method is at step 3.Once the variable x j with the greatest fractional part has been determined,the two new constraints The branch and bound methodcan be used for 0–1 integer prob-lems by adding “Յ1”constraintsfor each variable.Problemsdeveloped from this variable are x jϭ0 and x jϭ1.These two new constraints will formthe two branches at each node.Another method for solving 0–1 integer problems is implicit enumeration.In implicitenumeration,obviously infeasible solutions are eliminated and the remaining solutions areevaluated (i.e.,enumerated) to see which is the best.This approach will be demonstratedusing our original 0–1 example model for selecting a recreational facility (i.e.,without thex jՅ1 constraints).The complete enumeration(i.e.,the list of all possible solution sets) for this model is asfollows.1.Consider the following linear programming modelmaximize Zϭ5x1ϩ4x2In implicit enumeration all fea-sible solutions are evaluated to seewhich is best.Solution x1x2x3x4Feasibility Z Value10000Feasible021000Feasible30030100Feasible9040010Feasible40050001Feasible15061100Infeasibleϱ71010Feasible70081001Infeasibleϱ90110Feasible490100101Feasible240110011Feasible550121110Infeasibleϱ131011Infeasibleϱ141101Infeasibleϱ150111Infeasibleϱ161111InfeasibleϱSolutions 6,12,14,and 16 can be immediately eliminated because they violate the thirdconstraint,x1ϩx2Յ1.Solutions 8,13,and 15 can also be eliminated because they violatethe other two constraints.This leaves eight possible solution sets (assuming that solution1—i.e.,choosing none of the recreational facilities—can be eliminated) for consideration.After evaluating the objective function value of these eight solutions,we find the best solu-tion to be 7,with x1ϭ1,x2ϭ0,x3ϭ1,x4ϭ0.Within the context of the example,thissolution indicates that a swimming pool (x1) and an athletic field (x3) should be con-structed and that these facilities will generate an expected usage of700 people per day.The process of eliminating infeasible solutions and then evaluating the feasible solu-tions to see which is best is the basic principle behind implicit enumeration.However,implicit enumeration is usually done more systematically,by evaluating solutions withbranching diagrams like those used in the branch and bound method,rather than by sort-ing through a complete enumeration as in this previous example.subject to3x1ϩ4x2Յ10x1,x2Ն0 and integera.Solve this model using the branch and bound method.b.Demonstrate the solution partitioning graphically.2.Solve the following linear programming model using the branch and bound method.minimize Zϭ3x1ϩ6x2subject to7x1ϩ3x2Ն40x1,x2Ն0 and integer3. A tailor makes wool tweed sport coats and wool slacks.He is able to get a shipment of150 squareyards of wool cloth from Scotland each month to make coats and slacks,and he has 200 hours of his own labor to make them each month.A coat requires 3 square yards of wool and 10 hours to make,and a pair of pants requires 5 square yards of wool and 4 hours to make.He earns $50 in profit from each coat he makes and $40 from each pair of slacks.He wants to know how many coats and slacks to produce to maximize profit.a.Formulate an integer linear programming model for this problem.b.Determine the integer solution to this problem using the branch and bound parethis solution with the solution without integer restrictions and indicate if the rounded-down solution would have been optimal.4. A jeweler and her apprentice make silver pins and necklaces by hand.Each week they have 80 hoursof labor and 36 ounces of silver available.It requires 8 hours of labor and 2 ounces of silver to make a pin,and 10 hours of labor and 6 ounces of silver to make a necklace.Each pin also contains a small gem of some kind.The demand for pins is no more than six per week.A pin earns the jeweler $400 in profit,and a necklace earns $100.The jeweler wants to know how many of each item to make each week in order to maximize profit.a.Formulate an integer programming model for this problem.b.Solve this model using the branch and bound pare this solution with the solu-tion without integer restrictions and indicate if the rounded-down solution would have been optimal.5. A glassblower makes glass decanters and glass trays on a weekly basis.Each item requires 1 poundof glass,and the glassblower has 15 pounds of glass available every week.A glass decanter requires4 hours of labor,a glass tray requires only 1 hour of labor,and the glassblower works 25 hoursa week.The profit from a decanter is $50,and the profit from a tray is $10.The glassblower wantsto determine the total number of decanters (x1) and trays (x2) that he needs to produce in order to maximize his profit.a.Formulate an integer programming model for this problem.b.Solve this model using the branch and bound method.c.Demonstrate the solution partitioning graphically.6.The Livewright Medical Supplies Company has a total of12 salespeople it wants to assign tothree regions—the South,the East,and the Midwest.A salesperson in the South earns $600 in profit per month for the company,a salesperson in the East earns $540,and a salesperson in the Midwest earns $375.The southern region can have a maximum assignment of5 salespeople.The company has a total of$750 per day available for expenses for all 12 salespeople.A sales-person in the South has average expenses of$80 per day,a salesperson in the East has average expenses of$70 per day,and a salesperson in the Midwest has average daily expenses of$50.The company wants to determine the number of salespeople to assign to each region to maximize profit.a.Formulate an integer programming model for this problem.b.Solve this model using the branch and bound method.7.Helen Holmes makes pottery by hand in her basement.She has 20 hours available each week tomake bowls and vases.A bowl requires 3 hours of labor,and a vase requires 2 hours of labor.It requires 2 pounds of special clay to make a bowl and 5 pounds to produce a vase;she is able to acquire 35 pounds of clay per week.She sells her bowls for $50 and her vases for $40.She wants to know how many of each item to make each week in order to maximize her revenue.a.Formulate an integer programming model for this problem.b.Solve this model using the branch and bound pare this solution with the solu-tion with integer restrictions and indicate if the rounded-down solution would have been optimal.uren Moore has sold her business for $500,000 and wants to invest in condominium units(which she intends to rent) and land (which she will lease to a farmer).She estimates that she will receive an annual return of$8,000 for each condominium and $6,000 for each acre of land.A con-dominium unit costs $70,000,and land is $30,000 per acre.A condominium will cost her $1,000 per unit and an acre of land $2,000 for maintenance and uren wants to know how much to invest in condominiums and land in order to maximize her annual return.a.Formulate a mixed integer programming model for this problem.b.Solve this model using the branch and bound method.9.The owner of the Consolidated Machine Shop has $10,000 available to purchase a lathe,a press,a grinder,or some combination thereof.The following 0–1 integer linear programming model hasbeen developed for determining which of the three machines (lathe,x1;press,x2;grinder,x3) should be purchased in order to maximize the annual profit.maximize Zϭ1,000x1ϩ700x2ϩ800x3(profit,$)subject to5,000x1ϩ6,000x2ϩ4,000x3Յ10,000 (cost,$)x1,x2,x3ϭ0 or 1Solve this model using the branch and bound method.10.Solve the following mixed integer linear programming model using the branch and bound method.maximize Zϭ5x1ϩ6x2ϩ4x3subject to5x1ϩ3x2ϩ6x3Յ20x1ϩ3x2Յ12x1,x3Ն0x2Ն0 and integer11.Solve problem 9 using the implicit enumeration method.12.Consider the following linear programming model.maximize Zϭ20x1ϩ30x2ϩ10x3ϩ40x4subject to2x1ϩ4x2ϩ3x3ϩ7x4Յ1010x1ϩ7x2ϩ20x3ϩ15x4Յ40x1ϩ10x2ϩx3Յ10x1,x2,x3,x4= 0 or 1a.Solve this problem using the implicit enumeration method.b.What difficulties would be encountered with the implicit enumeration method if this problemwere expanded to contain five or more variables and more constraints?。