![1dirctn](/avatars/37496.jpg)
1dirctn
31.03.2020 •
Mathematics
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])
Solved
Show answers
More tips
- H Health and Medicine How to Treat the Flu: A Comprehensive Guide...
- O Other What is a Disk Emulsifier and How Does it Work?...
- H Health and Medicine How to Calm Your Nerves? Expert Tips That Actually Work...
- A Animals and plants 5 Tips for Taking Care of Yews to Keep Them Green and Beautiful...
- S Sport How to wrap boxing hand wraps? Everything you need to know!...
- F Food and Cooking 10 Reasons Why You Should Avoid Giving Re-Gifts: An Informative Guide...
- F Family and Home Tender Care for Your Parquet: Is it Possible to Clean Parquet?...
- S Style and Beauty How Are Eyelash Extensions Applied? All Your Questions Answered...
- F Food and Cooking 10 Tips for Proper Sushi Consumption...
- S Style and Beauty Learn how to tie a keffiyeh on your head like a pro...
Answers on questions: Mathematics
- M Mathematics In 2001, the death rate per 100,000 people between the ages 15 and 24 was 773. What is the probability that a person selected at random from this age group died...
- M Mathematics Can somebody help me I’m confused...
- M Mathematics Question | Given the following table and graph, write the equation to represent the exponential function. Points | 10....
- M Mathematics Enter the patriot equivalent to Tan (A) And Enter the ratio equivalent to cos (B)...
- M Mathematics Question 40 of 43 Researchers conduct a study to evaluate the level of pollution present in a river. They select several locations along the river and then take...
- M Mathematics A jelly bean factory packaged 892 special ordered bags last Tuesday. The shift manager randomly picked seven bags to count the number of jelly beans. 8, 6, 10, 16,...
- M Mathematics A football player jumps to catch a pass. The maximum height h (in feet) of the player above the ground is given by the function h= 67%, where s is the initial speed...
- M Mathematics 21 22 TIME REMAINING 01:22:49 What is the equation of the translated function, g(x), if (x) = x?? 90x) fox - 10 - 8 2 2610 O g(x) = (x + 5)2 + 2 O g(x) = (x + 2)2...
- M Mathematics X^3+125 = 0 solve in complex form...
- M Mathematics ??????????????????????????????????????????...
Ответ:
-1
Please give me brainlist beg
Step-by-step explanation: