Question: PLEASE THE CODE SHOULD BE MATLAB CODE OR C++ The store capacity is limited to c = 50 units. In each of n = 6

 PLEASE THE CODE SHOULD BE MATLAB CODE OR C++ The store

PLEASE THE CODE SHOULD BE MATLAB CODE OR C++

The store capacity is limited to c = 50 units. In each of n = 6 periods of time the stock of commodities in the store can be supplemented, yielding the unit cost of ar (total purchase and transport costs per single item ordered) or sell the commodity with unit profit Bk (the profit of selling a single item). Please note that you may make the decision on selling and buying independently (i.e., at each period of time you may both buy and sell - two control variables). The assumption is that the commodity that is sold leaves the stock immediately and the commodity ordered to supplement your stack arrives some time in the middle of each period. Develop the optimal strategy of controlling the stock (yielding the maximum profit). Values of ak and Bk are given in the table below. You start with the initial stack of 30 units. In the computer program, the number of periods, initial stack, capacity and ak and Bk coefficients constitute input data. 6 6 40 10 15 k 1 2 3 4 5 ax| 20 | 2 BK 10 50 2 10 3 Table 1 - Unit costs and profits 30 3 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!