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 12:30
Country carpets charges $22 per square yard for carpeting, and an additional installation fee of $100. city carpets charges $25 per square yard for the same carpeting, and an additional installation fee of $70
Answers: 2
question
Mathematics, 21.06.2019 16:30
In two or more complete sentences describe how to determine the appropriate model for the set of data, (1,1), (3,2), (6,3), (11,4).
Answers: 1
question
Mathematics, 21.06.2019 19:00
What is the volume of a cone with a height of 6 cm in the radius of 2 cm
Answers: 1
question
Mathematics, 21.06.2019 21:30
The owner of the plant nursery where you were tells you to fill 350 ml bottles from a 30 l from a fertilizer
Answers: 1
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, 22.09.2020 05:01
question
Physics, 22.09.2020 05:01
question
History, 22.09.2020 05:01
question
Mathematics, 22.09.2020 05:01
question
Biology, 22.09.2020 05:01
Questions on the website: 13722362