Introduction

The Internet of Things (IoT) era presents many opportunities, not just pseudo-sentient fridges trying to bring down the internet. Indeed, we can monitor machine activity in real-time to alert operators to immediate problems, track production or the frequency of issues over time, and predict the likelihood of meeting targets in the future. What's more, this approach is extensible; you can start with the isolated case of planning machine production, then start to trace back towards optimising the supply chain for raw materials, ensuring you place orders at the optimal time to avoid stockpiling.

The example below is a brief demonstration of how the data might be collected from real-time monitoring and then utilised to inform decisions on how best to utilise equipment in the short-term to maximise long-term targets.

Real-Time Monitoring

The first stage of simulating production is the collection of real-time data. Fitting machines with sensors provides a product count and the machine status, which can be recorded in the installed programmable logic controller (PLC). This, in turn, can be read and displayed on the shop floor via TV screens (using a PTV , for example, or even just a Raspberry Pi).

In addition to providing immediate feedback to machine operators and supervisors, it's also possible to collect and record machine performance over any period. This allows for reviewing the success of any preventative maintenance programmes or new initiatives.The machines here are fictitious and maybe a little exaggerated in the frequency of their downtime; the code for their activity is.

Machine 1 Product Count:   453 Offline for:   0 mins 0 secs # Times Offline:   6 Machine 3 Product Count:   319 Offline for:   0 mins 37 secs # Times Offline:   4
Machine 2 Product Count:   400 Offline for:   0 mins 0 secs # Times Offline:   2 Machine 4 Product Count:   312 Offline for:   0 mins 19 secs # Times Offline:   9

Performance Review

Once the issue of real-time monitoring is addressed, attention can turn to performance review. Which machines are causing the most issues? Can a new policy of planned, preventative maintenance (PPM) address these issues or is there a need for more training for operators? Such questions can only be answered by having data, and all the historical data from real-time monitoring can be backed up for analysis.

Production Planning

Whilst it's useful to be able to review machine productivity over time, there are ways in which this data can be put to work. In the example below, we can imagine a fast-moving consumer goods (FMCG) manufacturer that uses machines A through D to make a variety of products, and the company has a sales forecast that it must work towards. Each of the machines can make any arbitrary subset of the product catalogue and the question then becomes; how do they utilise their assets in order to meet the sales forecast in the most efficient way, minimising the chance of failing to meet an order? This is an example of the Job shop scheduling problem and we can build a model to answer this question.

In the panels below, you can make changes to the problem setup and try and solve the problem. You can define which machines make which products, alter the shift patterns of the machines, and define the sales forecast for the coming month. The model will use the production history recorded above in order to determine the output of each machine.

The model outputs will show:

  • The forecasted demand and the machine output to meet the forecast based on their shift patterns and manufacturing schedule
  • A schedule table showing what product each machine should make for each shift
  • A weekly summary of machine utilisation. Utilisation is based only on the shifts that a machine is scheduled to run; the absolute utilisation would be much lower. If the model starts over-producing, the machines will be switched off, indicating that fewer shifts can be used to meet the forecast
  • A graph of solver convergence. The initial, randomised solution will likely be poor at meeting the forecast and will have a high cost. As the solver progresses, the cost will come down and eventually flatline, indicating that no further improvements can be made

Set the shift patterns of the machines

Machine A
Machine B
Machine C
Machine D
Set the product(s) that each machine can produce

Machine A
Machine B
Machine C
Machine D
Set the sales forecast for the next month (1000s of units)

Product Name Week 1 Week 2 Week 3 Week 4
Product 1
193
147
141
0
Product 2
0
191
58
0
Product 3
0
0
0
0
Product 4
0
138
97
90
Product 5
0
185
123
71
Product 6
0
172
0
75
Product 7
80
200
0
176
Product 8
199
0
0
89