# A manufacturer of a particular product produces x1 units in the first week and x2 units #in the second week. The number of units produced in the first and second weeks must #be at least 200 and 400, respectively, to be able to supply the regular customers. The #initial inventory is zero and the manufacturer ceases to produce the product at the end #of the second week. The production cost of a unit, in dollars, is given by 4x2i, where xi #is the number of units produced in week i(i = 1, 2). In addition to the production cost, #there is an inventory cost of $10 per unit for each unit produced in the first week that #is not sold by the end of the first week. Formulate the problem of minimizing the total #cost and find its solution using a graphical optimization method. import plot from numpy print('hello world')
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question