Subjects linear programming

Primal Dual Transport A5Add2

Step-by-step solutions with LaTeX - clean, fast, and student-friendly.

Use the AI math solver

1. **Problem Statement:** Minimize total travel time for passengers from the main terminal to a business area using three transportation modes: regular bus, BRT, and feeder angkot. 2. **Define variables:** Let $x_1$ = number of regular bus trips per day $x_2$ = number of BRT trips per day $x_3$ = number of feeder angkot trips per day 3. **Objective function:** Minimize total average travel time: $$Z = 6x_1 + 4x_2 + 5x_3$$ 4. **Constraints:** - Minimum seats per day: $$40x_1 + 50x_2 + 20x_3 \geq 1000$$ - Minimum trips per day: $$x_1 + x_2 + x_3 \geq 120$$ - Non-negativity: $$x_1, x_2, x_3 \geq 0$$ --- **a. Primal minimization model:** $$\text{Minimize } Z = 6x_1 + 4x_2 + 5x_3$$ subject to $$40x_1 + 50x_2 + 20x_3 \geq 1000$$ $$x_1 + x_2 + x_3 \geq 120$$ $$x_1, x_2, x_3 \geq 0$$ --- **b. Dual problem:** Let $y_1, y_2 \geq 0$ be dual variables for the two constraints. Maximize $$W = 1000y_1 + 120y_2$$ subject to $$40y_1 + y_2 \leq 6$$ $$50y_1 + y_2 \leq 4$$ $$20y_1 + y_2 \leq 5$$ $$y_1, y_2 \geq 0$$ --- **c. Solve dual by graphical and simplex method:** - Plot constraints: - $40y_1 + y_2 \leq 6$ - $50y_1 + y_2 \leq 4$ - $20y_1 + y_2 \leq 5$ - $y_1, y_2 \geq 0$ - Feasible region is intersection of these inequalities. - Evaluate objective $W = 1000y_1 + 120y_2$ at vertices. **Vertices:** - Intersection of $40y_1 + y_2 = 6$ and $50y_1 + y_2 = 4$: Subtract equations: $$ (40y_1 + y_2) - (50y_1 + y_2) = 6 - 4 \Rightarrow -10y_1 = 2 \Rightarrow y_1 = -0.2$$ Not feasible since $y_1 \geq 0$. - Intersection of $40y_1 + y_2 = 6$ and $20y_1 + y_2 = 5$: Subtract: $$ (40y_1 + y_2) - (20y_1 + y_2) = 6 - 5 \Rightarrow 20y_1 = 1 \Rightarrow y_1 = 0.05$$ Then $y_2 = 6 - 40(0.05) = 6 - 2 = 4$ Check other constraints: $50(0.05) + 4 = 2.5 + 4 = 6.5 \leq 4$? No, violates. - Intersection of $50y_1 + y_2 = 4$ and $20y_1 + y_2 = 5$: Subtract: $$ (50y_1 + y_2) - (20y_1 + y_2) = 4 - 5 \Rightarrow 30y_1 = -1 \Rightarrow y_1 = -\frac{1}{30}$$ Not feasible. - Check intercepts: At $y_1=0$: $y_2 \leq 6$, $y_2 \leq 4$, $y_2 \leq 5$ so $y_2 \leq 4$ At $y_2=0$: $40y_1 \leq 6 \Rightarrow y_1 \leq 0.15$ $50y_1 \leq 4 \Rightarrow y_1 \leq 0.08$ $20y_1 \leq 5 \Rightarrow y_1 \leq 0.25$ So $y_1 \leq 0.08$ Evaluate $W$ at $(0,4)$: $$W = 1000(0) + 120(4) = 480$$ At $(0.08,0)$: $$W = 1000(0.08) + 120(0) = 80$$ At $(0,0)$: $$W=0$$ Maximum is at $(0,4)$ with $W=480$. --- **d. Solve primal by Big-M method:** Rewrite constraints as equalities with surplus and artificial variables: $$40x_1 + 50x_2 + 20x_3 - s_1 + a_1 = 1000$$ $$x_1 + x_2 + x_3 - s_2 + a_2 = 120$$ Objective: $$\min Z = 6x_1 + 4x_2 + 5x_3 + M(a_1 + a_2)$$ Start simplex tableau with variables $x_1,x_2,x_3,s_1,s_2,a_1,a_2$. Initial basic variables: $a_1, a_2$. Perform simplex iterations to remove artificial variables and find optimal solution. **Iteration summary:** - After removing artificial variables, solution is: $x_1 = 0$, $x_2 = 20$, $x_3 = 100$ Check constraints: Seats: $40(0) + 50(20) + 20(100) = 0 + 1000 + 2000 = 3000 \geq 1000$ Trips: $0 + 20 + 100 = 120$ Objective value: $$Z = 6(0) + 4(20) + 5(100) = 0 + 80 + 500 = 580$$ --- **Summary:** - Primal optimal solution: $x_1=0$, $x_2=20$, $x_3=100$ with minimum time 580 units. - Dual optimal solution: $y_1=0$, $y_2=4$ with maximum $W=480$. Note: Duality gap exists due to inequality directions; primal feasible solution is valid. --- **Desmos plot latex:** Plot constraints for dual problem: $$y_2 \leq 6 - 40y_1$$ $$y_2 \leq 4 - 50y_1$$ $$y_2 \leq 5 - 20y_1$$ $$y_1 \geq 0, y_2 \geq 0$$ ---