Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

3.

10
Sailco Corporation must determine how many sailboats should be produced during each
of the next four quarters (one quarter three months). The demand during each of the
next four quarters is as follows: first quarter, 40 sailboats; second quarter, 60 sailboats;
third quarter, 75 sailboats; fourth quarter, 25 sailboats. Sailco must meet demands on
time. At the beginning of the first quarter, Sailco has an inventory of 10 sailboats. At the
beginning of each quarter, Sailco must decide how many sailboats should be produced
during that quarter. For simplicity, we assume that sailboats manufactured during a quarter can be used to meet
demand for that quarter. During each quarter, Sailco can produce
up to 40 sailboats with regular-time labor at a total cost of $400 per sailboat. By having
employees work overtime during a quarter, Sailco can produce additional sailboats with
overtime labor at a total cost of $450 per sailboat.
At the end of each quarter (after production has occurred and the current quarter’s demand has been satisfied), a
carrying or holding cost of $20 per sailboat is incurred. Use
linear programming to determine a production schedule to minimize the sum of production and inventory costs
during the next four quarters.

Solution
EX3 – Fixed Charge IP

Gandhi Cloth Company is capable of manufacturing three types of clothing: shirts, shorts,
and pants. The manufacture of each type of clothing requires that Gandhi have the appropriate type of
machinery available. The machinery needed to manufacture each type
of clothing must be rented at the following rates: shirt machinery, $200 per week; shorts
machinery, $150 per week; pants machinery, $100 per week. The manufacture of each
type of clothing also requires the amounts of cloth and labor shown in Table 2. Each week,
150 hours of labor and 160 sq yd of cloth are available. The variable unit cost and selling price for each type of
clothing are shown in Table 3. Formulate an IP whose solution
will maximize Gandhi’s weekly profits.
EX1: Capital Budgeting IP
To graduate from Basketweavers University with a major in operations research, a student must complete at least two math
courses, at least two OR courses, and at least two computer courses. Some courses can be used to fulfill more than one
requirement: Calculus can fulfill the math requirement; operations research, math and OR requirements; data structures,
computer and math requirements; business statistics, math and OR requirements; computer simulation, OR and computer
requirements; introduction to computer programming, computer requirement; and forecasting, OR and math requirements.
Some courses are prerequisites for others: Calculus is a prerequisite for business statistics (if statistics then calculus) ;
introduction to computer programming is a prerequisite for computer simulation and for data structures; and business
statistics is a prerequisite for forecasting. Formulate an IP that minimizes the number of courses needed to satisfy the major
requirements.

20x+2500 = 25*500 + 20(x-500)

15x+7500 = 25*500 + 20*500 + 15(x-1000)


Ex: Giải bài toán hỗn hợp sản phẩm bằng B&B
Max z = 20xt + 30xn
s.t 2xt + xn <= 6
xt + 2xn <= 8
xt – xn <= 1
xt <=2
xt >=0, xn >=0
rẽ nhánh theo xt: bài toán + xt <=1 → xn ≤ 3 ; xn ≥ 4
; bài toán + xt >=2

Phương pháp B&B


 Chọn biến để rẽ nhánh:
Bất kỳ hoặc rẽ nhánh theo biến có ý nghĩa kinh tế quan trọng nhất (có đóng góp lớn nhất vào
hàm mục tiêu)
 Điều kiện dừng rẽ nhánh: 1 btoan con LP sẽ ko cần phải tiếp tục rẽ khi btoan con đó:
Ko có nghiệm
Có nghiệm tối ưu với tất cả các biễn nhận giá trị nguyên
Có giá trị z của nghiệm tối ưu ko tốt hơn giới hạn dưới hiện có ( bài max)
Thực hiện B&B
 Quy tắc chọn nhánh rẽ:
Back-tracking: rẽ nhánh theo btoan con tạo ra gần nhất
Jump-tracking: rẽ nhánh theo btoan con có gtri z tốt nhất hiện có
 Cập nhật gtri nghiệm tối ưu:
Cập nhật gtri z tốt nhất hiện thời làm giới hạn xét các btoan con tiếp theo
 Quá trình kết thức khi:
Toàn bộ các bài toán con đã đc dừng rẽ nhánh
Nghiệm của btoan IP chính là nghiệm tốt nhất hiện có
Chapter 7
Btoan lập kế hoạch sx
Một cty lập kế hoạch sx cho 4 tháng tới
Nhu cầu các tháng: 100, 200, 280, 300 dvi
Năng lực sx tương ứng: 50, 180, 280, 270 dvi
Hàng có thể giao ngay, dự trữ, giao chậm
Chi phí: sx= 4$/dvi
Lưu kho= 0.5$/dvi/tháng
Giao hàng chậm= 2$/dvi/tháng
Chuyển đổi sang bài toán vận tải
Hệ thống vận tải Hệ thống sản xuất
Điểm cung i Kỳ sx i
Điểm cầu j Kỳ tiêu thụ j
Lượng cung tại i Năng lực sx của kỳ i
Nhu cầu tại j Nhu cầu của khách trong kỳ
Chi phí từ i sang j
Lượng hàng từ i đến j

You might also like