Algorithms for Scheduling Problems Frank Werner, Larysa Burtseva and Yuri Sotskov www.mdpi.com/journal/algorithms Edited by Printed Edition of the Special Issue Published in Algorithms algorithms Algorithms for Scheduling Problems Algorithms for Scheduling Problems Special Issue Editors Frank Werner Larysa Burtseva Yuri Sotskov MDPI • Basel • Beijing • Wuhan • Barcelona • Belgrade Special Issue Editors Frank Werner Otto-von-Guericke University Magdeburg Germany Larysa Burtseva Universidad Autonoma de Baja California Mexico Yuri Sotskov United Institute of Informatics Problems Belarus Editorial Office MDPI St. Alban-Anlage 66 Basel, Switzerland This is a reprint of articles from the Special Issue published online in the open access journal Algorithms (ISSN 1999-4893) in 2018 (available at: http://www.mdpi.com/journal/algorithms/ special issues/Scheduling Problems) For citation purposes, cite each article independently as indicated on the article page online and as indicated below: LastName, A.A.; LastName, B.B.; LastName, C.C. Article Title. Journal Name Year , Article Number , Page Range. ISBN 978-3-03897-119-1 (Pbk) ISBN 978-3-03897-120-7 (PDF) Articles in this volume are Open Access and distributed under the Creative Commons Attribution (CC BY) license, which allows users to download, copy and build upon published articles even for commercial purposes, as long as the author and publisher are properly credited, which ensures maximum dissemination and a wider impact of our publications. The book taken as a whole is c © 2018 MDPI, Basel, Switzerland, distributed under the terms and conditions of the Creative Commons license CC BY-NC-ND (http://creativecommons.org/licenses/by-nc-nd/4.0/). Contents About the Special Issue Editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii Preface to ”Algorithms for Scheduling Problems” . . . . . . . . . . . . . . . . . . . . . . . . . . ix Hongliang Zhang, Youcai Fang, Ruilin Pan and Chuanming Ge A New Greedy Insertion Heuristic Algorithm with a Multi-Stage Filtering Mechanism for Energy-Efficient Single Machine Scheduling Problems Reprinted from: Algorithms 2018 , 11 , 18, doi: 10.3390/a11020018 . . . . . . . . . . . . . . . . . . . 1 Yuri N. Sotskov and Natalja G. Egorova Single Machine Scheduling Problem with IntervalProcessing Times and Total Completion Time Objective Reprinted from: Algorithms 2018 , 11 , 66, doi: 10.3390/a11050066 . . . . . . . . . . . . . . . . . . . 21 Nodari Vakhania Scheduling a Single Machine with Primary and Secondary Objectives Reprinted from: Algorithms 2018 , 11 , 80, doi: 10.3390/a11060080 . . . . . . . . . . . . . . . . . . . 41 Helio Yochihiro Fuchigami, Ruhul Sarker and Socorro Rangel Near-Optimal Heuristics for Just-In-Time Jobs Maximization in Flow Shop Scheduling Reprinted from: Algorithms 2018 , 11 , 43, doi: 10.3390/a11040043 . . . . . . . . . . . . . . . . . . . 57 Victor Hugo Yaurima-Basaldua, Andrei Tchernykh, Francisco Villalobos-Rodr ́ ıguez and Ricardo Salomon-Torres Hybrid Flow Shop with Unrelated Machines, Setup Time, and Work in Progress Buffers for Bi-Objective Optimization of Tortilla Manufacturing Reprinted from: Algorithms 2018 , 11 , 68, doi: 10.3390/a11050068 . . . . . . . . . . . . . . . . . . . 74 Omid Gholami and Johanna T ̈ ornquist Krasemann A Heuristic Approach to Solving the Train Traffic Re-Scheduling Problem in Real Time Reprinted from: Algorithms 2018 , 11 , 55, doi: 10.3390/a11040055 . . . . . . . . . . . . . . . . . . . 97 Alexander A. Lazarev, Ivan Nekrasov and Nikolay Pravdivets Evaluating Typical Algorithms of Combinatorial Optimization to Solve Continuous-Time Based Scheduling Problem Reprinted from: Algorithms 2018 , 11 , 50, doi: 10.3390/a11040050 . . . . . . . . . . . . . . . . . . . 115 D. G. Mogale, Geet Lahoti, Shashi Bhushan Jha, Manish Shukla, Narasimha Kamath and Manoj Kumar Tiwari Dual Market Facility Network Design under Bounded Rationality Reprinted from: Algorithms 2018 , 11 , 54, doi: 10.3390/a11040054 . . . . . . . . . . . . . . . . . . . 128 Boris Sokolov, Alexandre Dolgui and Dmitry Ivanov Optimal Control Algorithms and Their Analysis for Short-Term Scheduling in Manufacturing Systems Reprinted from: Algorithms 2018 , 11 , 57, doi: 10.3390/a11050057 . . . . . . . . . . . . . . . . . . . 146 Boris Kriheli and Eugene Levner Entropy-Based Algorithm for Supply-Chain Complexity Assessment Reprinted from: Algorithms 2018 , 11 , 35, doi: 10.3390/a11040035 . . . . . . . . . . . . . . . . . . . 165 v Alexander Yu. Drozdov, Andrei Tchernykh, Sergey V. Novikov, Victor E. Vladislavlev and Raul Rivera-Rodriguez PHEFT: Pessimistic Image Processing Workflow Scheduling for DSP Clusters Reprinted from: Algorithms 2018 , 11 , 76, doi: 10.3390/a11050076 . . . . . . . . . . . . . . . . . . . 180 vi About the Special Issue Editors Frank Werner , Apl. Prof. Dr. rer. nat. habil., studied Mathematics from 1975–1980 and graduated from the Technical University Magdeburg with honors. He defended his Ph.D. thesis on the solution of special scheduling problems in 1984 with ”summa cum laude” and his habilitation thesis in 1989. In 1992, he received a grant from the Alexander-von-Humboldt Foundation. He currently works as an extraordinary professor at the Faculty of Mathematics of the Otto-von-Guericke University Magdeburg (Germany). He is an editor of one monograph and an author of three further books, as well as of more than 250 publications in international journals. He is on the Editorial Board of 14 journals, and in particular is an Associate Editor of the International Journal of Production Research and the Journal of Scheduling . He was a member of the Program Committee of more than 50 international conferences. His research interests are Operations Research, Combinatorial Optimization and Scheduling. Larysa Burtseva , Dr., graduated from the Rostov State University (Russia) in Economic Cybernetics (1975) and defended her Ph.D. thesis on Control in Technical Systems (Technical Cybernetics, 1989) at the Radioelectronics University of Kharkov (Ukraine). Since 2000 she has worked as a full professor at the Engineering Institute of The Universidad Aut ́ onoma de Baja California, Mexicali, Mexico. She has led the Laboratory of Scientific Computation since 2005. She has more than 70 publications in international journals and conference proceedings, as well as six book chapters. Her research interests are Discrete Optimization, particularly Combinatorial Optimization, Scheduling, and also packing problems for different applications. She is a member of the National System of Researchers of the National Council for Science and Technology of Mexico (SNI CONACYT) and is a regular member of The Mexican Academy of Computation (AMEXCOMP). Yuri N. Sotskov , Prof. D. Sc., finished secondary school with a gold medal in 1966 and graduated from the Faculty of Applied Mathematics of the Belarusian State University in Minsk in 1971. In 1980, he defended his Ph.D. thesis at the Institute of Mathematics of the National Academy of Sciences of Belarus. In 1991, he defended his D.Sc. thesis at the Institute of Cybernetics of the National Academy of Sciences of Ukraine. He has the title of Professor in Application of Mathematical Models and Methods in Scientific Research (Russian Academy of Sciences, 1994). He currently works as a principal researcher at the United Institute of Informatics Problems of the National Academy of Sciences of Belarus. He has more than 350 publications: five scientific monographs, two text books, more than 150 papers in international journals, books, and conference proceedings in English on applied mathematics, operations research, and scheduling. He is on the Editorial Board of four journals. He has been a supervisor of eight Ph.D. students (defended). In 1998, he received the National Prize of Belarus in Science and Engineering. vii Preface to ”Algorithms for Scheduling Problems” Optimal scheduling is an important area of operations research, as it has both theoretical and practical aspects. It is clear that efficient algorithms are most desirable for practical applications, since most real-world scheduling problems have large sizes but require fast decisions. Due to this, practitioners often prefer to use rather simple algorithms which provide schedules that may be far from optimal with respect to their quality. This book is based on a Special Issue entitled ”Algorithms for Scheduling Problems”. In the Call for Papers, we invited prospective authors to submit their latest research in the area of the development of scheduling algorithms. We were looking for new and innovative approaches to solving scheduling problems exactly or approximately. High-quality papers were solicited to address both theoretical and practical issues of scheduling algorithms. Submissions were welcome both for traditional scheduling problems, as well as for new applications. We mentioned that potential topics included, but were not limited to, sequencing in single-stage systems and multi-stage systems with additional constraints such as setup times or costs, precedence constraints, batching, lot sizing, resource constraints, etc., also including single- or multi-criteria objectives and a broad range of scheduling problems in emerging applications such as sports, healthcare, and energy management. In response to the Call for Papers, we selected eleven submissions, all of which are of high quality, reflecting the stable and growing interest in the area of effective and efficient algorithms to solve problems for real-world production planning and scheduling. All submissions have been reviewed by at least three experts in the operations research area. Each chapter of this book contains one of these selected papers. We hope that practical schedulers will find some interesting theoretical ideas in this Special Issue, while researchers will find new practical directions for implementing their scheduling algorithms. In the following, we give some short comments on the particular chapters. The first three chapters deal with single-machine problems. Chapter 1 presents a new greedy insertion heuristic with a multi-stage filtering mechanism for energy-efficient single-machine scheduling. The authors wrote that in order to improve energy efficiency and maintain the stability of the power grid, time-of-use (TOU) electricity tariffs have been widely used around the world, which bring both opportunities and challenges to energy-efficient scheduling problems. Although methods based on discrete-time or continuous-time models have been suggested for addressing these problems, they are deficient in solution quality or time complexity, especially when dealing with large-size instances. For such problems, a new greedy insertion heuristic algorithm with a multi-stage filtering mechanism including coarse granularity and fine granularity filtering is developed in this paper. To show the effectiveness of the proposed algorithm, a real case study is provided, and detailed computational results are given. Chapter 2 is devoted to a stability approach to scheduling problems with uncertain parameters. The stability approach combines a stability analysis of the optimal schedules with respect to possible variations of the job processing times, a multi-stage decision framework, and the solution concept of a minimal dominant set of schedules, which optimally covers all possible scenarios (i.e., for any fixed scenario, this minimal dominant set contains at least one optimal schedule). In contrast to fuzzy, stochastic, and robust approaches, the aim of the stability approach is to construct a schedule which remains optimal for the most possible scenarios. If there exists a schedule dominating the other ones for all possible scenarios, then this schedule remains optimal for each scenario, which may be realized. This may be possible if the level of uncertainty is not high. Otherwise, a decision-maker must look ix for a schedule which provides optimal—or close to optimal—objective function values for the most possible scenarios among other schedules. To this end, the desired schedule must dominate a larger number of the schedules. This may be possible if the schedule has the largest optimality (stability) box. The authors address a single-machine scheduling problem with uncertain durations of the given jobs. The objective function is the minimization of the sum of the job completion times. The stability approach is applied to the considered uncertain scheduling problem using the relative perimeter of the optimality box as a stability measure of the optimal job permutation. The properties of the optimality box are investigated and used to develop algorithms for constructing job permutations that have the largest relative perimeters of the optimality box. Chapter 3 addresses a scheduling problem where jobs with given release times and due dates must be processed on a single machine. The primary criterion of minimizing the maximum lateness of the given jobs makes this problem strongly NP-hard. The author proposes a general algorithmic scheme to minimize the maximum lateness of the given jobs, with the secondary criterion of minimizing the maximum completion time of the given jobs. The problem of finding a Pareto optimal set of solutions with the above two criteria is also strongly NP-hard. The author states the properties of the dominance relation along with conditions when a Pareto optimal set of solutions can be found in polynomial time. The proven properties of the dominance relation and the proposed general algorithmic scheme provide a theoretical background for constructing an implicit enumeration algorithm that requires an exponential running time and a polynomial approximation algorithm. The latter allows for the generation of a Pareto sub-optimal frontier with a fair balance between the above two criteria. The next three chapters deal with flow shop and job shop scheduling problems as well as their hybrid (flexible) variants, often inspired by real-life applications. In Chapter 4, the maximization of the number of just-in-time jobs in a permutation flow shop scheduling problem is considered. A mixed integer linear programming model to represent the problem as well as solution approaches based on enumerative and constructive heuristics are proposed and computationally implemented. The ten constructive heuristics proposed produce good-quality results, especially for large-scale instances in reasonable time. The two best heuristics obtain near-optimal solutions, and they are better than adaptations of the classic NEH heuristic. Chapter 5 addresses a scheduling problem in an actual environment of the tortilla industry. A tortilla is a Mexican flat round bread made of maize or wheat often served with a filling or topping. It is the most consumed food product in Mexico, so efficient algorithms for their production are of great importance. Since the underlying hybrid flow-shop problem is NP-hard, the authors focus on suboptimal scheduling solutions. They concentrate on a complex multi-stage, multi-product, multi-machine, and batch production environment considering completion time and energy consumption optimization criteria. The proposed bi-objective algorithm is based on the non-dominated sorting genetic algorithm II (NSGA-II). To tune it, the authors apply a statistical analysis of multi-factorial variance. A branch-and-bound algorithm is used to evaluate the heuristic algorithm. To demonstrate the practical relevance of the results, the authors examined their solution on real data. Chapter 6 is devoted to the effectiveness in managing disturbances and disruptions in railway traffic networks, when they inevitably do occur. The authors propose a heuristic approach for solving the real-time train traffic re-scheduling problem. This problem is interpreted as a blocking job-shop scheduling problem, and a hybridization of the mixed graph and alternative graph is used for modeling the infrastructure and traffic dynamics on a mesoscopic level. A heuristic algorithm is x developed and applied to resolve the conflicts by re-timing, re-ordering, and locally re-routing the trains. A part of the Southern Swedish railway network from the center of Karlskrona to Malm ̈ o city is considered for an experimental performance assessment of the approach. A comparison with the corresponding mixed-integer program formulation, solved by the commercial state-of-the-art solver Gurobi, is also made to assess the optimality of the generated solutions. Chapter 7 deals with a generalization of the job shop problem. It is devoted to a formalization of the resource-constrained project scheduling problem (RCPSP) in terms of combinatorial optimization theory. The transformation of the original RCPSP into a combinatorial setting is based on interpreting each operation as an atomic entity that has a defined duration and has to reside on the continuous time axis, meeting additional restrictions. The simplest case of continuous-time scheduling assumes a one-to-one correspondence between the resources and operations and corresponds to a linear programming problem setting. However, real scheduling problems include many-to-one relations that lead to an additional combinatorial component in the formulation of the RCPSP due to the competition of the operations. The authors investigate how to apply several typical algorithms to solve the resulting combinatorial optimization problem: an enumerative algorithm including a branch-and-bound method, a gradient algorithm, or a random search technique. The next three chapters deal with complex manufacturing systems and supply chains, respectively. Chapter 8 considers a number of geographically separated markets, with different demand characteristics for different products that share a common component. This common component can either be manufactured locally in each of the markets or transported between the markets to fulfill the demand. However, final assemblies are localized to the respective markets. The decision-making challenge is whether to manufacture the common component centrally or locally. To formulate this problem, a newsvendor modeling-based approach is considered. The developed model is solved using a Frank–Wolfe linearization technique along with Benders’ decomposition method. The authors of Chapter 9 write that the current literature presents optimal control computational algorithms with regard to state, control, and conjunctive variable spaces. The authors of this chapter first analyze the advantages and limitations of different optimal control computational methods and algorithms which can be used for short-term scheduling. Second, they develop an optimal control computational algorithm that allows the optimal solution of short-term scheduling. Moreover, a qualitative and quantitative analysis of the scheduling problem arising in the manufacturing system is presented. Chapter 10 is devoted to a graph model of hierarchical supply chains. The goal is to measure the complexity of the links between different components of the chain (e.g., between the principal equipment manufacturer and its suppliers). The information entropy is used as a measure of knowledge about the complexity of shortages and pitfalls in relationship to the supply chain components under uncertainty. The concept of conditional entropy is introduced as a generalization of the conventional entropy. An entropy-based algorithm is developed, providing an efficient assessment of the supply chain complexity as a function of the supply chain size. Finally, Chapter 11 deals with an image processing work-flow scheduling problem on a multi-core digital signal processor cluster. It presents an experimental study of scheduling strategies including task labeling, prioritization, and resource selection. The authors apply the above strategies as executing the Ligo and Montage application. A joint analysis of three conflicting goals based on the performance degradation provides an effective guideline for choosing a better strategy. A case study is discussed. The experimental results demonstrate that a pessimistic scheduling approach works xi better than an optimistic one, and leads to the best optimization criteria trade-offs. The pessimistic heterogeneous earliest finish time (PHEFT) scheduling algorithm performs well in different scenarios with a variety of workloads and cluster configurations. The developed PHEFT strategy also has a lower time complexity in comparison with earlier versions, known as HEFT (heterogeneous earliest finish time first). The editors of this book would like to thank the authors for submitting their high-quality works, the reviewers for their timely constructive comments, and the editorial staff of the MDPI AG for their assistance in promptly managing the review process and for their continuous support in the preparation of this book whenever needed. We hope that the reader will find stimulating ideas for developing new approaches and algorithms for different types of scheduling problems. Due to the large interest in this subject, we plan to prepare a Volume 2 of the Special Issue ”Algorithms for Scheduling Problems”. The submission deadline (in autumn 2019) will be announced on the website of the journal Algorithms later in this year. Frank Werner, Larysa Burtseva, Yuri Sotskov Special Issue Editors xii algorithms Article A New Greedy Insertion Heuristic Algorithm with a Multi-Stage Filtering Mechanism for Energy-Efficient Single Machine Scheduling Problems Hongliang Zhang *, Youcai Fang, Ruilin Pan and Chuanming Ge School of Management Science and Engineering, Anhui University of Technology, Ma’anshan 243032, China; ahutfangyoucai@163.com (Y.F.); rlpan9@ahut.edu.cn (R.P.); 13083209689@163.com (C.G.) * Correspondence: zhanghongliang_17@126.com; Tel.: +86-555-231-5379 Received: 25 December 2017; Accepted: 6 February 2018; Published: 9 February 2018 Abstract: To improve energy efficiency and maintain the stability of the power grid, time-of-use (TOU) electricity tariffs have been widely used around the world, which bring both opportunities and challenges to the energy-efficient scheduling problems. Single machine scheduling problems under TOU electricity tariffs are of great significance both in theory and practice. Although methods based on discrete-time or continuous-time models have been put forward for addressing this problem, they are deficient in solution quality or time complexity, especially when dealing with large-size instances. To address large-scale problems more efficiently, a new greedy insertion heuristic algorithm with a multi-stage filtering mechanism including coarse granularity and fine granularity filtering is developed in this paper. Based on the concentration and diffusion strategy, the algorithm can quickly filter out many impossible positions in the coarse granularity filtering stage, and then, each job can find its optimal position in a relatively large space in the fine granularity filtering stage. To show the effectiveness and computational process of the proposed algorithm, a real case study is provided. Furthermore, two sets of contrast experiments are conducted, aiming to demonstrate the good application of the algorithm. The experiments indicate that the small-size instances can be solved within 0.02 s using our algorithm, and the accuracy is further improved. For the large-size instances, the computation speed of our algorithm is improved greatly compared with the classic greedy insertion heuristic algorithm. Keywords: energy-conscious single machine scheduling; time-of-use electricity tariffs; greedy insertion heuristic; coarse granularity and fine granularity filtering mechanism; concentration and diffusion strategy 1. Introduction Driven by the rapid development of global economy and civilization, there will be a consistent growth in energy consumption in the years ahead. According to a survey of the International Energy Agency (IEA), the world-wide demand for energy will increase by 37% by 2040 [ 1 ]. Non-renewable energy resources such as coal, oil, and gas are diminishing day-by-day, which is threatening the sustainable development of many countries. Meanwhile, greenhouse gas emissions generated from inappropriate usage of fossil fuels have taken a heavy toll on the global climate as well as the atmospheric environment [ 2 ]. Therefore, how to save energy and then improve the environment quality has become a pressing matter of the moment. As the backbone of many countries, the industrial sector consumes about half of the world’s total energy and emits the most greenhouse gases [ 3 , 4 ]. Hence, energy saving in the industry sector has priority in promoting sustainable economic development. As we all know, most of the energy is converted into the form of electricity that numerous industrial sectors use as their main energy [ 5 , 6 ]. Algorithms 2018 , 11 , 18; doi:10.3390/a11020018 www.mdpi.com/journal/algorithms 1 Algorithms 2018 , 11 , 18 Nevertheless, electricity is hard to store effectively, and thus, must be produced and delivered to its customers at once [ 7 ]. In addition, the electricity demand is always uneven, which leads to an increase in generating cost owing to the utilization of backup power facilities during peak hours [ 8 ]. In order to maintain balance between electricity supply and demand, electricity providers usually implement demand-side management programs [ 9 ], which are an essential component of realizing the goals of a smart grid and rationalizing the allocation of power resources [10]. One of the demand-side management programs is time-of-use (TOU) electricity tariffs, which have been widely used around the world. Usually, a common TOU tariff scheme can be divided into three types of periods: off-peak, mid-peak, and on-peak periods. The basic nature of the TOU scheme is that the retail prices set by electricity providers vary hourly throughout the day according to the amount of electricity demands; when there is an increase in demand, the electricity cost goes up correspondingly, and vice versa [ 11 ]. The practice of TOU electricity tariffs not only provides significant opportunities for the industrial sector to enhance energy efficiency, but also avoids power rationing during on-peak periods, and improves the stability of the power grid [7]. Using low-energy equipment and improving the efficiency of production management are two important methods to save energy [ 12 ]. As a widely used production management method, scheduling can effectively control energy consumption [ 13 ], which brings a lower cost of operation. However, the studies about energy-saving scheduling are still limited [ 14 ]. Over recent years, energy-efficient scheduling problems have gradually aroused the attention of scholars. To achieve the goal of energy saving during the production process, some researchers have investigated the problems with various energy-efficient mechanisms to reduce electricity costs by minimizing overall energy consumption, such as speed-scaling [ 15 – 18 ] and power-down [ 19 – 21 ], while others have studied the problems from the perspective of TOU electricity tariffs, which has become a frontier issue in this field. As for researching scheduling problems under TOU electricity tariffs, there has been a growing interest recently. Considering both production and energy efficiency, Luo et al. [ 22 ] proposed an ant colony optimization meta-heuristic algorithm for hybrid flow shop scheduling problems under TOU electricity tariffs. Zhang et al. [ 12 ] studied a flow shop scheduling problem with production throughput constraints to minimize electricity cost and the carbon footprint simultaneously. Sharma et al. [ 23 ] presented a so called “econological scheduling” model for a speed-scaling multi-machine scheduling problem aimed to minimize the electricity cost and environmental impact. Moon et al. [ 24 ] examined the unrelated parallel machine scheduling problem under TOU electricity tariffs to optimize the weighted sum of makespan and electricity cost. Ding et al. [ 7 ] and Che et al. [ 25 ] addressed a similar parallel machine scheduling problem under TOU electricity tariffs to minimize the total electricity cost. The former developed a time-interval-based mixed-integer linear programming (MILP) model and a column generation heuristic algorithm. The latter improved the former model by providing a linear programming relaxation and a two-stage heuristic algorithm. Single machine scheduling problems are of great significance both in theory and practice. On one hand, there are many single machine scheduling problems in the real industrial environment. For example, a Computer Numerical Control (CNC for short) planer horizontal milling and boring machine can be regarded as a single machine. On the other hand, the research results and methods of single machine scheduling problems can provide reference for other scheduling problems, such as flow shop, job shop, and parallel machine scheduling problems. For single machine scheduling problems under TOU electricity tariffs, Wang et al. [ 26 ] investigated a single-machine batch scheduling problem to minimize the makespan and the total energy costs simultaneously. Considering the TOU electricity tariffs and the power-down mechanism, Shrouf et al. [ 27 ] proposed a model that enables the operations manager to determine the “turning on” time, “turning off” time, and idle time at machine level, leading to a significant reduction in electricity cost by avoiding on-peak periods. Gong et al. [ 28 ] developed a mixed integer linear programming model and a genetic algorithm for the same problem, reducing electricity cost and greenhouse gas emissions effectively during peak time periods. Without considering a power-down mechanism, Fang et al. [ 29 ] studied the single machine scheduling problem under TOU 2 Algorithms 2018 , 11 , 18 electricity tariffs systematically to minimize the total electricity costs. They divided the problem into the two cases of uniform-speed and speed-scalable, in which a preemptive version and a non-preemptive version were investigated respectively. For the uniform-speed case with non-preemptive assumption (Problem U-pyr), they demonstrated that the problem is strongly non-deterministic polynomial-time hard (NP-Hard). Note that the Problem U-pyr is the same as our problem. Based on Fang et al. [ 29 ], Che et al. [ 9 ] investigated a continuous-time MILP model for Problem U-pyr and developed a greedy insertion heuristic algorithm(GIH) that is the most classic method for this problem until now, according to our best knowledge. In their algorithm, the jobs are inserted into available periods with lower electricity prices in sequence, and the jobs with higher power consumption rates are mostly assigned to periods with lower electricity prices by traversing all non-full “forward blocks” and “backward blocks”. However, Fang et al. [ 29 ] did not establish a complete mathematical model for the single machine scheduling problem (Problem U-pyr) under TOU electricity tariffs, and their algorithm is only feasible in the condition that all the jobs have the same workload and the TOU tariffs follow a so-called pyramidal structure. Regrettably, the TOU electricity tariffs rarely follow a complete pyramidal structure in most provinces in China. To perfect the theory of Fang et al. [ 29 ], Che et al. [ 9 ] developed a new model and algorithm, but their algorithm requires that all the jobs must traverse all non-full “forward blocks” and “backward blocks”, causing a strong high-time complexity. Especially when the processing times of the jobs are relatively short, it usually takes several jobs to fill one period and generates uneven remaining idle times, which leads to an increase in the number of forward and backward blocks required to be calculated. In addition, the generation process of “forward (backward) block” is limited to the job movements that do not incur additional electricity cost, which may cause some jobs to miss the optimum positions. Thus, by focusing on the jobs with short processing times, this paper proposes a more efficient greedy insertion algorithm with a multi-stage filtering mechanism (GIH-F) based on the continuous-time MILP model to address these issues. The proposed algorithm mainly consists of two stages: coarse granularity filtering and fine granularity filtering. In the coarse granularity filtering stage, all the possible positions are first divided into three levels (i.e., three layers) according to the price of electricity, corresponding to high-price, medium-price, and low-price layers. Then, all the jobs are sorted in non-increasing order of their electricity consumption rates and assigned to the layer with a lower price successively. Based on the concentration and diffusion strategy, once the layer to which a job belongs is determined, the hunting zone of possible positions of a job is concentrated in a certain layer. To find the optimal position, the job to be inserted can search for its position in a relatively large space in the selected layer. Then, considering processing times, electricity consumption rates of the jobs and electricity prices, the electricity cost with respect to each possible position can be compared using characteristic polynomials. Based on these, several judgment conditions can be set up in for a fine granularity filtering stage to determine the position of each job to be inserted. To summarize, the proposed algorithm can filter out impossible layers, and then judge each condition that belongs to the selected layer successively. Once the condition is satisfied, the job is just inserted into the corresponding position. Through coarse granularity filtering and fine granularity filtering, our algorithm does not have to traverse all possible positions, which leads to a great reduction in the time complexity. A real case study and two sets of randomly generated instances are used to test the performance of the proposed algorithm in this paper. The rest of this paper is organized as follows. Section 2 presents a description of the single machine scheduling problem under TOU electricity tariffs. In Section 3, an efficient GIH-F is developed. Next, a real case study and two sets of experimental tests are provided in Section 4. Finally, the conclusions and prospects are presented in Section 5. 3 Algorithms 2018 , 11 , 18 2. MILP Formulation for the Problem This paper studies an energy-efficient single machine scheduling problem under TOU electricity tariffs. The problem can also be called a single machine scheduling problem with electricity costs (SMSEC). Consider a set of jobs N = {1, 2, . . . , n } that need to be processed on a single machine with the objective of minimizing the electricity cost. It is assumed that all the jobs must be processed at a uniform speed. Each job i ∈ N has its unique processing time t i and power consumption per hour p i A machine can process, at most, one job at a time, and when it is processing a job, no preemption is allowed. Each job and the machine are available for processing at time instant 0. Machine breakdown and preventive maintenance are not considered in this paper. The machine is mainly powered by electricity. The electricity price follows a TOU pricing scheme represented by a set of time periods M = {1, 2, . . . , m }, with each period k ∈ M , having an electricity price c k and a starting time b k . The interval of period k is represented by [ b k , b k +1 ], k ∈ M , and b 1 = 0 is always established. It is assumed that the C max is the given makespan and b m +1 ≥ C max . This means that a feasible solution always exists. The main work of this problem is to assign a set of jobs to periods with different electricity prices in the time horizon [0, b m +1 ] to minimize total electricity cost, and the main task is to determine to which period(s) a job is assigned and how long a job is processed in each period. Hence, two decision variables are given as follows. Note that the starting time of each job can be determined by the decision variables (i.e., x i , k and y i , k ). x i , k : assigned processing time of job i in period k , i ∈ N , k ∈ M ; y i , k = { 1, if job i or part of job i is processed in period k 0, othertwise , i ∈ N , k ∈ M In addition, a job is called processed within a period if both its starting time and completion time are within the same period. Otherwise, it is called processed across periods [ 9 ]. Let d k and X k , k ∈ M , represent the duration of period k and the total already assigned processing times in period k , respectively. The difference between d k and X k is defined as the remaining idle time of period k which is represented by I k , k ∈ M . If I k = 0, the period k is called full The MILP model for the single machine scheduling problem can be presented as follows: Min TEC = n ∑ i = 1 m ∑ k = 1 p i x i , k c i (1) s.t. m ∑ k = 1 x i , k = t i , i ∈ N ; (2) n ∑ i = 1 x i , k ≤ b k + 1 − b k , k ∈ M ; (3) x i , k ≤ t i y i , k , i ∈ N , k ∈ M ; (4) l − 1 ∑ k = j + 1 y i , k ≥ ( l − j − 1 )( y i , l + y i , j − 1 ) , i ∈ N , 3 ≤ l ≤ m , 1 ≤ j ≤ l − 2; (5) x i , k ≥ ( y i , k − 1 + y i , k + 1 − 1 )( b k + 1 − b k ) , i ∈ N , 2 ≤ k ≤ m − 1; (6) y i , k + y i , k + 1 + y j , k + y j , k + 1 ≤ 3, i ∈ N , j ∈ N , 1 ≤ k ≤ m − 1, i = j (7) Equation (1), the objective is to minimize the total electricity cost ( TEC ). Constraints (2)–(4) are associated with the processing time assigned to periods. Constraints (5) and (6) are used to guarantee the non-preemptive assumption. Specifically, constraint (5) guarantees that if a job is processed across 4 Algorithms 2018 , 11 , 18 more than one period, it must occupy several continuous periods. Constraint (6) ensures that if a job is processed across three periods, the middle period must be fully occupied by the job. Constraint (7) ensures that, at most, one job is processed across any pair of adjacent periods. An illustration to the MILP model is given by an example of a 2-job single machine scheduling problem under a 3-period TOU scheme, as shown in Figure 1. Note that more detailed explanations of the formulas can be seen in Che et al. [9]. Figure 1. An example of the mixed-integer linear programming (MILP) model. 3. A Greedy Insertion Heuristic Algorithm with Multi-Stage Filtering Mechanism 3.1. The Characteristics of TOU Electricity Tariffs In China, the TOU electricity tariffs can be mainly divided into two types according to the relative position of the off-peak period: (1) the off-peak period lies between an on-peak period and a mid-peak period; (2) the off-peak period lies between two mid-peak periods. In addition, there is only one off-peak period in a day, and the duration of the off-peak period is longest. This paper will investigate the single-machine scheduling problem under the first type of TOU electricity tariffs, which are being implemented in many places in China, such as Shanxi, Guangxi, and Jiangxi Provinces and so on. Next, let A , B, and Γ represent the off-peak, mid-peak, and on-peak periods, respectively. That is, A , B , Γ ⊆ M , A ∪ B ∪ Γ = M , A ∩ B = ∅ , A ∩ Γ = ∅ , and B ∩ Γ = ∅ . An illustration is given in Figure 2. Accordingly, M = {1, 2, . . . , 10}, A = {5, 10}, B = {1, 3, 6, 8}, and Γ = {2, 4, 7, 9}. Figure 2. An illustration of the first type of time-of-use (TOU) electricity tariffs. 3.2. Multi-Stage Filtering Mechanism Design The proposed algorithm is built on the concentration and diffusion strategy. Firstly, all the possible positions are divided into three layers based on the price of electricity. Specifically, in layer 1, all the jobs are processed within an off-peak period or processed across a pair of periods consisting of an off-peak period and a mid-peak perio