subject
Mathematics, 31.03.2020 02:18 anishivaturi123

You expect the price of a commodity to behave as follows over the next 12 months:

Month 1 2 3 4 5 6 7 8 9 10 11 12

Price ($/unit) 142 100 58 55 95 140 147 110 64 52 85 133

Your inventory capacity is 25 units and you have 3 units in inventory at the start of month 1. In any given month, you can buy up to 10 units or sell up to 15 units. The prices per unit sold or bought are the same within each month, but every transaction, whether you buy or sell, is subject to a $120 transaction charge (the only way to avoid this charge in a given month is by neither Page 2 of 2 buying for selling that month). Your holding cost is $15 per unit per month, assessed on the inventory at the end of each month. Any units of the commodity left over after month 12 are assessed a $70 per unit salvage value. Create a Python program to maximize your profits trading the commodity over the next 12 months.

import numpy hugeNumber = float("inf") unused = -1e10 stages = 12 inventoryCapacity = 25 maxBuy = 10 maxSell = 15 startingInventory = 3 holdingCost = 15.00 salvageValue = 70.00 transactionCost = 120.00 price = numpy. array([unused, 142, 100, 58, 55, 95, 140, 147, 110, 64, 52, 85, 133])

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 20.06.2019 18:04
Venus is about 108 kilometers from the sun. saturn is about 109 kilometers from the sun. about how many times farther from the sun is saturn than venus?
Answers: 1
question
Mathematics, 21.06.2019 16:00
What is the standard deviation of the following data set rounded to the nearest tenth? 3, 17, 18, 15, 12, 21, 9
Answers: 2
question
Mathematics, 21.06.2019 18:30
Which of the following correctly justifies statement four of the two column proof? a. corresponding angles theorem b. transitive property of equality c. vertical angle theorem d. substitution property of equality
Answers: 1
question
Mathematics, 21.06.2019 20:30
The frequency table shows the results of a survey comparing the number of beach towels sold for full price and at a discount during each of the three summer months. the store owner converts the frequency table to a conditional relative frequency table by row. which value should he use for x? round to the nearest hundredth. 0.89 0.90 0.92 0.96
Answers: 2
You know the right answer?
You expect the price of a commodity to behave as follows over the next 12 months:

Month...
Questions
question
Mathematics, 23.10.2020 02:01
question
Mathematics, 23.10.2020 02:01
question
English, 23.10.2020 02:01
question
Mathematics, 23.10.2020 02:01
question
Mathematics, 23.10.2020 02:01
question
Mathematics, 23.10.2020 02:01
question
Mathematics, 23.10.2020 02:01
Questions on the website: 13722360