document.write( "Question 1155593: 9) A diet specialist tells patient to add oranges and apples to her diet for Vitamin A, Vitamin B, and Vitamin C. A kg (kilogram) of oranges contributes 8 grams of Vitamin C, 6 grams of Vitamin B, and 2 grams of Vitamin A, while a kg of apples contributes 3 grams of Vitamin A and 6 grams of Vitamin B. A kg of oranges costs $1.95 and a kg of apples costs $2.99. The patient has to meet a minimum requirement of 22 grams of Vitamin A, 33 grams of Vitamin B, and 16 grams of Vitamin C. She should avoid taking more than 73 grams of Vitamin A and 64 grams of Vitamin B to avoid side effects such as nausea. Formulate a linear programming problem to help the patient choose the ideal fruit mix for their diet. \n" ); document.write( "
Algebra.Com's Answer #778206 by ikleyn(52786)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "A diet specialist tells patient to add oranges and apples to her diet for Vitamin A, Vitamin B, and Vitamin C. \r
\n" ); document.write( "\n" ); document.write( "A kg (kilogram) of oranges contributes 8 grams of Vitamin C, 6 grams of Vitamin B, and 2 grams of Vitamin A, while \r
\n" ); document.write( "\n" ); document.write( "a kg of apples contributes 3 grams of Vitamin A and 6 grams of Vitamin B. \r
\n" ); document.write( "\n" ); document.write( "A kg of oranges costs $1.95 and a kg of apples costs $2.99. \r
\n" ); document.write( "\n" ); document.write( "The patient has to meet a minimum requirement of 22 grams of Vitamin A, 33 grams of Vitamin B, and 16 grams of Vitamin C. \r
\n" ); document.write( "\n" ); document.write( "She should avoid taking more than 73 grams of Vitamin A and 64 grams of Vitamin B to avoid side effects such as nausea. \r
\n" ); document.write( "\n" ); document.write( "Formulate a linear programming problem to help the patient choose the ideal fruit mix for their diet.
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Let x be the amount of oranges, and let y be the amount of apples for optimal diet (in kilograms).\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Then the objective function to minimize is the price  P = 1.95x + 2.99y  dollars.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The constraints are\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "22 <= 2x + 3y <= 73   (the amount of vitamin A, in grams)\r\n" );
document.write( "\r\n" );
document.write( "33 <= 6x + 6y <= 64   (the amount of vitamin B, in grams)\r\n" );
document.write( "\r\n" );
document.write( "16 <= 8x              (the amount of vitamin C, in grams)\r\n" );
document.write( "\r\n" );
document.write( "x >= 0,  y >= 0.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "The setup is just completed.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "----------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To see many problems solved by the Linear Programming method,  look into the lesson\r
\n" ); document.write( "\n" ); document.write( "    - Solving minimax problems by the Linear Programming method \r
\n" ); document.write( "\n" ); document.write( "in this site.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Also,  look into the solutions of other similar problems in the archive to this forum under the links\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Linear-equations/Linear-equations.faq.question.1148776.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Inequalities/Inequalities.faq.question.1142000.html \r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Sequences-and-series/Sequences-and-series.faq.question.1137172.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Graphs/Graphs.faq.question.1136382.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Coordinate-system/Coordinate-system.faq.question.1134444.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Graphs/Graphs.faq.question.1131906.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/coordinate/word/Linear_Equations_And_Systems_Word_Problems.faq.question.1131043.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/word/finance/Money_Word_Problems.faq.question.1129285.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Linear-equations/Linear-equations.faq.question.1123217.html (!)\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/playground/test.faq.question.1112482.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Finance/Finance.faq.question.1102103.html\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "/\/\/\/\/\/\/\/\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In order for the formulation be precisely correct, from the common sense point of view,\r
\n" ); document.write( "\n" ); document.write( "it must say for what time period this diet is designed (a day, a week, and so on . . . )\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "It does not play any role in the setup and/or in the solution,\r
\n" ); document.write( "\n" ); document.write( "but is NECESSARY PART from the common sense point of view.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );