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, 21.06.2019 22:40
If f(x) = 3x2 - 2x+4 and g(x) = 5x + 6x - 8, find (f-g)(x).
Answers: 1
question
Mathematics, 21.06.2019 23:30
Find each value of the five-number summary for this set of data. [note: type your answers as numbers. do not round.] 46, 19, 38, 27, 12, 38, 51 minimum maximum median upper quartile lower quartile
Answers: 1
question
Mathematics, 22.06.2019 01:20
The domain of the following relation: r: {(3, 5), (8, 6), (2, 1), (8, 6)} is (1 point) no domain exists {1, 5, 6} {3, 8, 2, 8} {2, 3, 8}
Answers: 2
question
Mathematics, 22.06.2019 01:30
Sole the equation 6n + 9 = -3n - 21 - 6 for n
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, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
question
Chemistry, 18.03.2021 01:30
Questions on the website: 13722362