Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write out LP and solutions of following restrictions by using gurobi with python 1. Solve the following problem using gurobi with python. You must write

Write out LP and solutions of following restrictions by using gurobi with python

image text in transcribed

1. Solve the following problem using gurobi with python. You must write out the LP and its optimal solution in additoin to uploading your python file. A local bakery produces three different types of cakes: 1-layer, which yields a profit of $15; 2-layer, which yields $20 profit; and 3-layer, which yields $10 profit, per cake. There are two main ingredients sugar and flour that each cake requires. The following table shows the number of cups of each ingredient needed for each type of cake. Sugar 1 Flour 2 Cake 1 2 3 Cake 2 4 1 Cake 3 3 2 The following restrictions must be satisfied: (a) The bakery has 60 cups of sugar and 45 cups of flour in stock. (b) The number of cakes of type 1 cannot be more than half of the total number of cakes that are made (c) If the bakery makes any of cake 1 then they must also make at least 1 cake 2 (d) The bakery must make either cake 2 or cake 3 (both is fine) 1. Solve the following problem using gurobi with python. You must write out the LP and its optimal solution in additoin to uploading your python file. A local bakery produces three different types of cakes: 1-layer, which yields a profit of $15; 2-layer, which yields $20 profit; and 3-layer, which yields $10 profit, per cake. There are two main ingredients sugar and flour that each cake requires. The following table shows the number of cups of each ingredient needed for each type of cake. Sugar 1 Flour 2 Cake 1 2 3 Cake 2 4 1 Cake 3 3 2 The following restrictions must be satisfied: (a) The bakery has 60 cups of sugar and 45 cups of flour in stock. (b) The number of cakes of type 1 cannot be more than half of the total number of cakes that are made (c) If the bakery makes any of cake 1 then they must also make at least 1 cake 2 (d) The bakery must make either cake 2 or cake 3 (both is fine)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago