D2 January 2006 Q2

EdexcelOld spec12 marksDynamic Programming

2. An engineering firm makes motors. They can make up to five in any one month, but if they make more than four they have to hire additional premises at a cost of £500 per month. They can store up to two motors for £100 per motor per month. The overhead costs are £200 in any month in which work is done.

Motors are delivered to buyers at the end of each month. There are no motors in stock at the beginning of May and there should be none in stock after the September delivery.

The order book for motors is:

MonthMayJuneJulyAugustSeptember
Number of motors33754

Use dynamic programming to determine the production schedule that minimises the costs, showing your working in a table with the headings

Stage (month)State (Number in store at start of month)Action (Number made in month)Destination (Number in store at end of month)Value (cost)

Production schedule

MonthMayJuneJulyAugustSeptember
Number to be made

Total cost: ………… (12)