Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed
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

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

The Structure Of Groups With A Quasiconvex Hierarchy (AMS-209)

Authors: Daniel T Wise

1st Edition

069121350X, 9780691213507

More Books

Students also viewed these Mathematics questions

Question

(-5, 4) Plot the given points in a coordinate system.

Answered: 1 week ago