SOLUTION: Pauline Wong spends three hours selling a used car and ​five hours selling a new car she works no more than 31 hours per week in order to receive a bonus she must sell at least t

Algebra.Com
Question 1182610: Pauline Wong spends three hours selling a used car and ​five hours selling a new car she works no more than 31 hours per week in order to receive a bonus she must sell at least two used cars and two new cars each week. In that case she receives a bonus of 200 for each used car and 300 for each new car. how many cars and how many used cars can she try to sell to maximize her bonus? what is the maximum bonus?
a. define the variables to use
b. goal function
c. constraints
e. optimal solution

Answer by ikleyn(52803)   (Show Source): You can put this solution on YOUR website!
.
Pauline Wong spends three hours selling a used car and ​five hours selling a new car she works no more than 31 hours per week.
In order to receive a bonus she must sell at least two used cars and two new cars each week.
In that case she receives a bonus of 200 for each used car and 300 for each new car.
How many cars and how many used cars can she try to sell to maximize her bonus? what is the maximum bonus?
a. define the variables to use
b. goal function
c. constraints
e. optimal solution
~~~~~~~~~~~~~~~~~~~~~~~~~~

Let U be the number of USED cars sold, and

let N be the number of NEW  cars sold.


Then the goal function is


    Maximize bonus function, which is defined this way

         B(U,N) = 200U + 300N, if both U >= 2, N >= 2  and  B(U,N) = 0 otherwise    (1)


    under THESE CONSTRAINS

         3U + 5N <= 31.      (2)


It remainds linear programming problem, but it has two features, that make it very special and different
from standard linear minimax problems.  These differences are:

    - the problem is actually NON-linear, sinse the definition (1) is non-linear,

and 

    - the solution should be in integer numbers U and N,   i.e., the solution is among the points of the integer grid 
      in the first quadrant satisfying (2)


Due to these features, the standard linear programming method DOES NOT WORK in this problem.



                     So, we should think on how to solve it.



First, it is OBVIOUS, that the non-linear condition (1) can be simplified.

    For a moment, we can forget about this requirement  "if both U >= 2, N >= 2  and  B(U,N) = 0 otherwise"  and simply OMIT it;

    so the object function will be  B(U,N) = 200U + 300N.



Second, it is clear, that we should look for the solution not for  all  integer (U,N) satisfying (2):  
it is enough for each integer U between 0 and 10  to consider the MAXIMAL integer N satisfying (2).


Thus the algorithm becomes clear and simple:  

    - for eleven integer numbers U from 0 to 10 inclusive, calculate maximal integer N satisfying (2);

    - for every such pair (U,N) calculate the bonus function B(U,N) = 3U + 5N.

    - exclude those pairs (U,N) and values B(U,N), where U < 2 or N < 2;

    - among the rest of values B(U,N) select the maximum value B(U,N);

    - then the corresponding values of U and N provide the solution.



This algorithm can be easily realized and executed even manually;

but I used MS Excel in my computer to facilitate this task.


The results are in the Table below:


         T     A     B     L     E  


	U	N_real	N	B(U,N)
  ----------------------------------------

	0	6.2	6	1800    -
	1	5.6	5	1700    -
	2	5	5	1900    +
	3	4.4	4	1800    +
	4	3.8	3	1700    +
	5	3.2	3	1900    +
	6	2.6	2	1800    +
	7	2	2	2000    +    (*)
	8	1.4	1	1900    +
	9	0.8	0	1800    -
	10	0.2	0	2000    -


The column N_real is  ;  the next column N is the closest lesser or equal integer to it.

In the last column, the "-" sign marks "defective" lines, where the condition (1) is violated; 
these lines should be corrected, and the values of B(U,N) should be replaced by 0 (zero) in these lines.
The rest lines are marked by "+".



So, the ANSWER is THIS:


    the optimum solution is the pair (N,U) = (7,2) :  7 used cars and 2 new cars, giving the maximum bonus of 2000.


It is marked (*) in the Table.

Solved.



RELATED QUESTIONS

A used car that. Is three years old is selling for $150 more than half its original... (answered by rfer)
Mary works a part-time job, selling cards over the telephone. She sells two types of... (answered by Theo)
A used car that is three years old is selling for $150 more than half its original price. (answered by stanbon)
Alice works in NY and makes 42 dollars per hr. She works in a office and spends 75... (answered by josgarithmetic,MathTherapy)
Bob, Larisa, and Susie work on an assembly line at a car company. The assembly of the... (answered by ankor@dixie-net.com)
A student earns $10 per hour for tutoring and $7 per hour as a teacher's aide. To have... (answered by solve_for_x)
You started a business making sculptures that sell for 14.50 each. It cost you $.75 to... (answered by ikleyn)
Elsa went for a drive in her new car. She drove 437.5 miles in 7 hours. What was her... (answered by josgarithmetic,Alan3354)
Karen works for $6 an hour. A total of 25% of her salary is deducted for taxes and... (answered by rfer)