The **OFFICIAL** GMAIL Thread

Page 117 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Status
Not open for further replies.

Turkish

Lifer
May 26, 2003
15,547
1
81
Hmmm found one more invitation But I am gonna make this more challenging First person to PM me the answer gets an invitation.

PLEASE DO NOT PM ME IF YOU ALREADY HAVE A GMAIL ACCOUNT!

Question:

A cereal company makes cereals from several ingredients (oats and rice). These ingredients have Vitamins A and B in them. Each box of cereal needs to have 48 miligrams of Vitamin A and 12 miligrams of Vitamin B, while minimizing cost. An ounce of oat contributes 8 mg of Vitamin A and 1 mg of Vitamin B whereas an ounce of rice contributes 6 mg of Vitamin A and 2 mg of Vitamin B. The sodium level in the cereal box must be less than 6 mg and amonut of sodium in oats and rice are 0.4 mg and 0.5 mg respectively. The last constraint is that the box of cereals must contain at least 10 ounces of oats. An ounce of oats cost $0.05 whereas an onuce of rice costs $0.03.

For the optimal solution, what are the slack&surplus variables for Vitamin A, Vitamin B, Sodium and Oats?

Hint: You'll have to calculate the optimal solution first, then move on from there.

Its very easy if you think about it a little. Good luck to all!

Update: Congrats to Batman534.

The solution is:

Vitamin A: 38 surplus
Vitamin B: 0 surplus
Sodium: 1.5 slack
Oats: 0 surplus

As a lot of you asked about slack&surplus, here:

Slack means resources that weren't used for the optimal solutions, surplus means resources exceeded (more than required).

Your objective function is, minimizing cost.

Thus,

Z= cost
x1 =oats
x2=rice

Minimize Z = 0.05 x1 + 0.03x2

If you graph all the constraints and the objective function, you can mark corner points of the feasible region and plug in those cordinates to the objective function. The lowest value will be your optimal solution as you are trying to minimize cost (Z).

To find surplus for Vitamin A, you use the Vitamin A constraint; 8x1 + 6x2 - s1 = 48

8(10) + 6(1) - s1 = 48
s1 = 38

To find surplus for Vitamin B, you use the Vitamin B constraint; x1 + 2x2 - s2 = 12

(10) + 2(1) - s2 = 12
s2 = 0

To find slack for Sodium, you use the Sodium constraint; 0.4x1 + 0.5x2 + s3 = 6

0.4(10) + 0.5(1) + s3 = 6
s3 = 1.5

To find surplus for Oats, you use the Oats constraint; x1 - s4 = 10

(10) - s4 = 10
s4 = 10
 

cowsclaw

Golden Member
Jul 23, 2002
1,665
0
0
Originally posted by: Xiety
The sodium level in the cereal box must be less than 6 mg and amonut of sodium in oats and rice are 0.4 mg and 0.5 mg respectively.
!

i'm assuming this is 0.4mg per ounce?
 

Turkish

Lifer
May 26, 2003
15,547
1
81
Originally posted by: cowsclaw
Originally posted by: Xiety
The sodium level in the cereal box must be less than 6 mg and amonut of sodium in oats and rice are 0.4 mg and 0.5 mg respectively.
!

i'm assuming this is 0.4mg per ounce?

true.
 

Pr0digy

Member
Dec 31, 2003
49
0
0
Hehe, I didn't really need the account but I liked playing the game, so I'm giving it away. PM me with your email and answer to riddle:

You have an unlimited water supply, a 5 gallon jug and a 3 gallon jug. How can you fill one of them to exactly 4 gallons.

It's from a movie......
 

Pr0digy

Member
Dec 31, 2003
49
0
0
Answer was to fill the 5 gallon bucket and use it to fill the 3 gallon bucket. now empty the 3 gallon one and pour the remaining 2 gallons from the 5 gallon bucket to the 3 gallon.
fill the 5 gallon bucket again and use it to fill the three gallon bucket, which leaves you 4 gallons in the 5 gallon bucket.
 

Turkish

Lifer
May 26, 2003
15,547
1
81
Update: Congrats to Batman534.

The solution is:

Vitamin A: 38 surplus
Vitamin B: 0 surplus
Sodium: 1.5 slack
Oats: 0 surplus

Optimal solution was 10 ounces of oats and 1 ouces of rice. Thanks all for participating!
 

Pr0digy

Member
Dec 31, 2003
49
0
0
Could have also been: Fill the 3 and dump in the 5, fill the 3 again and dump in the 5 until it is full. This leaves 1 gallon in the 3 gallon jug. Empty out the 5, then dump the 1 gallon that is in the 3 into the 5. Then fill the 3 and dump into the 5. You now have 4 gallons in the 5.
But the other was the one that won it
 

Batman534

Member
Nov 30, 2002
97
0
0
Thank you so much - my friend and I have spent the past 4 hours trying to get gmail accounts. We finally each have one. Thank you.
 
Status
Not open for further replies.
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |