Hi Scwmba

Results 1 to 15 of 18

- December 7th 2013, 01:45 PM #1

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

- December 7th 2013, 01:53 PM #2

- Joined
- Nov 2013
- From
- California
- Posts
- 3,822
- Thanks
- 1557

- December 7th 2013, 02:00 PM #3

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

## Re: Hello

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.)

- December 7th 2013, 04:44 PM #4

- Joined
- Nov 2013
- From
- California
- Posts
- 3,822
- Thanks
- 1557

## Re: Hello

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.

- December 8th 2013, 09:20 AM #5

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

- December 8th 2013, 09:29 AM #6

- Joined
- Nov 2013
- From
- California
- Posts
- 3,822
- Thanks
- 1557

- December 8th 2013, 09:39 AM #7

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

## Re: Hello

Thanks for you're tip.

This is how far i've gone:

Let

x–number of slide rules sold

y–number of sweatshirts sold

P–profit finction.

P= 0.50x + 0.40y

subject to:

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.

x,y=>0

Im stuck

- December 8th 2013, 09:42 AM #8

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

- December 8th 2013, 09:46 AM #9

- Joined
- Nov 2013
- From
- California
- Posts
- 3,822
- Thanks
- 1557

## Re: Hello

Ok. We need to convert your constraint equations into something more than just their definitions by using the fact that the store is only open for 2 hrs, and that there is 1 cashier and 2 salesgirls.

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?

- December 10th 2013, 07:13 AM #10

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

- December 10th 2013, 08:31 AM #11

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

## Re: Hello

"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

s.t.

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?

- December 13th 2013, 12:24 AM #12

- Joined
- Nov 2013
- From
- California
- Posts
- 3,822
- Thanks
- 1557

- December 15th 2013, 01:16 AM #13

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

- December 15th 2013, 02:55 AM #14

- Joined
- Dec 2013
- From
- Kenya
- Posts
- 11

- December 15th 2013, 03:07 AM #15

- Joined
- Nov 2013
- From
- California
- Posts
- 3,822
- Thanks
- 1557

## Re: Hello

Hi Schwmba,

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.