Skip to main content

SOLVING A REAL LIFE PROBLEM WITH A PICTURE

     John lives in a warm country. He has just 30 square meters of land. He can plant cocoa and pineapples. How much of pineapple and cocoa he has to plant in his plot to get maximum profit? This is a classical problem. It can be solved with graphs.

    Let x stand for the amount of cocoa and y for the amount of pineapple. When john harvests the crops, he will get a unit return of 3 dollars on the cocoa and of 2 dollars on the pineapples. His total return p will be  p = 3x+2y       ----(1)

    The profit p, we want to maximize. Planting comes with a cost. The unit cost of cocoa seed is 2 dollars and of pineapple, the seed is 1 dollar. Also, 4 dollars is required to cultivate both the crops in his land.

    Hence, the total cost c of growing the two crops is       c = 2x+y+4   -----(2)

     John has only 50 dollars in the bank. That is the first constraint. We write it mathematically as 

   c= 2x+y+4 < 50    ---(3)   constraint I

    The size of the field also provides the second constraint. The amount of space taken up by unit cocoa is one square meter and unit pineapple also takes one square meter land. The total amount of space s taken up by the two crops is   s=x+y -----(4)

   The size of the plot is 30 square meters. So s cannot exceed this value. s=x+y < 50    ----(5) constraint    -----II

                                                      

    It is clear that x and y both need to be greater than zero. They cannot be negative.

Solution:

     Take quantities of cocoa on the x-axis and that of pineapple on the y-axis. Convert the inequality (3) into an equation such as y = -2x+46 and plot the straight line for the equation in the graph. The points (x,y) that satisfy the inequality 3 are underneath that line (shaded area).

                        
                       ADVT: SELL ON AMAZON

    Next, we will convert inequality (5) into an equation y = -x+30 and also plot the straight line for it.



 Now the shaded region contains all the points (x,y) that satisfy both the constraints or in-equalities. The points are in the first quadrant and they are positive.

     "P is always maximized at one of the corner points of the shaded region". Here p is maximized at the corner point M.

    At M; x = 16, y = 14

hence p=3x+2y =3*16+2*14 =76

   76 dollars, maximum profit for 16 units of cocoa, and 14 units of pineapple. At other corner points, the p is smaller. You can verify yourself. The problem is solved.

    This method will work out when the equations are linear.  That is, the x and y should not have powers. Hence this process is called "linear programming".

    This method can be extended to work with more constraints (shaded region bounded by more lines) and also to work when more than two variables (crops) are involved. The extended method is called the "simplex algorithm" invented by George Dantzig. It has a wide variety of applications.

    A company makes many models of smartphones. How much quantity, the company has to manufacture in each model to maximize the profit? How to minimize the raw materials required? The simplex algorithm will answer this kind of question.  

Comments

Popular posts from this blog

Your heart -you do not know

  Size and Location: The human heart is roughly the size of a clenched fist and is located slightly to the left of the center of the chest. Despite its relatively small size, the heart plays a crucial role in pumping blood throughout the entire body. Heartbeat Variability: The heart does not beat at a constant rate. The interval between heartbeats can vary, and this variability is considered a sign of a healthy heart. Factors such as breathing, emotions, and physical activity influence the heartbeat. Electrical Conduction: The heart's contractions are controlled by electrical impulses. The sinoatrial (SA) node, often called the "natural pacemaker," generates electrical signals that regulate the heartbeat and coordinate the pumping of blood. Blood Pumping Capacity: On average, the human heart pumps about 2,000 gallons (or 7,570 liters) of blood each day. Over a lifetime, this amounts to pumping enough blood to fill several Olympic-sized swimming pools. Heart Chambers and V...

THE WORK HORSE "="

    One cannot think of  a mathematical step without 'is equal to ' .  It balances right hand side and left hand side.  It aids simplification and manipulation of a mathematical expression. example: 2(A+B)  = C 2A+2B  = C         2A = C-2B           A = C-2B/ 2   In an electronic calculator,  the pressing of ' = " sign executes an asthmatic expression  or simply calculates.       In computer languages, it plays very important role.                                                                 A = B   When a computer looks at this expression, the value stored in the location named B is just transferred to the storage named A .  After execution both A and B will have the same value an...

How does your smart phone detect motion, steps, rotation, and location?

 How it works-1  An accelerometer in a smartphone is a microelectromechanical system (MEMS) device that measures acceleration and tilt. It works by detecting changes in motion by measuring the vibration or acceleration of the device. The accelerometer consists of a small mass suspended on a spring inside a sealed chamber. When the device is subjected to acceleration, the mass moves relative to the device, causing a change in capacitance that can be measured and processed by the smartphone's hardware. The accelerometer measures acceleration in three dimensions (x, y, and z) and provides data that the smartphone's software can use to determine the device's orientation, detect motion, and track changes in velocity and acceleration. The accelerometer is used for a variety of purposes in a smartphone, including screen rotation, motion tracking for games and fitness apps, and detecting the position of the device for navigation and location services. Additionally, it can be used t...