Question: Need help with this homework coding problem for my Stats Data Science class! We code in python on Jupyterhub, but I don't mind, as long
Need help with this homework coding problem for my Stats Data Science class! We code in python on Jupyterhub, but I don't mind, as long as it's coded in python it's fine!

Question 20 Not yet You own and operate two factories that process crude oil into three types of gasoline: regular, plus, and premium. answered Points out of 20.00 Your job is to figure out '1 days factory 1 needs to operate and 12 days factory 2 need to operate to meet production requirements while minimizing cost. Factory 1 costs $20,000 per day to operate, and Factory 2 costs $25,000 per day to operate. Flag question Minimum production requirements are: *25,000 gallons of premium gas *27,000 gallons of plus gas * 30,000 gallons of regular gas In a day, each factory is able to produce the following amounts of each type of gas: * Factory 1: (premium) 400 gallons/day, (plus) 300 gallons/day, (regular) 200 gallons/day * Factory 2: (premium) 300 gallons/day, (plus) 400 gallons/day, (regular) 500 gallons/day Consider the number of days as non-negative. _Note: you can use latex notation or python array-like notation in your responses. For example, the following are identical:_ M = (mil m12 ) and 'M = [[m_(11), m_(12)], [m_(21), m_(22)1" m21 m22) Part 1 Write down the total cost to operate the two factories as a function of 1 and 12. This is your objective function. Also, write down the full set of constraints Part 2 Let x = (X1 12). In terms of , write the linear programming problem in the following form: minimize, c'x, subject to Ma 2 d. Explicitly write out vector c, matrix M , and vector d . Part 3 Solve the problem using 'cvxpy'. Give the full code and your solution: the number of days each factory operates in order to meet minimum production goals while minimizing cost. You can either upload a Jupyter notebook file or copy-and-paste code snippet here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
