Cost = c=c1x+c2y
where c1 is cost of travelling on water and c2 is cost of travelling on land.
As per the given condition, c1=c22
Hence the equation becomes:
c=cx2+cy
=>c=c(x/2+y)
Also, as per the given figure, the relation between x and y can be represented as follows: y2=(a−x)2+d2
=>y=√(a−x)2+d2⋯1
The objective is to minimize the cost function c. So ddxc[x2+√(a−x)2+d2]=0 Solving the above differential equation: 12−2(a−x)2√(a−x)2+d2=0 =>12=(a−x)√(a−x)2+d2 Squaring both sides, we get: =>14=(a−x)2(a−x)2+d2 =>4(a−x)2=(a−x)2+d2 =>3(a−x)2=d2=>x=a−d√3 From equation 1 above, y=2√3d
=>c=c(x/2+y)
Also, as per the given figure, the relation between x and y can be represented as follows: y2=(a−x)2+d2
=>y=√(a−x)2+d2⋯1
The objective is to minimize the cost function c. So ddxc[x2+√(a−x)2+d2]=0 Solving the above differential equation: 12−2(a−x)2√(a−x)2+d2=0 =>12=(a−x)√(a−x)2+d2 Squaring both sides, we get: =>14=(a−x)2(a−x)2+d2 =>4(a−x)2=(a−x)2+d2 =>3(a−x)2=d2=>x=a−d√3 From equation 1 above, y=2√3d
No comments:
Post a Comment