Get Answers to all your Questions

header-bg qa

A man rides his motorcycle at the speed of 50 km/hour. He has to spend Rs 2per km on petrol. If he rides it at a faster speed of 80 km/hour, the petrol cost increases to Rs 3 per km. He has at most Rs 120 to spend on petrol and one hour’s time. He wishes to find the maximum distance that he can travel. Express this problem as a linear programming problem.

Answers (1)

If we see the man rides his motorcycle for a distance of X km at a speed of 50km/hr then he will have to spend Rs.2 per km for petrol.

If we assume that the man rides his motorcycle for a distance of Y km at a speed of 80km/hr, then he will need to spend Rs.3 per km on petrol.

Assuming that he has to spend Rs.120 on petrol for a total distance so the constraint becomes,

2x+3y\leq120.....(i)

Now also given he has at most one hour's time for total distance to be covered, so the constraint becomes
\frac{x}{50}+\frac{y}{80} \leq 1$ \{as distance =speed x time $\}
Now taking the LCM as 400, we get
\Rightarrow 8 x+5 y \leq 400..........(ii)
And \mathrm{x} \geq 0, \mathrm{y} \geq 0 [non-negative constraint]

He want to find out the maximum distance travelled, here total distance, \mathrm{Z}=\mathrm{x}+\mathrm{y}
Now, we have to maximize the distance, i.e., maximize \mathrm{Z}=\mathrm{x}+\mathrm{y}
So, to maximize distance we have to maximize, \mathrm{Z}=\mathrm{x}+\mathrm{y}, subject to
\\2 x+3 y \leq 120 \\8 x+5 y \leq 400 \\x \geq 0, y \geq 0

 

 

Posted by

infoexpert22

View full answer