Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Data Challenge - Predicting batch switchover

$
0
0

Hi All

 

I have been tasked to come up with a system to predict when we will begin to use a new batch of material and how much will be left over when we do.

This will have to be applied to a number of products but I am starting out with 1 to see if the system works.

 

I have the usage of the product in months, the stock and the number of batches:

Record IDMaterialBatchStock amountUse Mth 1Mth 2Mth 3Mth 4Mth 5Mth 6
1A1[Null] 232463
2A1EU5510      
3A1EU6620      

 

Ideally this is what I would like the output to look like:

Record IDMaterialBatchStock AmountUse Mth 1Mth 2Mth 3Mth 4Mth 5Mth 6
1A1[Null] 232463
2A1EU5510853-1  
3A1EU6620   16107

 

The usage per month is subtracted from the stock amount for the first batch, until it reaches a minus figure (which means there isn't enough) and then it switches to using the next batch and then carries on with that one.

 

There could be more than 2 batches and there will be multiple materials (identified by different material numbers) but I thought I would start out with the easiest scenario.

 

Hope its not too difficult!


Viewing all articles
Browse latest Browse all 4999

Trending Articles