Stephen struggling with maths from Kenya.
Happy to join.
There is a Linear Programming problem i need help in undetstanding how to solve (below).
Which is best way in this forum please?
A school store sells slide rules at a profit of 50 each and sweatshirts at a profit of 40 each.
It takes two minutes of a salesgirl's time and two minutes of a cashier's time to sell a slide rule.
It requires three minutes of a salesgirl's time but only one minute of a cashier's time to sell a sweatshirt.
The school store operates for a maximum of two hours during a school day, and during this time there is one cashier and there are two salesgirls available for handling sales of the above items.
How many of each item should the store attempt to sell each day in order to earn a maximum profit?
(Answer: 30, 60; $39.)
You should start by deriving your profit function, and 2 constraint equations from what you've written above.
One constraint equation is based on cashier time, the other on salesgirl time.
These 3 are all functions of n_rule, and n_shirt, i.e. how many of each you sell.
see if you can get this far.
Thanks for you're tip.
This is how far i've gone:
x–number of slide rules sold
y–number of sweatshirts sold
P= 0.50x + 0.40y
Salesgirl time constraint-
2 minutes to 1 sliderule. 120 minutes to 60 sliderules.
3 minutes to 1 sweatshirt. 120 minutes to 40 sliderules.
Cashier time constraint-
2 minutes to 1 sliderule. 120 minutes to 60 sliderule.
1 minute to 1 sweatshirt. 120 minutes to 120 sweatshirts.
In a sales day there are effectively 2 cashier hours, or 120 cashier minutes.
There are 2*2 = 4 salesgirl hours or 240 salesgirl minutes.
thus using your x and y above we get
2 x + y < 120 is the cashier time constraint. Do you understand where all this came from?
2x + 3y < 240 is the salesgirl time constraint. Again make sure you understand why.
Now plot this region so you can see what it looks like. Do you have the tools to post a picture of your plot?
"The school store operates for a maximum of two hours during a school day, and during this time there is one cashier and there are two salesgirls available for handling sales of the above items."
(time cashier uses to sell) + (time salesgirls use to sell) = (total time to sell)
(cashier units sold per minute*units sold) + (salesgirls units sold per minute*units sold) = (total time to sell)
No. Not right.
Salesgirls time constraint:
total time = (minutes to sell unit) * (units sold) <= (2*120)
= [(minutes to sell unit x) * (units x sold)] + [(minutes to sell unit y) *(units y sold)] <= 240
= [(2 min/x) * (x)] + [(3 min/y) * (y)] <= 240
= 2x + 3y <= 240.
Cashier time constraint:
2x + 1y <= 120.
p = 0.5x + 0.4y
2x + 3y <= 240
2x + y <= 120
x,y => 0
Thank you, Romsek !
I'm getting the approach !
This forum looks very promising for me.
Which tool do you recommend for me to post picture of my plot?
Ok that plot shows you how many of each items you can sell in a day. The shop is physically able to sell x sliderules and y sweatshirts as long as x and y lie in the shaded area of your plot. So now you have to compute which x and y in that area maximizes your profit.
If the gradient of your profit function equals 0 somewhere in that shaded area then there is a maximum or minimum at that point. So let's take the gradient of the profit function
(this is a vector with an x and y component)
and this doesn't equal 0 anywhere. So there is no maximum or minimum in the interior of our allowed area of x and y.
Thus the maximum must lie on the boundary.
We want to maximize profit so that means selling as many as possible so we will find the solution on the upper boundary of this area.
So now for x and y along that top line, compute and plot the profit you make.