【線性規劃:可行區域及最大值、最小值】Linear Programming: Feasible Region and the Maximum or Minimum Value

SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20

逐條畫出不等式,塗出所有條件同時成立的可行區域,求出它的頂點,再把頂點代入目標函數 P = ax + by。最大值及最小值必定出現在頂點。Draw each inequality, shade the feasible region where all hold, find its vertices (corner points), and evaluate the objective function P = ax + by at each one. The maximum and minimum occur at vertices.

用 AI 逐步解線性規劃題目 Solve it with AI練習 37 條 DSE 模擬題 Practise 37 DSE-style questions
拖動 k:直線 2x + 3y = k 掃過塗了色的可行區域。它最後接觸的點是頂點 (4, 4),此時 k = 20,即例題 1 的最大值。 Drag k: the line 2x + 3y = k sweeps across the shaded feasible region. The last point it touches is the vertex (4, 4), where k = 20 is the maximum of Example 1. 自己試試 → Try it yourself →

線性規劃步驟 Linear Programming Steps

邊界線Boundary lines≤, ≥ 用實線;<, > 用虛線Solid for ≤, ≥; dashed for <, >
哪一邊?Which side?代入測試點,例如 (0, 0)Test a point such as (0, 0)
頂點Vertices解在每個角相交的兩條邊界方程Solve the two boundary equations that meet at each corner
最優值Optimum比較所有頂點的 PCompare P at all vertices
↑ 返回頁頂 Back to top

第一步:塗出符合不等式的一邊 Step 1: Shade the Side That Satisfies the Inequality

邊界線把平面分成兩邊。代入測試點,例如 (0, 0):若符合不等式,便塗出該點所在的一邊。≤, ≥ 用實線,<, > 用虛線。

A boundary line splits the plane in two. Test a point such as (0, 0): if it satisfies the inequality, shade its side. Use a solid line for ≤, ≥ and a dashed line for <, >.

移動測試點 P:在塗了色的一邊符合 x + y ≤ 8,在另一邊則不符合。 Slide the test point P: it satisfies x + y ≤ 8 on the shaded side and fails on the other. 自己試試 → Try it yourself →
↑ 返回頁頂 Back to top

線性規劃例題詳解 Worked Examples

例題 1 Example 1:求最大利潤 Maximise a profit

在 x ≥ 0, y ≥ 0, x + y ≤ 8, x + 2y ≤ 12 的條件下,求 P = 2x + 3y 的最大值。Find the maximum value of P = 2x + 3y subject to x ≥ 0, y ≥ 0, x + y ≤ 8, x + 2y ≤ 12.

  1. 頂點:(0, 0)、(8, 0)、(0, 6),以及 x + y = 8 與 x + 2y = 12 的交點 (4, 4)Vertices: (0, 0), (8, 0), (0, 6), and the meeting point of x + y = 8 and x + 2y = 12: (4, 4)
  2. 各頂點的 P:0、16、18、20P at the vertices: 0, 16, 18, 20

答案: Answer: 最大值 P = 20(在 (4, 4))Maximum P = 20 at (4, 4)

例題 2 Example 2:另一個目標函數 Another objective

在 x ≥ 0, y ≥ 0, 2x + y ≤ 10, x + 3y ≤ 15 的條件下,求 x + y 的最大值。Find the greatest value of x + y subject to x ≥ 0, y ≥ 0, 2x + y ≤ 10, x + 3y ≤ 15.

  1. 頂點:(0, 0)、(5, 0)、(0, 5),以及由 2x + y = 10、x + 3y = 15 得出的 (3, 4)Vertices: (0, 0), (5, 0), (0, 5), and (3, 4) from 2x + y = 10, x + 3y = 15
  2. x + y 的值:0, 5, 5, 7Values of x + y: 0, 5, 5, 7

答案: Answer: 7(在 (3, 4))7 at (3, 4)

↑ 返回頁頂 Back to top

💡 應試陷阱與秘訣 Exam Traps & Secrets

⚠️ 不要漏掉兩條斜線的交點 Do not forget the vertex from two slanted lines最優值常出現在兩條限制線的交點,必須解聯立方程才能求出。The optimum is often at the point where two constraint lines cross, which you must find by solving simultaneous equations.
⚠️ 整數解 Integer answers若 x 及 y 必須是整數,要檢查最優頂點附近的整點;頂點本身可能不符合要求。If x and y must be whole numbers, check lattice points near the best vertex; the vertex itself may not be allowed.
↑ 返回頁頂 Back to top

✏️ 自我測試:互動練習 Self-Test: Interactive Practice

溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。How to study: click any question to load it on the coordinate grid and check your steps.

(求最大值 Maximise)塗出 x ≥ 0, y ≥ 0, 3x + 2y ≤ 18, x + 4y ≤ 16 的區域,並求 5x + 4y 的最大值。Shade the region x ≥ 0, y ≥ 0, 3x + 2y ≤ 18, x + 4y ≤ 16 and find the maximum of 5x + 4y.
(應用題 Word problem)某店售賣 A、B 兩款貨品。列出存貨及時間限制的不等式,並求最佳組合。A shop sells packs of A and B. Write the constraints for a stock and time limit and find the best mix.
(解釋 Explain)為何線性函數在多邊形區域上的最大值會在頂點出現?Why does the maximum of a linear function on a polygon occur at a vertex?
↑ 返回頁頂 Back to top

線性規劃練習題(DSE 模擬題) Exercises: DSE-Style Practice

SketchMath 題庫內的 DSE 風格練習,選擇題及長題目均附解答。 DSE-style practice from the SketchMath question bank, with solutions for every MC and long question.

不等式及線性規劃 · 中五
29 條選擇題 29 MC · 8 條長題目 8 long questions

常見問題 Frequently Asked Questions

↑ 返回頁頂 Back to top

相關主題 Related Topics

聯立方程 Simultaneous Equations函數圖像變換 Transformations of Graphs不等式及線性規劃 Inequalities & Linear ProgrammingHKDSE 數學全部課題 HKDSE Math: all topicsDSE 數學公式表(全課題) HKDSE Maths Formula SheetDSE 數學練習(按年級) DSE Maths Practice by Form
線性規劃 DSE 練習題 Try a DSE Practice Question