<< Chapter < Page Chapter >> Page >
Chương này trình bày một cách chi tiết nội dung của giải thuật đơn hình. Sau phần cơ sở lý thuyết của giải thuật là các ví dụ tương ứng. Các ví dụ được trình bày đúng theo các bước của giải thuật. Kiến thức trong chương này cần thiết cho việc lập trình giải quy hoạch tuyến tính trên máy tính.

GIẢI THUẬT ĐƠN HÌNH CƠ BẢN

Chương này trình bày một phương pháp để giải bài toán quy hoạch tuyến tính đó là phương pháp đơn hình. Phương pháp đơn hình được George Bernard Dantzig đưa ra năm 1947 cùng lúc với việc ông khai sinh ra quy hoạch tuyến tính. Đây là một phương pháp thực sự có hiệu quả để giải những bài toán quy hoạch tuyến tính cở lớn trong thực tế. Với cách nhìn hiện đại ý tưởng của phương pháp đơn hình rất đơn giản. Có nhiều cách tiếp cận phương pháp đơn hình, chương này trình bày một trong các cách đó.

Cơ sở xây dựng giải thuật đơn hình cơ bản

Xét bài toán quy hoạch tuyến tính chính tắc :

max z ( x ) = c T x Ax = b x 0 { alignl { stack { size 12{"max"" z" \( x \) =c rSup { size 8{T} } x} {} #alignl { stack { left lbrace ital "Ax"=b {} #right none left lbrace x>= 0 {} # right no } } lbrace {}} } {}

Giả sử rằng B0 là một cơ sở khả thi xuất phát của bài toán ( không nhất thiết là m cột đầu tiên của ma trận A ) . Thuật toán đơn hình cơ bản được xây dựng dựa trên các bước sau :

a-Gán B = B0 và l=0 ( số lần lặp )

b-l = l+1

c-Với cơ sở hiện thời B tính :

x B = B 1 b x N = 0 righ x = size 12{x=alignl { stack { left [x rSub { size 8{B} } =B rSup { size 8{ - 1} } b {} #right ] left [x rSub { size 8{N} } =0 {} #righ]} } \[ \]} {} : phương án cơ sở khả thi tương ứng

b ¯ = B 1 b size 12{ {overline {b}} =B rSup { size 8{ - 1} } b} {}

c ¯ N T = c N T c N T B 1 N size 12{ {overline {c}} rSub { size 8{N} } rSup { size 8{T} } =c rSub { size 8{N} } rSup { size 8{T} } - c rSub { size 8{N} } rSup { size 8{T} } B rSup { size 8{ - 1} } N} {} : dấu hiệu tối ưu

d-Nếu c ¯ N T = c N T c B T B 1 N 0 size 12{ {overline {c}} rSub { size 8{N} } rSup { size 8{T} } =c rSub { size 8{N} } rSup { size 8{T} } - c rSub { size 8{B} } rSup { size 8{T} } B rSup { size 8{ - 1} } N<= 0} {} thì giải thuật dừng và bài toán có phương án tối ưu là x .

Ngược lại, nếu tồn tại s sao cho c ¯ s > 0 size 12{ {overline {c}} rSub { size 8{s} }>0} {} ( c ¯ s size 12{ {overline {c}} rSub { size 8{s} } } {} là thành phần thứ s của c ¯ N size 12{ {overline {c}} rSub { size 8{N} } } {} ) thì sang bước e

e-Tính : A ¯ s = B 1 A s size 12{ {overline {A}} rSub { size 8{s} } =B rSup { size 8{ - 1} } A rSub { size 8{s} } } {} ( As là cột thứ s của A )

Nếu A ¯ s 0 size 12{ {overline {A}} rSub { size 8{s} }<= 0} {} thì giải thuật dừng và phương án tối ưu không giới nội.

Ngược lại, nếu tồn tại a ¯ is A ¯ s size 12{ {overline {a}} rSub { size 8{ ital "is"} } in {overline {A}} rSub { size 8{s} } } {} a ¯ is > 0 size 12{ {overline {a}} rSub { size 8{ ital "is"} }>0} {} thì tính :

x s = min b ¯ i a ¯ is , a ¯ is > 0 = b ¯ r a ¯ rs size 12{ {x} cSup { size 8{ and } } rSub { size 8{s} } ="min" left lbrace { { {overline {b}} rSub { size 8{i} } } over { {overline {a}} rSub { size 8{ ital "is"} } } } , {overline {a}} rSub { size 8{ ital "is"} }>0 right rbrace = { { {overline {b}} rSub { size 8{r} } } over { {overline {a}} rSub { size 8{ ital "rs"} } } } } {} ( i = 1  m)

a ¯ is size 12{ {overline {a}} rSub { size 8{ ital "is"} } } {} là các thành phần của A ¯ s size 12{ {overline {A}} rSub { size 8{s} } } {} .

x s size 12{ {x} cSup { size 8{ and } } rSub { size 8{s} } } {} là thành phần thứ s của phương án mới x size 12{ {x} cSup { size 8{ and } } } {} .

f-Gọi xt là biến tương ứng với cột thứ r của cơ sở B. Khi đó biến xs sẽ nhận giá trị x s > 0 size 12{ {x} cSup { size 8{ and } } rSub { size 8{s} }>0} {} ( vào cơ sở ), biến xt sẽ nhận giá trị x t = 0 size 12{ {x} cSup { size 8{ and } } rSub { size 8{t} } =0} {} ( ra khỏi cơ sở ). Như vậy phương án mới x size 12{ {x} cSup { size 8{ and } } } {} tương ứng với cơ sở mới B size 12{ {B} cSup { size 8{ and } } } {} ( thay đổi cơ sở ) được xác định như sau :

B size 12{ {B} cSup { size 8{ and } } } {} = B  { t } - { s }

g-Gán B = B size 12{ {B} cSup { size 8{ and } } } {} và quay về b .

Về mặt hình học, giải thuật này được hiểu như là một quá trình duyệt qua các điểm cực biên của đa diện lồi S các phương án khả thi của bài toán.

Về mặt đại số, giải thuật này được hiểu như là một quá trình xác định một chuỗi các ma trận cơ sở kề B0 B1 B2 ......... mà các phương án cơ sở tương ứng x0 x1 x2........ là ngày càng tốt hơn, tức là :

z(x0)<z(x1)<z(x2) .............

Chú ý :

Nếu cơ sở ban đầu B0 chính là m cột đầu tiên của ma trận A thì trong giải thuật trên t chính là r .

Định lý về sự hội tụ

Với giả thiết bài toán không suy biến, giải thuật đơn hình trên đây sẽ hội tụ về phương án tối ưu sau một số hữu hạn lần lặp.

Bằng sự thống kê người thấy rằng nói chung giải thuật đơn hình sẽ hội tụ với số lần lặp ít nhất phải là từ m đến 3m ( m là số ràng buộc ) .

Giải thuật đơn hình cơ bản

Xét bài toán quy hoạch tuyến tính chính tắc

min/max z ( x ) = c T x Ax = b x 0 { alignl { stack { size 12{" min/max "z \( x \) =c rSup { size 8{T} } x" "} {} #alignl { stack { left lbrace ital "Ax"=b" " {} #right none left lbrace x>= 0" " {} # right no } } lbrace {}} } {}

Giả sử rằng sau khi hoán vị các cột trong A ta chọn được ma trận cơ sở B thoả sự phân hoạch sau đây :

A = [ B N ]

c T = [ c B c N ] ư size 12{c rSup { size 8{T} } = \[ c rSub { size 8{B} } " "c rSub { size 8{N} } \] ư} {}

x T = [ x B x N ] ư size 12{x rSup { size 8{T} } = \[ x rSub { size 8{B} } " "x rSub { size 8{N} } \] ư} {}

Giải thuật đơn hình cơ bản được thực hiện như sau :

Questions & Answers

differentiate between demand and supply giving examples
Lambiv Reply
differentiated between demand and supply using examples
Lambiv
what is labour ?
Lambiv
how will I do?
Venny Reply
how is the graph works?I don't fully understand
Rezat Reply
information
Eliyee
devaluation
Eliyee
t
WARKISA
hi guys good evening to all
Lambiv
multiple choice question
Aster Reply
appreciation
Eliyee
explain perfect market
Lindiwe Reply
In economics, a perfect market refers to a theoretical construct where all participants have perfect information, goods are homogenous, there are no barriers to entry or exit, and prices are determined solely by supply and demand. It's an idealized model used for analysis,
Ezea
What is ceteris paribus?
Shukri Reply
other things being equal
AI-Robot
When MP₁ becomes negative, TP start to decline. Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of lab
Kelo
Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of labour (APL) and marginal product of labour (MPL)
Kelo
yes,thank you
Shukri
Can I ask you other question?
Shukri
what is monopoly mean?
Habtamu Reply
What is different between quantity demand and demand?
Shukri Reply
Quantity demanded refers to the specific amount of a good or service that consumers are willing and able to purchase at a give price and within a specific time period. Demand, on the other hand, is a broader concept that encompasses the entire relationship between price and quantity demanded
Ezea
ok
Shukri
how do you save a country economic situation when it's falling apart
Lilia Reply
what is the difference between economic growth and development
Fiker Reply
Economic growth as an increase in the production and consumption of goods and services within an economy.but Economic development as a broader concept that encompasses not only economic growth but also social & human well being.
Shukri
production function means
Jabir
What do you think is more important to focus on when considering inequality ?
Abdisa Reply
any question about economics?
Awais Reply
sir...I just want to ask one question... Define the term contract curve? if you are free please help me to find this answer 🙏
Asui
it is a curve that we get after connecting the pareto optimal combinations of two consumers after their mutually beneficial trade offs
Awais
thank you so much 👍 sir
Asui
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities, where neither p
Cornelius
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities,
Cornelius
Suppose a consumer consuming two commodities X and Y has The following utility function u=X0.4 Y0.6. If the price of the X and Y are 2 and 3 respectively and income Constraint is birr 50. A,Calculate quantities of x and y which maximize utility. B,Calculate value of Lagrange multiplier. C,Calculate quantities of X and Y consumed with a given price. D,alculate optimum level of output .
Feyisa Reply
Answer
Feyisa
c
Jabir
the market for lemon has 10 potential consumers, each having an individual demand curve p=101-10Qi, where p is price in dollar's per cup and Qi is the number of cups demanded per week by the i th consumer.Find the market demand curve using algebra. Draw an individual demand curve and the market dema
Gsbwnw Reply
suppose the production function is given by ( L, K)=L¼K¾.assuming capital is fixed find APL and MPL. consider the following short run production function:Q=6L²-0.4L³ a) find the value of L that maximizes output b)find the value of L that maximizes marginal product
Abdureman
types of unemployment
Yomi Reply
What is the difference between perfect competition and monopolistic competition?
Mohammed
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Quy hoạch tuyến tính. OpenStax CNX. Aug 08, 2009 Download for free at http://cnx.org/content/col10903/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Quy hoạch tuyến tính' conversation and receive update notifications?

Ask