- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Recently Accepted Articles ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents

The Scientific World Journal

Volume 2013 (2013), Article ID 652061, 6 pages

http://dx.doi.org/10.1155/2013/652061

## Full Glowworm Swarm Optimization Algorithm for Whole-Set Orders Scheduling in Single Machine

^{1}Computer Science and Technology School, Taiyuan University of Science & Technology, Taiyuan 030024, China^{2}Economics and Management School, Taiyuan University of Science & Technology, Taiyuan 030024, China

Received 7 July 2013; Accepted 1 September 2013

Academic Editors: Q. Cheng and J. Yang

Copyright © 2013 Zhang Yu and Xiaomei Yang. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

By analyzing the characteristics of whole-set orders problem and combining the theory of glowworm swarm optimization, a new glowworm swarm optimization algorithm for scheduling is proposed. A new hybrid-encoding schema combining with two-dimensional encoding and random-key encoding is given. In order to enhance the capability of optimal searching and speed up the convergence rate, the dynamical changed step strategy is integrated into this algorithm. Furthermore, experimental results prove its feasibility and efficiency.

#### 1. Introduction

Whole-set orders problem refers to customers’ orders including multiple workpieces with different processing time and completion deadlines; since these workpieces are matching together as one, the delivery delay of the whole order will account for one delayed piece; customers are meeting a matching problem. In the customized production environment, whole-set orders problem can better reflect the corporations’ service level and customers’ satisfaction. It has become an important branch in the field of production scheduling and has broadened practical backgrounds.

At present, the algorithms used in production scheduling can be divided into accurate algorithms and approximation algorithms. Accurate algorithms (mathematical programming, branch and bound algorithm, Lagrangian relaxation, etc.) can get accurate solutions of problems, but big amount of calculation and time-consumption limit their applications in solving small-scale problems. Approximation algorithms (genetic algorithm, particle swarm optimization, ant colony algorithm, etc.) for their simple operation, parallel processing, have been widely applied in production scheduling and large-scale problems.

Glowworm swarm optimization (GSO) is proposed by Krishnanand and Ghose as one of the newest nature inspired heuristics [1], with it’s simple model, less adjustable parameters, and fast convergence rate, which can be usually viewed in pattern recognition, routing, combinatorial optimization, and so forth [2–6]. In the optimizations of production scheduling, Kazem Sayadi et al. have successfully gotten the better solutions of permutation flow-shop scheduling problem [7]. Wu et al. have proved its feasibility and efficiency in the optimization of cross-dock scheduling [8]. Based on the discrete characteristic of whole-set orders and GSO’s good performance in discretization, this paper presents an improved GSO for whole-set orders scheduling problem.

#### 2. The Description of Weighted Whole-Set Orders Problem

##### 2.1. The Model of Whole-Set Orders Problem in Single Machine

Due to the definition of whole-set orders problem, when each order includes only one workpiece, it becomes a problem of weighed number of delay jobs, so whole-set orders problem is a kind of NP-hard problem.

Maximizing the number of weighted whole-set orders is our objective function:

We suppose the following.(1)There are independent workpieces that need to be processed on one machine and belong to orders, , () includes jobs, , the weighted of is .

Consider (1)The processing time of workpiece (, ) is (>0), and deadline is .(2)All the workpieces are got ready, which means arriving time .(3)One piece can only be processed once, and single machine should process one job each time, stands for if job was processed at the position of , then , else (4)Once processed the workpiece should not be terminated.(5)The complete time of workpiece is , and it defines for whole-set coefficient as

##### 2.2. Characteristics of Whole-Set Orders Problem

The characteristics of whole orders problem include its complexity, restriction, and discreteness.

*Complexity*. For a machining sort with workpieces, there may be factorial solutions. For example, if we get 7 customers, and 20 workpieces to machining, the total number of the solutions will be . This reflects that with the enlargement of the scheduling scale, the space of solutions will become lager, and the computation will increase exponentially. This needs to keep the diversity of metapopulation in solving whole-set orders problem, to shorten the solving time, to increase the probability of acquiring optimal solution and, to realize global optimization.

*Restraintion*. As the optimal solution must meet the machine’s or processing sequences’ restraint conditions in whole-set orders problem, part of the sorts may become unfeasible scheduling solutions for not meeting the restraints. We should note metapopulation individual’s validity in searching process when using glowworm swarm optimization and adopt revise strategies to unfeasible individual coming from location update to ensure the feasibility of the descendant.

*Discreteness*. In classical GSO, the mobile step is usually a fixed numerical value. And this has good effect on solving continuous optimizing problems. But every metapopulation individual represents an independent panel point in whole-set orders problem, and unreasonable setting of the step may lead to mismatching situations in searching process. So in order to ensure the convergence effectiveness, we should do some dynamic handlings on step.

#### 3. Glowworm Swarm Optimization for Whole-Set Orders Scheduling

##### 3.1. Description of Classical Glowworm Swarm Optimization

Most kinds of glowworms can locate its position and exchange information by sending out rhythmed short beam. The idea of GSO is glowworm individual finding flaring neighbors in its searching scope. Move from initial position to a better one and at last assemble into one or more extreme value point.

In GSO algorithm, Glowworm individuals’ attraction is only related to its brightness. Attraction of individual is proportional to brightness and inversely proportional to the distance between the two individuals. The position of individuals account for objective function value. Define dynamic decision domain as individual searching scope. When updating position, individuals move by step.

Detailed procedures of classical GSO are as follows.Initialize parameters. individuals are randomly placed in feasible region, accounts for fluorescein value, for dynamic decision domain, for step, for threshold in domain, for fluorescein elimination coefficient, for fluorescein update coefficient, for update coefficient of domain, for maximal searching radius, and for iteration number. The objective function value is transformed to as in which accounts for the position of individual at time.In each , select higher fluorescein value individuals forming a set of neighborhood . Hence, The probability of individual may move toward as in which is chosen by .The position of individual can be updated as The dynamic decision domain can be updated as

##### 3.2. Glowworm Swarm Optimization for whole-set orders Scheduling (GSOS)

By analyzing the characteristics of whole-set orders problem, this paper will solve it by using glowworm swarm optimization. The key of this algorithm includes encoding and decoding schema, individuals standing without neighbors, variable step strategy, and the distance of individuals.

###### 3.2.1. Encoding and Decoding Schema

A sound encoding method can lower solving difficulty caused by constraint conditions and raise efficiency. The common encoding methods in approximation algorithms at present include machine-based coding and process-based coding. Among these methods, machine-based coding can reflect limitations of the processing machines, while it may easily result in deadlock scheduling; Jobs’ relation-based coding uses binary coding method which may easily cause redundant scheduling results. Process-based coding assigns the same symbol to every process of the same job, but the result producing through this method is not an initiative scheduling.

In view of this, a hybrid encoding schema combining with 2-dimensional coding and random-key coding is given. In whole-set orders problem, one individual’s location accounts for one feasible code, and the movement of individual means the exchange of codes.

In the coding, the method in this paper combines natural numbers and randomly real numbers between 0 and 1. Natural numbers 1,2,3,… stand for piece, and stands for positive real numbers between 0 and 1 without repetition generated randomly. As is shown in Table 1.

This method increases bits of valid number. It could avoid some repetitive sorts that may lead to invalid codes. In decoding, relative size of number accounts for the process position of workpiece in the sorts, ascending sort column (), and the corresponding sort of natural numbers is the process sequence.

In example 1, there are 6 workpieces and their 2-dimensional codes like Table 2.

There are 6 workpieces and their 2-dimensional codes like Table 2.

Ascending sort the real numbers we get 0.01-0.23-0.44-0.48-0.76-0.79; the code of workpiece number 1 is 0.23, and 0.23 is the second minimum in the sort, so workpiece 1 will be processed at second position. Successively analyzing, we can get the process sequence: 4-1-5-2-3-6.

Furthermore, all the feasible codes and process sequences are one-to-one correspondence. Because of the difference of each real number, their ascending sort would be uniqueness.

###### 3.2.2. Dispose of Individual without Neighbors

According to classical GSO, an individual glowworm performs random move towards a neighbor better than itself through probability in accordance with the neighborhoods’ fluorescent brightness. If there are too many candidate solution or the neighborhoods distribute unevenly, there may be a small probability of the event that some individuals do not have neighbors so that they would like to be stagnant, which may results in the slowing down of the rate of convergence and the likely access into the local optimization. To avoid the above disadvantages, every individual must be ensured to be dynamic in the optimizing process. Thus, in this algorithm, if an individual has no neighbor, it should move one step at random in the optimizing process of its own generation.

###### 3.2.3. Strategy of Improved Moving Step

The step size of an individual in GSO is ordinarily fixed. In solving the whole-set orders problem or similar special problems, both bigger and smaller steps will cause adverse effects in that the bigger steps may result in missing the optimal solution, slowing down of the rate of convergence, and the easy occurrence of shaking, while the smaller steps may result in an early trapping in the local optimization by which the optimal solution cannot be obtained. Therefore, changing the step size dynamically can improve the solving efficiency of the algorithm.

At the beginning of the algorithm, the step size should be kept big enough to avoid trapping into the local optimization. With the increasing of iteration, the step size should be shortened gradually to ensure an optimal solution at the later stage of the algorithm. So the formula of moving step is designed as in which accounts for minimum step and can be initialized, for maximum iteration, for current iteration, and for a integer between . Let ; the curve of is shown as Figure 1.

###### 3.2.4. Formula of Distance between Individuals

In whole-set orders problem, bit of codes is related to the numbers of workpiece and usually may be multidimensional array, and the key of it is how to calculate distance between individuals. Here, we suppose there are workpieces to be processed, and finally get two feasible sequences after decoding as follows: the distance from the symmetry of formula is obtained as in which . Thus, is usually fixed, and we make it to be 4 in the experiments.

For example, there are two process sequences after decoding (6-5-4-3-2-1) and (1-2-4-3-6-5). By , the distance needed is obtained.

The pseudo codes of GSOS as shown in Pseudocode 1.

#### 4. Simulations and Results

To verify the feasibility of GSOS, we have tested two simulations of different scales.

*Case 1. *According to [9], there are 41 workpieces of 10 orders, detailed information are shown in Tables 3 and 4; target of optimization is maximizing the number of weighted whole-set orders.

In Table 4, numbers in row-1 account for deadlines, in line-1 account for orders and in brackets for processing time. According to the above information, we contrast the results between GSOS and GA. Simulation environment: Microsoft Windows-XP system, AMD-A6-3400M CPU, 2G-RAM, and the codes are programmed by MATLAB2012a, the population size is fixed , maximum iteration , and the program run 10 times independently.

The efficiency of results is shown in Table 5. From Table 5, we can find that average solving time of GSOS is shortened by about 34.74 seconds compared with GA, which increases by about 29.3%.

The results of optimization numbers are shown in Table 6. Form Table 6, we realize that GSOS performs better than GA in terms of average value, minimum value, and variance.

*Case 2. *To insure the performance of GSOS, Example 2 is generated randomly, information is in detail in Tables 7 and 8.

The results of optimization numbers are shown in Table 9, and the efficiency of results are shown in Table 10.

From Tables 9 and 10, we can find that the proposed algorithm is better than GA.

The searching curves of GSOS and GA are shown in Figures 2 and 3, there solid lines account for GSOS while dotted lines for GA.

According to the Figures 2 and 3, GSOS and GA both have a high rate of convergence, but GSOS performs better than GA in terms of average value, minimum value, and variance, which proved its high-accuracy of solutions, the solving time of GSOS decreases by about 29% compared with GA which reflects its efficiency. In conclusion, GSOS is more suitable for solving whole-set orders problem.

#### 5. Conclusions

An improved glowworm swarm optimization for scheduling (GSOS) is proposed in this paper; we have verified its high rate of convergence, efficiency, accuracy, and easy operation through simulations on different scales of whole-set orders problem. To test its performance on parallel machines and bigger scales that will be our research direction later on.

#### Acknowledgments

This work is partially supported by the National Natural Science Foundation of China (Grant no. 70971080) and the doctoral fund of Taiyuan University of Science & Technology (Grant no. 20102028). The authors also gratefully acknowledge the helpful comments and suggestions of the reviewers, which have improved the presentation.

#### References

- K. N. Krishnanand and D. Ghose, “Detection of multiple source locations using a glowworm metaphor with applications to collective robotics,” in
*Proceedings of the IEEE Swarm Intelligence Symposium*, pp. 84–91, IEEE Press, June 2005. View at Publisher · View at Google Scholar · View at Scopus - K. Deep and J. C. Bansal, “Mean particle swarm optimization for function optimization,”
*International Journal of Computational Intelligence Studies*, vol. 1, no. 1, pp. 72–92, 2009. - K. N. Krishnanand and D. Ghose, “Glowworm swarm optimization for simultaneous capture of multiple local optima of multimodal functions,”
*Swarm Intelligence*, vol. 3, no. 2, pp. 87–124, 2009. View at Publisher · View at Google Scholar · View at Scopus - S. Lukasik and S. Zak, “Firefly algorithm for continuous constrained optimization tasks,” in
*Computational Collective Intelligence. Semantic Web, Social Networks and Multiagent Systems*, vol. 5796 of*Lecture Notes in Computer Science*, pp. 97–106, 2009. - Y.-M. Li, Y. Q. Zhou, and X.-G. Yao, “Improved glowworm s-warm optimization based on the behavior of follow,”
*Computer Science*, vol. 38, no. 3, pp. 248–251, 2011. - C.-P. Liu and C.-M. Ye, “Solving permutation flow-shop scheduling problem by firefly algorithm,”
*Industrial Engineering and Management*, vol. 17, no. 3, pp. 56–59, 2012. - M. Kazem Sayadi, R. Ramezanian, and N. Ghaffari-Nasab, “A discrete firefly meta-heuristic with local search for makespan minimization in permutation flow shop scheduling problems,”
*International Journal of Industrial Engineering Computations*, vol. 1, no. 1, pp. 1–10, 2010. - B. Wu, C.-H. Qian, and W.-H. Ni, “Glowworm swarm optimization for cross dock scheduling problem,”
*Computer Engineering and Applications*, vol. 30, no. 1, pp. 155–161, 2013. - S.-Y. Zhou and R.-Q. Chen, “Genetic algorithm for maximizing the weig-hted number of whole-set orders,”
*Systems Engineering*, vol. 23, no. 5, pp. 22–24, 2005.