# Improving the Production Efficiency Based on Algorithmization of the Planning Process
## 4 Research Results
### Basic Algorithm Development
In addition, after the start of the production line after the reconstruction, a test phase takes place, when pieces that are not of good quality come off the line and it can happen that the first few dozen pieces will be bad. If a defective product leaves the production line, there is a certain chance that the product can still be repaired in the next post-production. Produced pieces that have not yet passed the following process are not registered in the production information system, so the production planner does not know how many produced pieces now are (this gap is called the 'gray information zone'). When designing the planning algorithm, various variants were considered, of which examples of three variants are shown in Figure 1.  
The crucial decision for the algorithm is to determine the production plan at the beginning of the production day. More aspects had to be considered when evaluating the variants (see Table 1). At the start of the production day (at 6:00), the contracted customer requirements and the actual quantity in the storage zone are evaluated against each other. Recall that the value of the number of products in the storage zone is skewed due to the gray information zone. The products are delivered to the customer continuously, resp. every hour. Therefore, it is necessary to strengthen the production of those products that are currently missing the most. This means that at the beginning of each production day (at 6:00 a.m.) it is necessary to find out which products are missing for that day, rank them according to the shortage from highest to lowest, and produce them in that order. Although it may seem that variant I and variant II are better due to the savings of one reconstruction of the production line, in the long run, this is not true. After consultations with the company's management, it turned out that JIT deliveries to the customer take \begin{table}
\begin{tabular}{c c} \hline \hline
**Aspect** & **Description** \\ \hline necessary morning stocks in the stock & at the beginning of the production day (before the start of production), certain volumes of all \\ \hline continuous products & products must be available in the stock to ensure additional deliveries of products to the customer; \\ delivery & exports of manufactured products are carried out every hour during the entire production shift \\ \hline most missing quantity of product & this term is related to the continuous delivery of products to the customer during the day, therefore the critical product is determined among the products at the beginning of the production shift, it means the product with the most missing quantity and therefore with the highest production priority \\ \hline storage zone & the stock contains manufactured products in two categories, one category is finished products intended for transport to the customer, and the other category contains unfinished products that are intended for repair or subsequent modification (post-production); \\ \hline gray information zone & products are registered in the information system only when they are finished products (including final adjustments); a gap in the register (in other words a gray information zone) arises so that the product is manufactured on the line, but the final adjustments (painting) have not yet been completed, so it is not registered in the information system \\ \hline \hline \end{tabular}
\end{table} 
Table 1: Basic aspects of production planning. Figure 1: Examples of proposed planning variants. place every hour, and because there is no overview of manufactured pieces that are not registered, it cannot be expected that there are some pieces in this storage zone are needed, therefore only variant III was put into operation. The proposed algorithm includes the following procedure:  
* The most missing product is identified at the beginning of the day (at 6:00). This product has the highest production priority (priority no. 1). This product is then produced in a precisely determined quantity.