Acessibilidade / Reportar erro

MODELING A HYBRID FLOW SHOP PROBLEM APPLIED TO THE PRODUCTION LINE OF A HAIR COSMETICS FACTORY

ABSTRACT

Many industries have a complex manufacturing line, which complicates the planning of their productions. One possible solution to this problem is the optimization of the production line. In this work, mixed integer linear programming models are capable of representing the productive organization of the production line of a hair cosmetics factory, characterized by hybrid flow shop problem. The proposed models can be solved using CPLEX® Optimization Studio for real cases of the studied industrial production line. The objective was the minimization of the production makespan and the completion time. The innovation of this work is the application of the mixed integer linear programming method in complex cases, which are often found in industries and are solved by heuristic methods, simulations, or approximations of analytical methods.

Keywords:
mixed integer linear programming; Hybrid flow shop; combinatorial optimization

1 INTRODUCTION

There are several strategies that can be implemented to increase the productivity of a company; for example, the purchase of more equipment, upgrade to more efficient machinery, and the production line optimization. The optimization strategy has the advantage of obtaining the maximum production possible using the equipment and resources already available, making it widely applied in the industrial sector (Belfiore & Fávero, 20132 BELFIORE P & FÁVERO L. 2013. Pesquisa Operacional Para Cursos de Engenharia. 1st ed. Rio de Janeiro: Elsevier Editora Ltda .; Rau, 200521 RAU E P. 2005. Combat science: the emergence of Operational Research in World War II. Endeavour, 29(4): 156-161.; Ribas, Leisten & Framinãn, 201022 RIBAS I, LEISTEN R & FRAMINÃN J M. 2010. Review and classification of hybrid flow shop scheduling problems from a production system and a solutions procedure perspective. Computers and Operations Research, 37(8): 1439-1454.). Used within operational research, mixed integer linear programming is an exact method capable of solving complex optimization problems (Vielma, 201524 VIELMA J P. 2015. Mixed Integer Linear Programming Formulation Techniques. SIAM Review, 57(1): 3-57.).

According to Batalha et al. (20081 BATALHA MO, ET AL. 2008. Introdução À Engenharia De Produção. 1st ed. Rio de Janeiro: Elsevier Editora Ltda.), with the use of mixed integer linear programming, it is possible to create a mathematical model that represents industrial problems, such examples include the production line of a company, the distribution of products, the ways of providing services, and the control of resources, etc. (Midgley, Johnson & Chichirau, 201813 MIDGLEY G, JOHNSON M P & CHICHIRAU G. 2018. What is Community Operational Research? European Journal of Operational Research, 268(3): 771-783.). Using a mathematical model, it is possible to apply solution methods in order to obtain an optimized answer of the proposed problem (Vielma, 201524 VIELMA J P. 2015. Mixed Integer Linear Programming Formulation Techniques. SIAM Review, 57(1): 3-57.). A very common problem in many industries is hybrid flow shop scheduling (HFS), where a production line consists of several stages and more than one machine at each stage (Ribas, Leisten & Framinãn, 201022 RIBAS I, LEISTEN R & FRAMINÃN J M. 2010. Review and classification of hybrid flow shop scheduling problems from a production system and a solutions procedure perspective. Computers and Operations Research, 37(8): 1439-1454.; Ruiz & Vázquez-Rodríguez, 201023 RUIZ R & VÁZQUEZ-RODRÍGUEZ J A. 2010. The hybrid flow shop scheduling problem. European Journal of Operational Research, 205(1): 1-18.).

In this paper, mixed integer linear programming models were developed to represent and optimize a production line of a hair cosmetics factory, using the CPLEX Optimization software. The goal was to minimize the makespan of daily production and the completion time of equipment for the best production organization.

2 LITERATURE REVIEW

In the industrial environment, there are several optimization problems related to production systems due to the organizational complexity in different sectors. Scheduling on parallel machines is a classic problem that occurs in many industries. In this case, there are n jobs that must be processed in m parallel machines, each task must be processed on only one machine (Özpeynirci, Gökgür & Hnich, 201617 ÖZPEYNIRCI S, GÖKGÜR B & HNICH B. 2016. Parallel machine scheduling with tool loading. Applied Mathematical Modelling, 40(9-10): 5660-5671.), and the objective is usually to minimize the task completion time, the so-called makespan (Fanjul-Peyro, Perea & Ruiz, 20177 FANJUL-PEYRO L, PEREA F & RUIZ R. 2017. Models and matheuristics for the unrelated parallel machine scheduling problem with additional resources. European Journal of Operational Research, 260(2): 482-493.).

The flow shop problem is also very common in many industries. In this case, each task must pass through a production line which is composed of a sequence of m machines (Pessoa & Andrade 201820 PESSOA L S & ANDRADE C E. 2018. Heuristics for a flowshop scheduling problem with stepwise job objective function. European Journal of Operational Research, 266(3): 950-962.). A solution to this problem is given by the best production order, allowing the production demand to be completed in the shortest time.

The flow shop on parallel machines, known as hybrid flow shop is a more complex case that is the combination of the problems mentioned above. It is characterized by the existence of K steps, mk machines in each step k, and n products, which must be processed correctly in the order of the production line (Bozejko, Pempera & Smutnick, 20133 BOZEJKO W, PEMPERA J & SMUTNICKI C. 2013. Parallel tabu search algorithm for the hybrid flow shop problem. Computers and Industrial Engineering, 65(3): 466-474.; Fernandez-Viagas, Perez-Gonzales & Framinan, 20198 FERNANDEZ-VIAGAS V, PEREZ-GONZALEZ P & FRAMINAN J M. 2019. Efficiency of the solution representations for the hybrid flow shop scheduling problem with makespan objective. Computers and Operations Research, 109: 77-88.). Since the production line of the studied factory has three production stages and several machines in each one, the hybrid flow shop scheduling (HFS) is characterized in the present study. In this problem, the best manufacturing route for the products to supply a given demand must be chosen in order to obtain the shortest production time. Therefore, it is necessary to determine in which equipment (of each step) and when the tasks will be processed (Ribas, Leisten & Framinãn, 201022 RIBAS I, LEISTEN R & FRAMINÃN J M. 2010. Review and classification of hybrid flow shop scheduling problems from a production system and a solutions procedure perspective. Computers and Operations Research, 37(8): 1439-1454.; Ruiz & Vázquez-Rodríguez 201023 RUIZ R & VÁZQUEZ-RODRÍGUEZ J A. 2010. The hybrid flow shop scheduling problem. European Journal of Operational Research, 205(1): 1-18.).

In the literature, it is possible to find studies that deal with HFS, more commonly in some industries. Nabli, Khalfallah, & Korbaa (201814 NABLI Z, KHALFALLAH S & KORBAA O. 2018. A two-stage hybrid flow shop problem with dedicated machine and release date. Procedia Computer Science, 126: 214-223.) studied the optimization of a hybrid flow shop model containing two stages of production in order to minimize the makespan in an industrial production line. They used mathematical models and three heuristics to solve the problem, and they obtained promising results. Engin & Güçlü (20186 ENGIN O & GÜÇLÜ A. 2018. A new hybrid ant colony optimization algorithm for solving the no-wait flow shop scheduling problems. Applied Soft Computing Journal, 72: 166-176.) also studied a hybrid flow shop problem with the same objective, but the hybrid ant colony method was used. Yu, Semeraro, & Matta (201827 YU C, SEMERARO Q & MATTA A. 2018. A genetic algorithm for the hybrid flow shop scheduling with unrelated machines and machine eligibility. Computers and Operations Research, 100: 211-229.) used a genetic algorithm to minimize the total delay of the tasks and by Nejati et al. (201415 NEJATI M, MAHDAVI I, HASSANZADEH R, MAHDAVI-AMIRI N & MOJARAD M. 2014. Multi-job lot streaming to minimize the weighted completion time in a hybrid flow shop scheduling problem with work shift constraint. International Journal of Advanced Manufacturing Technology, 70(1-4): 501-514.) in order to minimize the completion times. Wang, Liu, & Chu, (201526 WANG S, LIU M & CHU C. 2015. A branch-and-bound algorithm for two-stage nowait hybrid flow-shop scheduling. International Journal of Production Research, 53(4): 1143-1167.) showed that the Branch-andBound is also used to solve the HFS problem. Pan et al. (201118 PAN Q K, FATIH-TASGETIREN M, SUGANTHAN P N & CHUA T J. 2011. A discrete artificial bee colony algorithm for the lot-streaming flow shop scheduling problem. Information Sciences, 181(12): 2455-2468.) and Cui & Gu (20154 CUI Z, & GU X. 2015. An improved discrete artificial bee colony algorithm to minimize the makespan on hybrid flow shop problems. Neurocomputing, 148: 248-259.) used the bee colony method in their respective studies to solve the same problem, where the objectives were to minimize delays and makespan, respectively.

In several real-world contexts, there are some additional constraints and characteristics that must be included in the basic hybrid flow shop problem, making the resolution of the problem more complex. In their work, Li et al. (201812 LI G, LI N, SAMBANDAM N, SETHI S P & ZHANG F. 2018. Flow shop scheduling with jobs arriving at different times. International Journal of Production Economics, 206(Oct): 250-260.) considered that the tasks have different sequence orders in the production line and used heuristic methods to minimize the makespan. Kim & Lee (201910 KIM H J & LEE J H. 2019. Three-machine flow shop scheduling with overlapping waiting time constraints. Computers and Operations Research, 101: 93-102.) also used heuristic methods to optimize a flow shop problem, where tasks had a time limit to be processed in the next steps, making the decisions more difficult. Also using heuristics, Figielska (20149 FIGIELSKA E. 2014. A heuristic for scheduling in a two-stage hybrid flowshop with renewable resources shared among the stages. European Journal of Operational Research, 236(2): 433-444.) studied a production line containing one machine in the first stage and many in the second, aiming to minimize the makespan. To solve this complex problem, Figielska (20149 FIGIELSKA E. 2014. A heuristic for scheduling in a two-stage hybrid flowshop with renewable resources shared among the stages. European Journal of Operational Research, 236(2): 433-444.) divided the problem into two parts, a technique that was also used in the present study.

Some studies have restrictions and methods that are also considered in this work, such as the need to perform the equipment’s setup after processing the tasks. For example, Peng et al. (201819 PENG K, WEN L, LI R, GAO L & LI X. 2018. An Effective Hybrid Algorithm for Permutation Flow Shop Scheduling Problem with Setup Time. In 51st CIRP Conference on Manufacturing Systems, 72: 1288-1292.) used hybrid genetic algorithms to minimize the makespan, and Wang & Liu (201425 WANG S & LIU M. 2014. Two-stage hybrid flow shop scheduling with preventive maintenance using multi-objective tabu search method. International Journal of Production Research, 52(5): 1495-1508.) used tabu search to minimize the unavailability of the first stage and the makespan of the second; both studies considered setup-time. In the work of Dios, Fernadez-Viagas, & Framinam (20185 DIOS M, FERNANDEZ-VIAGAS V & FRAMINAN J M. 2018. Efficient heuristics for the hybrid flow shop scheduling problem with missing operations. Computers and Industrial Engineering, 115(Nov.2017): 88-99.), heuristic methods were used to optimize a hybrid flow shop problem where some stages of production can be ignored, which is also present in this work. Similar to the present study, Lalitha, Mohan, & Pillai (201711 LALITHA J L, MOHAN N & PILLAI V M. 2017. Lot streaming in [N-1](1)+N(m) hybrid flow shop. Journal of Manufacturing Systems, 44: 12-21.) used the exact method of mixed integer linear programming in their research. The use of this method is not commonly found in the literature for HFS resolution, and most studies are developed using heuristic and computational methods.

Many studies are carried out with the intention of solving the hybrid flow shop problem in a more simplified way. They considered that the capacities and the processing times of the machines of the same stage are the same and that each product is manufactured only once, which may not represent the industrial reality (Oliveira & Turrioni 201216 OLIVEIRA G & TURRIONI J. 2012. O Problema de Flow Shop Híbrido: Revisão e Classificação. In XXXII Encontro Nacional de Engenharia de Produção, p. 1-13.; Ruiz & Vázquez-Rodríguez 201023 RUIZ R & VÁZQUEZ-RODRÍGUEZ J A. 2010. The hybrid flow shop scheduling problem. European Journal of Operational Research, 205(1): 1-18.). In addition, they mostly used heuristic methods to solve the problem (Oliveira and Turrioni 201216 OLIVEIRA G & TURRIONI J. 2012. O Problema de Flow Shop Híbrido: Revisão e Classificação. In XXXII Encontro Nacional de Engenharia de Produção, p. 1-13.). This fact favors the present work, since the linear model developed is innovative, considering that each equipment has different characteristics and that each product can be manufactured more than once, in addition to other limitations that occur in the real case studied.

3 PROBLEM CHARACTERIZATION

In this work, the production line of a hair cosmetics factory was studied. The production line consists of three stages: stage I, the reactors (R); stage II, the storage tanks (S); and stage III, the packing machines (P). In the reactors, the products are processed and, later, can be stored in tanks. The packing machines are used to put the products in their respective bottles, completing the production line. The production is made by batch processes, which are rechargeable processes.

In stage I, the products are manufactured in batches, performed by operators. The batches are stored in step II if necessary and, then, transferred to the stage III, where the operators of this stage complete the manufacturing process.

Steps I and III are required in every production because they are indispensable in the processing of the desired product. However, step II is only used when intermediate storage is required between stages I and III. Thus, storage tanks are not required, but their use can streamline production since the use releases the reactor to a new production before the packaging stage is completed.

Physical limitations in the production layout were considered, as they restrict the connection between the equipment. These limitations are represented as reactor-storage compatibility (R-S), reactor-packer compatibility (R-P), and storage-packer compatibility (S-P). There is also incompatibility between products and equipment, since some products (divided into classes A and B and subdivided into types 1, 2, and 3) need to be processed in specific equipment.

The batches are processed in the reactors and are transferred to the storage tanks or directly to the packing machines. The equipment can only be released for setup when the whole batch has been transferred and completed in the next step, since during transfer and processing they are connected. The transfer time to a tank is shorter than the packing time, which stresses the importance of storage tanks. Therefore, if a storage tank is used, the reactor can be released for setup prior to packaging.

Figure 1 represents the factory production line described and used in this work, where it is possible to observe the number of equipment used in each stage, the arrangement of the production line, and the product-equipment and equipment-equipment compatibility.

Figure 1
Flowchart of a production line.

4 MILP FORMULATIONS

The production line studied in this article can be modeled as a problem similar to hybrid flow shop, because there is more than one stage and more than one piece of equipment per stage. However, there was a need to add more complex constraints to better represent the reality of the factory studied. Furthermore, due to complexity, the resulting model was decomposed in two models that are used sequentially. Instead of deciding simultaneosly the assignment of products to batches and the schedule of the batches into the equipments, we first determine the minimum number of batches to satisfy the demand (by a first model) and then we solve the whole model considering only this minimum number of batches. This reduce the complexity of the model, as no useless batch are considered.

4.1 Considerations for models

The production is done by means of batch; therefore, the model was based on determining how many batches are produced, which products are present in each one of them, in which pieces of equipment they are allocated, and when they are processed. The size of a batch depends on the capacity of the reactor used to process it, and the total demand of a product may be divided into multiple batches. Moreover, each batch can contain at most one product and must be allocated in the machinery to complete the demand.

In the reactors, the batch is allocated according to the compatibility between the product and the route that each reactor can be connected. Each reactor can only contain one batch at a time, and the number of operators available must be respected because there is a limit on the number of workers, which generates a limit on the number of reactors that can be used at the same time. The capacity of the reactors is nominal, that is, each one processes the maximum mass of product possible. After the manipulation of each batch and the transfer to a storage tank or the directly packing, a setup must be performed. However, when processing the same item in consecutive batches in the same reactor, the setup is only 10% of the normal setup, due to easier clean up and preparation.

After the manipulation, the batches can be transferred to the storage tanks (step II) or processed directly into the packers (step III). When the transfer occurs, the R-S compatibility must be respected. The reactor and the storage tank are busy during the transfer, and it is necessary to wait for the conclusion of one stage to start the next one. Each tank can contain only one batch at a time, and the processing time is the transfer time required for the product, which is directly proportional to the mass transferred. After filling the tank (step II), step III must be completed before starting the setup, which consists of cleaning the tank. And just like in reactors, if the next product to be allocated to a tank is the same as the previous batch, the setup is only 10% of the normal setup.

In step III, only one batch can be processed at a time. Also, the limit of operators in this sector and the compatibility R-P, S-P, and product-P must be respected. The packing time depends on the mass of product contained in the batch and the number of workers, which has a lower and higher limit. After this step, both the storage tank (or the reactor in the case of direct packaging) and the packaging machine are released to the setup step, which is 10% of normal setup if the next product is the same as the previous one. At the end of this phase, the manufacture of the product in the batch is completed.

From these considerations, two mathematical models of mixed integer linear programming were created, consisting of parameters, variables, objective functions, and constraints. Model I was used to determine the allocation of products into the batches and Model II was used to determine the batch processing route. Thus, the problem was divided into two parts, making it easier to solve.

4.2 Parameters

The data of a production line is represented by the following parameters, which are defined as integer (int), real (real), or binary (bin):

N (int) = Estimated number of batches required (equal to 11 for a daily production in the factory studied, because it is the maximum number of batches that can be produced in one day);

PD (int) = Number of products;

R (int), S (int) and P (int) = Number of reactors, storage tanks, and packing machines available in the production line;

OI (int) and OIII (int) = Number of operators in stages I and III;

Dpd (real) = Demand of the product pd;

M (int) = Very large number (big M) (in this work we used M = 10000);

MinOIIIp (int) and MaxOIIIp (int) = Minimum and maximum numbers of operators required in the packaging machine p;

TIOIoi (real) and TIOIIIoiii (real) = Initial times of the activity of the operator oi of step I and operator oiii of step III;

TIRr (real), TISs (real) and TIPp (real) = Initial operating times of the reactor r, storage tank s,

and packing machine p;

TFRr (real), TFSs (real) and TFPp (real) = Final operating times of reactor r, storage tank s, and packing machine p;

TLRpd,r (real), TLSpd,s (real) and TLPpd,p (real) = Setup times of the product pd in the reactor r, in the storage tank s, and in the packing machine p;

PRMpd,r (real) = Processing time of the product pd in the reactor r (medium value);

PSMpd,s (real) and PPMpd,p (real) = Processing time of the product pd in the storage tank s and in the packing machine p (medium value per unit mass);

MRpd,r (real) = Mass of the product pd that can be produced in the reactor r;

XIRpd,r (bin), XISpd,s (bin) and XIPpd,p (bin) = Compatibilities between pd and r, between pd and

s, and between pd and p;

XRSr,s (bin), XSPs,p (bin) and XRPr,p (bin) = Compatibilities between r and s, between s and p,

and between r and p;

XBpd,i (bin) = Allocation of the product pd in the batch i (1 if allocated and 0 otherwise) (used only in Model II).

4.3 Variables

The optimal solution is defined according to the values found for the following variables, which are also defined as integer (int), real (real), or binary (bin):

endr (real) = Reactors release makespan;

endp (real) = Packing machines makespan;

tri (real), tsi (real) and tpi (real) = Initial processing time of the batch i in the reactors, storage tanks, and packing machines;

pri (real), psi (real) and ppi (real) = Processing time of the batch i in the reactors, storage tanks and, packing machines;

ttri (real) = Release of the reactor that produced the batch i;

xbpd,i (bin) = Allocation of product pd in batch i (1 if allocated and 0 otherwise) (used only in Model I);

xri,r (bin), xsi,s (bin) and xpi,p (bin) = Allocations of batch i in reactor r, in storage tank s, and in packing machine p (1 if allocated and 0 otherwise);

xoii,oi (bin) and xoiiii,oiii (bin) = Processing of batch i by the operator oi in step I and by the operator oiii in step III (1 if it is processed by the operator and 0 otherwise);

xtri,j (bin), xtsi,j (bin) and xtpi,j (bin) = Precedence rules between batches i and j in reactors, in storage tanks, and in packing machines (0 if i precedes j, otherwise 1).

4.4 Model I

The first model assigns products to batches. Usually, several products have a demand that may not be fully obtained by one only batch, due to reactor capacities. The production must then be divided into more than one batch. As reactors have different capacities, batches are of different sizes, and the first decision was to define the minimum number of batches necessary to fulfill the demand of all products. This was decided by Model I, defined as shown below, starting from an estimated upper bound N on the number of batches.

min pd PD i N xb pd , i (1)

pd = 1 PD xb pd , i 1 ; i = 1 , . . . , N (2)

The products were organized in the batch according to the constraint (3), where the products of smaller numbers were destined for the batch of larger numbers. This rule exists in order to organize allocations, avoid unnecessary searches due to simmetry, and ensure that only the minimum number of batches is filled.

pd = 1 PD pd · xb pd , i pd = 1 PD pd · xb pd , i - 1 ; i = 2 , . . . , N (3)

Constraints (4)-(6) state that if a batch contains a product, it must be allocated in a reactor and in a packing machine, as well as possibly into a storage tank.

r = 1 R xr i , r = pd = 1 PD xb pd , i ; i = 1 , . . . , N (4)

s = 1 S xs i , s pd = 1 PD xb pd , i ; i = 1 , . . . , N (5)

p = 1 P xp i , p = pd = 1 PD xb pd , i ; i = 1 , . . . , N (6)

A production route must comply with the compatibility rules, which is assured by constraints (7)-(9). For example, (7) states that, if a batch i is allocated to a reactor r and a storage tank s, the product inside the batch must be compatible with both reactor and storage tank, and they must be compatible to each other.

xr i , r pd = 1 PD xb pd , i · XIR pd , r · XIS pd , s · XRS r , s + M · 1 - xs i , s ; i = 1 , . . . , N r = 1 , . . . , R s = 1 , . . . , S (7)

xs i , s pd = 1 PD xb pd , i · XIS pd , s · XIP pd , p · XSP s , p + M · 1 - xp i , p ; i = 1 , . . . , N s = 1 , . . . , S p = 1 , . . . , P (8)

xr i , r pd = 1 PD xb pd , i · XIR pd , r · XIP pd , p · XRP r , p + M · 1 - xp i , p + M · s = 1 S xs i , s ; i = 1 , . . . , N r = 1 , . . . , R p = 1 , . . . , P (9)

The sum of the mass produced of a product must be at least its demand. The constraint (10) is not linear, but the CPLEX is able to automatically linearize the equation modules. In order to do so, we used the term xri,r+xbpd,i-xri,r-xbpd,i/2 instead of xri,r · xbpd,i.

i = 1 N r = 1 R MR pd , r · xr i , r + xb pd , i - xr i , r - xb pd , i 2 D pd ; pd = 1 , . . . , PD (10)

4.5 Model II

The second model (Model II) was created to decide a production route for each batch. This model used the solution obtained from Model I in order to consider only batches to which a product is allocated. Thus, the decision variable xbpd,i of the first model was transformed into an array of parameters to be used in the second model, which indicates whether pd is inserted in i (XBpd,i). Only constraints regarding production routes were considered in this model. The goal was to minimize the makespan, but in order to speed up the process while avoiding different solutions with the same makespan, the objective function considered also the minimization of the completion time of each batch (multiplied by a very small weight, so the main objective remains the minimization of makespan). Besides that, the minimization of the reactor release time to the following day was also considered, so the production may start as soon as possible (11).

min endr + endp + 0 , 001 i = 0 N pr i + tr i + pp i + tp i + 0 , 00001 i = 0 N ttr i (11)

Constraint (12) ensures that the reactor makespan is at least the maximum among the release time of all reactors.

ttr i endr ; i = 1 , . . . , N (12)

And constraint (13) ensures that the production makespan is the maximum among the completion time of all batches in the packing machine.

tp i + pp i endp ; i = 1 , . . . , N (13)

The release time of the reactors must be greater than or equal to the completion time of the packer connected to it, or to the completion time of the storage tank if it is used (constraints 14 and 15).

ttr i ts i + ps i ; i = 1 , . . . , N (14)

ttr i tp i + pp i · 1 - s = 1 S xs i , s ; i = 1 , . . . , N (15)

The production route must comply with the compatibility rules, which is assured by constraints (16)-(18).

xr i , r pd = 1 PD XB pd , i · XIR pd , r · XIS pd , s · XRS r , s + M · 1 - x s i , s ; i = 1 , . . . , N r = 1 , . . . , R s = 1 , . . . , S (16)

xs i , s pd = 1 PD XB pd , i · XIS pd , s · XIP pd , p · XSP s , p + M · 1 - xp i , p ; i = 1 , . . . , N s = 1 , . . . , S p = 1 , . . . , P (17)

xr i , r pd = 1 PD XB pd , i · XIR pd , r · XIP pd , p · XRP r , p + M · 1 - xp i , p + M · s = 1 S xs i , s ; i = 1 , . . . , N r = 1 , . . . , R p = 1 , . . . , P (18)

According to the constraint (19), the demand must be met. In this model, the batches will be allocated to reactors of different capacities, so it is necessary to verify if the demand is being met.

i = 1 N r = 1 R MR pd , r · xr i , r + XB pd , i - xr i , r - XB pd , i 2 D pd ; pd = 1 , . . . , PD (19)

The processing time pri of a batch depends on the reactor used and the product (constraints 20 and 21).

pr i PRM pd , r · xr i , r - M · 1 - XB pd , i ; i = 1 , . . . , N pd = 1 , . . . , PD r = 1 , . . . , R (20)

pr i 0 ; i = 1 , . . . , N (21)

The processing time psi of a batch on a storage tank depends on the mass produced in the reactor (constraints 22 and 23).

ps i MR pd , r · PSM pd , s + 20 · xs i , s - M · 1 - XB pd , i - M · 1 - xr i , r ; i = 1 , . . . , N pd = 1 , . . . , PD s = 1 , . . . , S r = 1 , . . . , R (22)

ps i 0 ; i = 1 , . . . , N (23)

And the processing time ppi of a batch on a packing machine depends on the mass produced in the reactor and the number of workers used in the packing machine (constraints 24 and 25).

pp i MR pd , r · PPM pd , p + 80 · xp i , p - 1 , 2 · oiii = 1 OIII xoiii i , oiii - M · 1 - XB pd , i - M · 1 - xr i , r ; i = 1 , . . . , N pd = 1 , . . . , PD p = 1 , . . . , P r = 1 , . . . , R (24)

pp i 0 ; i = 1 , . . . , N (25)

The start time of each batch must be greater than or equal to the start time of the equipment used, as indicated in constraints (26), (27), and (28).

tr i TIR r . xr i , r ; i = 1 , . . . , N r = 1 , . . . , R (26)

ts i TIS s . xs i , s ; i = 1 , . . . , N s = 1 , . . . , S (27)

tp i TIP p . xp i , p ; i = 1 , . . . , N p = 1 , . . . , P (28)

The completion time of each batch must be less than or equal to the end time of the equipment used, as indicated in constraints (29), (30), and (31).

tr i + pr i TFR r . xr i , r + M · 1 - xr i , r ; i = 1 , . . . , N r = 1 , . . . , R (29)

ts i + ps i TFS s . xs i , s + M · 1 - xs i , s ; i = 1 , . . . , N s = 1 , . . . , S (30)

tp i + pp i TFP p . xp i , p + M · 1 - xp i , p ; i = 1 , . . . , N p = 1 , . . . , P (31)

The order of batch processing in steps I, II, and III are defined by constraints (32) to (40), as well as feasible completion times accorting to the processing order.

tr i tr j - M · 1 - xtr i , j ; i = 1 , . . . , N j = 1 , . . . , N (32)

xtr i , j + xtr j , i = 1 ; i = 1 , . . . , N j = 1 , . . . , N ; j i (33)

xtr i , i = 0 ; i = 1 , . . . , N (34)

ts i ts j - M · 1 - xts i , j ; i = 1 , . . . , N j = 1 , . . . , N (35)

xts i , j + xts j , i = 1 ; i = 1 , . . . , N j = 1 , . . . , N ; j i (36)

xts i , i = 0 ; i = 1 , . . . , N (37)

tp i tp j - M · 1 - xtp i , j ; i = 1 , . . . , N j = 1 , . . . , N (38)

xtp i , j + xtp j , i = 1 ; i = 1 , . . . , N j = 1 , . . . , N ; j i (39)

xtp i , i = 0 ; i = 1 , . . . , N (40)

The start time of a batch i in an equipment must be greater than or equal to the previous batch completion time processed in the same equipment, added to the setup time, which can be 10% of the normal setup if they are the same products (restrictions 41 to 44).

tr i ts j + ps j + TLR pd , r · XB pd , j - 0 , 9 XB pd , i - M · 3 - xtr i , j - xr i , r - xr j , r ; i = 1 , . . . , N j = 1 , . . . , N r = 1 , . . . , R pd = 1 , . . . , PD (41)

tr i tp j + pp j + TLR pd , r · XB pd , j - 0 , 9 XB pd , i - M · 3 - xtr i , j - xr i , r - xr j , r - M · s = 1 S xs i , s ; i = 1 , . . . , N j = 1 , . . . , N r = 1 , . . . , R pd = 1 , . . . , PD (42)

ts i tp j + pp j + TLS pd , s · XB pd , j - 0 , 9 XB pd , i - M · 3 - xts i , j - xs i , s - xs j , s ; i = 1 , . . . , N j = 1 , . . . , N s = 1 , . . . , S pd = 1 , . . . , PD (43)

tp i tp j + pp j + TLP pd , p · XB pd , j - 0 , 9 XB pd , i - M · 3 - xtp i , j - xp i , p - xp j , p ; i = 1 , . . . , N j = 1 , . . . , N p = 1 , . . . , P pd = 1 , . . . , PD (44)

According to constraints (45) and (46), the start time of a batch in an equipment of steps II and III must be greater than or equal to the completion time in the previous steps.

ts i tr i + pr i ; i = 1 , . . . , N (45)

tp i ts i + ps i ; i = 1 , . . . , N (46)

Each step I operator can work on only one process at a time (constraint 47).

tr i tr j + pr j - M · 3 - xtr ij - xoi i , oi - xoi j , oi ; i = 1 , . . . , N j = 1 , . . . , N oi = 1 , . . . , OI (47)

Every batch processed in a reactor demands only one operator, as shown in constraint 48.

oi = 1 OI xoi i , oi = r = 1 R xr i , r ; i = 1 , . . . , N (48)

The constraints (49) and (51) implies that each worker can accumulate at most one task more than the others. Also, constraint (50) ensures that a batch can only be started when its respective worker is released.

i = 1 N xoi i , oi + 1 i = 1 N xoi i , oi + 1 ; oi = 1 , . . . , OI - 1 (49)

tr i xoi i , oi · TIOI oi ; i = 1 , . . . , N oi = 1 , . . . , OI (50)

Constraints (51) to (55) represent the same workers’ restrictions from step I, (47) to (50), for step III. The only difference is that more than one worker can work at the same time on a packing machine (a greater number of workers results in a shorter packaging time), as long as the maximum and minimum limits are respected.

tp i tp j + pp j - M · 3 - xtp i , j - xoiii i , oiii - xoiii j , oiii ; i = 1 , . . . , N j = 1 , . . . , N oiii = 1 , . . . , OIII (51)

oiii = 1 OIII xoiii i , oiii p = 1 P MinOIII p · xp i , p ; i = 1 , . . . , N (52)

oiii = 1 OIII xoiii i , oiii p = 1 P MaxOIII p · xp i , p ; i = 1 , . . . , N (53)

i = 1 N xoiii i , oiii + 1 i = 1 N xoiii i , oiii + 1 ; oiii = 1 , . . . , OIII - 1 (54)

tp i xoiii i , oiii · TIOIII o i i i ; i = 1 , . . . , N oiii = 1 , . . . , OIII - 1 (55)

5 SOLVING A REAL CASE

Real instances were simulated to evaluate the usability and validity of the models presented. The simulation and optimization were performed considering the production line of the hair cosmetics factory studied, characterized by Figure 1, where there are seven reactors, four storage tanks, and six packaging machines. The manufactured products are presented in Table 1.

Table 1
Items produced by the hair cosmetics factory studied.

The factory operates from 8:00 AM to 5:15 PM, performing intervals from 9:00 AM to 9:20 AM, 11:30 AM to 12:35 PM, and 3:00 PM to 3:20 PM. Thus, based on this work period, simulations were performed for the case of three daily productions in order to comply with the demands presented in Table 2.

Table 2
Demand of each product on each day.

The processing time of the products in step I varies according to the reactor used and the product manufactured (regardless of product class and type), as shown in Table 3. In addition, setup time and the capacity of each reactor can be observed in Table 4, and the Product-R and R-S compatibilities used in this case are present in Tables 5 and 6, respectively. Observe that Reactor 2 is not compatible with any storage tank. In fact, it is connected only to packing machines, as may be seen in Figure 1.

Table 3
Processing time in step I (in minutes).

Table 4
Setup time and capacities of the reactors.

Table 5
Compatibility Product-R (1 if compatible, 0 otherwise).

Table 6
Compatibility R-S (1 if compatible, 0 otherwise).

In step II, the processing time in each storage tank is the same (0.005 minutes per kilogram of product transferred). The setup time is also the same for all tanks (60 minutes). In addition, the Product-S compatibility is equal to 1 for all cases and the S-P compatibility used in the factory can be seen in Table 7.

Table 7
Compatibility S-P (1 if compatible, 0 otherwise).

In stage III, the processing and setup times are independent of the product manufactured, but they depend on the packaging machine used, as seen in Table 8. Each equipment in this step requires a number of operators between the minimum and maximum established, as shown in Table 9. And the product-P and R-P compatibilities used in this case are present in Tables 10 and 11, respectively.

Table 8
Processing and setup times in step III.

Table 9
Minimum and maximum number of operators in each packing machine.

Table 10
Compatibility Product-P (1 if compatible, 0 otherwise).

Table 11
Compatibility R-P (1 if compatible, 0 otherwise).

Therefore, three consecutive daily productions were simulated and optimized to demonstrate the operation and viability of the models developed in this work in real case of the studied factory. The simulations were performed using CPLEX Optimization Studio software (student version) on a computer with 8GB RAM and an Intel i7 processor.

6 RESULTS

For the first day demand, the results presented in the Gantt diagram of Figure 2 were obtained. In this diagram, it can be seen that the productions were organized and sequenced in the equipment in order to meet the demand of the day in the shortest time found. The model determined which batches should be stored in the tanks and which could be packed directly. The solution of Model I was obtained in 1.05 seconds with a GAP of 0.00%. Execution of Model II was performed in 1 minute and 31 seconds with a GAP of 0.57% (even with a longer search time, a lower GAP was not found).

Figure 2
Result for the production started on the first day.

Observing the result for the demand of the first day, in Figure 2, it is possible to conclude that it could not be fulfilled in just one day. Therefore, this demand is completed in the next day, generating a delay in the beginning of production of the second day.

The results for the production of second day demand can be observed in Figure 3. It was sequenced in the equipment in order to meet the demand in the shortest time found and respecting the end of the production of the previous day. Model I required 1.12 seconds of processing, obtaining a GAP of 0.00%. The execution of Model II was performed in 1 minute and 45 seconds. The Model II was run for 1h, and finished with gap 12.5%. This gap was obtained after only 1 minute and 45 seconds, then we can state that after this short time the best solution we could get was already found.

Figure 3
Result for the production started on the second day.

Similar to the first day, demand for the second day could only be completed the day after, delaying the start of production on the third day. This fact can be observed in the results obtained for the simulation of the demand of the third day, presented in Figure 4. The execution of Model I was performed in 1.04 seconds, obtaining 0.00% of GAP, and Model II was performed in 1 minute and 42 seconds, reaching a GAP of 0.67%. The best sequencing was obtained, meeting the demand in the shortest time found and determining which production routes would be the best.

Figure 4
Result for the production started on the third day.

7 CONCLUSION

In the present study, two mixed linear programming mathematical models that, by working together, represented the production line of a real case of hybrid flow shop were developed. The first model (Model I) was used to allocate the products in batches and the second model (Model II) to determine the batch processing route in the equipment of sectors I, II, and III. Both models were solved in the CPLEX Optimization Studio solver. Three consecutive daily productions of the hair cosmetics factory were simulated. From the results obtained, it was possible to prove the usefulness and the viability of the models created to obtain optimal solutions for the production of the studied factory. Though the results were achieved in a short time and the models worked well for the factory production scheme, the same functionality cannot be ensured for more complex problems. However, the use of this study by factories can reduce the production time (makespan and completion time), make the production line more organized, and increase the profitability of its productions.

References

  • 1
    BATALHA MO, ET AL. 2008. Introdução À Engenharia De Produção 1st ed. Rio de Janeiro: Elsevier Editora Ltda.
  • 2
    BELFIORE P & FÁVERO L. 2013. Pesquisa Operacional Para Cursos de Engenharia 1st ed. Rio de Janeiro: Elsevier Editora Ltda .
  • 3
    BOZEJKO W, PEMPERA J & SMUTNICKI C. 2013. Parallel tabu search algorithm for the hybrid flow shop problem. Computers and Industrial Engineering, 65(3): 466-474.
  • 4
    CUI Z, & GU X. 2015. An improved discrete artificial bee colony algorithm to minimize the makespan on hybrid flow shop problems. Neurocomputing, 148: 248-259.
  • 5
    DIOS M, FERNANDEZ-VIAGAS V & FRAMINAN J M. 2018. Efficient heuristics for the hybrid flow shop scheduling problem with missing operations. Computers and Industrial Engineering, 115(Nov.2017): 88-99.
  • 6
    ENGIN O & GÜÇLÜ A. 2018. A new hybrid ant colony optimization algorithm for solving the no-wait flow shop scheduling problems. Applied Soft Computing Journal, 72: 166-176.
  • 7
    FANJUL-PEYRO L, PEREA F & RUIZ R. 2017. Models and matheuristics for the unrelated parallel machine scheduling problem with additional resources. European Journal of Operational Research, 260(2): 482-493.
  • 8
    FERNANDEZ-VIAGAS V, PEREZ-GONZALEZ P & FRAMINAN J M. 2019. Efficiency of the solution representations for the hybrid flow shop scheduling problem with makespan objective. Computers and Operations Research, 109: 77-88.
  • 9
    FIGIELSKA E. 2014. A heuristic for scheduling in a two-stage hybrid flowshop with renewable resources shared among the stages. European Journal of Operational Research, 236(2): 433-444.
  • 10
    KIM H J & LEE J H. 2019. Three-machine flow shop scheduling with overlapping waiting time constraints. Computers and Operations Research, 101: 93-102.
  • 11
    LALITHA J L, MOHAN N & PILLAI V M. 2017. Lot streaming in [N-1](1)+N(m) hybrid flow shop. Journal of Manufacturing Systems, 44: 12-21.
  • 12
    LI G, LI N, SAMBANDAM N, SETHI S P & ZHANG F. 2018. Flow shop scheduling with jobs arriving at different times. International Journal of Production Economics, 206(Oct): 250-260.
  • 13
    MIDGLEY G, JOHNSON M P & CHICHIRAU G. 2018. What is Community Operational Research? European Journal of Operational Research, 268(3): 771-783.
  • 14
    NABLI Z, KHALFALLAH S & KORBAA O. 2018. A two-stage hybrid flow shop problem with dedicated machine and release date. Procedia Computer Science, 126: 214-223.
  • 15
    NEJATI M, MAHDAVI I, HASSANZADEH R, MAHDAVI-AMIRI N & MOJARAD M. 2014. Multi-job lot streaming to minimize the weighted completion time in a hybrid flow shop scheduling problem with work shift constraint. International Journal of Advanced Manufacturing Technology, 70(1-4): 501-514.
  • 16
    OLIVEIRA G & TURRIONI J. 2012. O Problema de Flow Shop Híbrido: Revisão e Classificação. In XXXII Encontro Nacional de Engenharia de Produção, p. 1-13.
  • 17
    ÖZPEYNIRCI S, GÖKGÜR B & HNICH B. 2016. Parallel machine scheduling with tool loading. Applied Mathematical Modelling, 40(9-10): 5660-5671.
  • 18
    PAN Q K, FATIH-TASGETIREN M, SUGANTHAN P N & CHUA T J. 2011. A discrete artificial bee colony algorithm for the lot-streaming flow shop scheduling problem. Information Sciences, 181(12): 2455-2468.
  • 19
    PENG K, WEN L, LI R, GAO L & LI X. 2018. An Effective Hybrid Algorithm for Permutation Flow Shop Scheduling Problem with Setup Time. In 51st CIRP Conference on Manufacturing Systems, 72: 1288-1292.
  • 20
    PESSOA L S & ANDRADE C E. 2018. Heuristics for a flowshop scheduling problem with stepwise job objective function. European Journal of Operational Research, 266(3): 950-962.
  • 21
    RAU E P. 2005. Combat science: the emergence of Operational Research in World War II. Endeavour, 29(4): 156-161.
  • 22
    RIBAS I, LEISTEN R & FRAMINÃN J M. 2010. Review and classification of hybrid flow shop scheduling problems from a production system and a solutions procedure perspective. Computers and Operations Research, 37(8): 1439-1454.
  • 23
    RUIZ R & VÁZQUEZ-RODRÍGUEZ J A. 2010. The hybrid flow shop scheduling problem. European Journal of Operational Research, 205(1): 1-18.
  • 24
    VIELMA J P. 2015. Mixed Integer Linear Programming Formulation Techniques. SIAM Review, 57(1): 3-57.
  • 25
    WANG S & LIU M. 2014. Two-stage hybrid flow shop scheduling with preventive maintenance using multi-objective tabu search method. International Journal of Production Research, 52(5): 1495-1508.
  • 26
    WANG S, LIU M & CHU C. 2015. A branch-and-bound algorithm for two-stage nowait hybrid flow-shop scheduling. International Journal of Production Research, 53(4): 1143-1167.
  • 27
    YU C, SEMERARO Q & MATTA A. 2018. A genetic algorithm for the hybrid flow shop scheduling with unrelated machines and machine eligibility. Computers and Operations Research, 100: 211-229.

Publication Dates

  • Publication in this collection
    18 May 2020
  • Date of issue
    2020

History

  • Received
    21 Jan 2019
  • Accepted
    04 Oct 2019
Sociedade Brasileira de Pesquisa Operacional Rua Mayrink Veiga, 32 - sala 601 - Centro, 20090-050 , Tel.: +55 21 2263-0499 - Rio de Janeiro - RJ - Brazil
E-mail: sobrapo@sobrapo.org.br