【正文】
用 EXCEL求解運(yùn)籌學(xué)問(wèn)題 主 要 內(nèi) 容 1. 用 Excel Solver 求解線性規(guī)劃 2. 用 Excel Solver Table 進(jìn)行敏感性分析 3. 用 Excel Solver 求解運(yùn)輸問(wèn)題和指派問(wèn)題 4. 用 Excel Solver求解網(wǎng)絡(luò)問(wèn)題 5. 用 Excel Solver 做線性回歸分析 Excel Solver 進(jìn)行決策分析 1. 應(yīng)用 Excel 求解線性規(guī)劃問(wèn)題 (1)Excel Solver 的安裝 Excel工具菜單中選擇加載宏 加載宏以后 , 在工具菜單中出現(xiàn)規(guī)劃求解 某企業(yè)的產(chǎn)品生產(chǎn)數(shù)據(jù)如下表 分工廠 單位產(chǎn)品生產(chǎn)時(shí)間 每周可利用時(shí)間 門(mén) 窗 1 1小時(shí) 0 4小時(shí) 2 0 2小時(shí) 12小時(shí) 3 3小時(shí) 2小時(shí) 18小時(shí) 單位利潤(rùn) $ 300 500 理論模型 ??????????????0,18231224..500300m a x21212121xxxxxxtsxxz(2) 求解如下的線性規(guī)劃問(wèn)題 第一步:選擇決策變量單元格 決策變量的初始值一般賦 0,并用較醒目的顏色表示。 產(chǎn)品生產(chǎn)問(wèn)題D o o r s W i n d o w sU n i t P r o f i t $300 $500H o u r sA v a i l a b l eP l a n t 1 1 0 4P l a n t 2 0 2 12P l a n t 3 3 2 18D o o r s W i n d o w sU n i t s P r o d u c e d 0 0H o u r s U s e d P e r U n i t P r o d u c e d第二步:目標(biāo)單元格,用函數(shù)公式表示 并用較醒目的顏色表示。 D o o r s W i n d o w sU n i t P r o f i t $300 $500H o u r sA v a i l a b l eP l a n t 1 1 0 4P l a n t 2 0 2 12P l a n t 3 3 2 18D o o r s W i n d o w s T o t a l P r o f i tU n i t s P r o d u c e d 1 1 $800H o u r s U s e d P e r U n i t P r o d u c e d1112GT o t a l P r o f i t= S U M P R OD U C T ( U n i t P r o f i t , U n i t s P r o d u c e d )第三步:約束條件左邊項(xiàng)用函數(shù)表示 D o o r s W i n d o w sU n i t P r o f i t $300 $500H o u r s H o u r sU s e d A v a i l a b l eP l a n t 1 1 0 1 = 4P l a n t 2 0 2 2 = 12P l a n t 3 3 2 5 = 18D o o r s W i n d o w s T o t a l P r o f i tU n i t s P r o d u c e d 1 1 $800H o u r s U s e d P e r U n i t P r o d u c e d56789EH o u r sU s e d= S U M P R O D U C T ( C 7 : D 7 , U n i t s P r o d u c e d )= S U M P R O D U C T ( C 8 : D 8 , U n i t s P r o d u c e d )= S U M P R O D U C T ( C 9 : D 9 , U n i t s P r o d u c e d )第四步 : 激活規(guī)劃求解 , 確定可變單元格和目標(biāo)單元格 D o o r s W i n d o w sU n i t P r o f i t $300 $500H o u r s H o u r sU s e d A v a i l a b l eP l a n t 1 1 0 1 = 4P l a n t 2 0 2 2 = 12P l a n t 3 3 2 5 = 18D o o r s W i n d o w s T o t a l P r o f i tU n i t s P r o d u c e d 1 1 $800H o u r s U s e d P e r U n i t P r o d u c e d第五步 : 增加約束條件 D o o r s W i n d o w sU n i t P r o f i t $300 $500H o u r s H o u r sU s e d A v a i l a b l eP l a n t 1 1 0 1 = 1P l a n t 2 0 2 2 = 12P l a n t 3 3 2 5 = 18D o o r s W i n d o w s T o t a l P r o f i tU n i t s P r o d u c e d 1 1 $800H o u r s U s e d P e r U n i t P r o d u c e d第六步 : 完成求解對(duì)話框 第七步 :求解方式的選擇 第八步 : 從求解結(jié)果對(duì)話框選擇所要的報(bào)告 W y n d o r G l a s s C o . P r o d u c t M i x P r o b l e mD o o r s W i n d o w sU n i t P r o f i t $300 $500H o u r s H o u r sU s e d A v a i l a b l eP l a n t 1 1 0 2 = 4P l a n t 2 0 2 12 = 12P l a n t 3 3 2 18 = 18D o o r s W i n d o w s T o t a l P r o f i tU n i t s P r o d u c e d 2 6 $ 3 , 6 0 0H o u r s U s e d P e r U n i t P r o d u c e d求解結(jié)果報(bào)告 \靈敏性報(bào)告 \極限報(bào)告 Microsoft Excel 運(yùn)算結(jié)果 報(bào)告工作表 [ B o o k 1 ] S h e e t 1報(bào)告的建立: 2 0 0 6 7 1 8 1 0 : 0 4 : 3 3目標(biāo)單元格 (最大值)單元格 名字 初值 終值$G$12 Units Produced Total Profit $3,600 $3,600可變單元格單元格 名字 初值 終值$C$12 Units Produced Doors 2 2$D$12 Units Produced Windows 6 6約束單元格 名字 單元格值 公式 狀態(tài) 型數(shù)值$E$7 Plant 1 Used 2 $E$7=$G$7 未到限制值 2$E$8 Plant 2 Used 12 $E$8=$G$8 到達(dá)限制值 0$E$9 Plant 3 Used 18 $E$9=$G$9 到達(dá)限制值 0 求解結(jié)果報(bào)告 Microsoft Excel 敏感 性報(bào)告工作表 [ B o o k 1 ] S h e e t 1報(bào)告的建立: 2 0 0 6 7 1 8 1 0 : 0 4 : 4 0可變單元格終 遞減 目標(biāo)式 允許的 允許的單元格 名字 值 成本 系數(shù) 增量 減量$C$12 Units Produced Doors 2 0 300 450 300$D$12 Units Produced Windows 6 0 500 1E+30 300約束終 陰影 約束 允許的 允許的單元格 名字 值 價(jià)格 限制值 增量 減量$E$7 Plant 1 Used 2 0 4 1E+30 2$E$8 Plant 2 Used 12 150 12 6 6$E$9 Plant 3 Used 18 100 18 6 6 靈敏性報(bào)告 Microsoft Excel 極限值報(bào)告工作表 [Book1]Sheet1報(bào)告的建立: 2022718 10:04:47目標(biāo)式單元格 名字 值$G$12 Units Produced Total Profit $3,600變量 下限 目標(biāo)式 上限 目標(biāo)式單元格 名字 值 極限 結(jié)果 極限 結(jié)果$C$12 Units Produced Doors 2 0 3000 2 3600$D$12 Units Produced Windows 6 0 600 6 3600 極限值報(bào)告 2. 用 Excel Solver Table 進(jìn)行敏感性分析 Solver Table宏的安裝使用 1. Be sure that the Solver is installed. If it is, it should appear under the Tools menu. 2. Quit Excel if it is currently running. 3. Save the Solver file to the exact same location as the file (C:\program files\Microsoft Office\ Office\Library\Solver\) (If it is not, use the Find mand to find the file). 4. Launch Excel. 5. Under the Tools menu, choose the AddIns mand. 6. Click the Solver Table checkbo