- #1
evinda
Gold Member
MHB
- 3,836
- 0
The following linear programming problem is given and I want to solve it graphically.
$$\max (x-y) \\ x+y \leq 4 \\ 2x-y \geq 2 \\ x,y \geq 0$$
I have drawed the lines :
$$(\ell_1) x+y=4 \\ (\ell_2) 2x-y=2 \\ (\ell_3) x=0 \\ (\ell_4) y=0$$
as follows:
View attachment 5092I have drawed the line $2x-y=0$ taking into consideration the following:
For $y=0 \Rightarrow x=1$ and for $y=2 \Rightarrow x=\frac{1}{2}$.But I found that this is the graph of $2x-y=2$ :View attachment 5093
So are the points that I have found above wrong? Or where is my mistake? (Thinking)
$$\max (x-y) \\ x+y \leq 4 \\ 2x-y \geq 2 \\ x,y \geq 0$$
I have drawed the lines :
$$(\ell_1) x+y=4 \\ (\ell_2) 2x-y=2 \\ (\ell_3) x=0 \\ (\ell_4) y=0$$
as follows:
View attachment 5092I have drawed the line $2x-y=0$ taking into consideration the following:
For $y=0 \Rightarrow x=1$ and for $y=2 \Rightarrow x=\frac{1}{2}$.But I found that this is the graph of $2x-y=2$ :View attachment 5093
So are the points that I have found above wrong? Or where is my mistake? (Thinking)