Bioinspired Computation and Its Applications in Operation Management
View this Special IssueResearch Article  Open Access
Zhang Yu, Xiaomei Yang, "Full Glowworm Swarm Optimization Algorithm for WholeSet Orders Scheduling in Single Machine", The Scientific World Journal, vol. 2013, Article ID 652061, 6 pages, 2013. https://doi.org/10.1155/2013/652061
Full Glowworm Swarm Optimization Algorithm for WholeSet Orders Scheduling in Single Machine
Abstract
By analyzing the characteristics of wholeset orders problem and combining the theory of glowworm swarm optimization, a new glowworm swarm optimization algorithm for scheduling is proposed. A new hybridencoding schema combining with twodimensional encoding and randomkey 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
Wholeset 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, wholeset 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 timeconsumption limit their applications in solving smallscale 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 largescale 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 flowshop scheduling problem [7]. Wu et al. have proved its feasibility and efficiency in the optimization of crossdock scheduling [8]. Based on the discrete characteristic of wholeset orders and GSO’s good performance in discretization, this paper presents an improved GSO for wholeset orders scheduling problem.
2. The Description of Weighted WholeSet Orders Problem
2.1. The Model of WholeSet Orders Problem in Single Machine
Due to the definition of wholeset orders problem, when each order includes only one workpiece, it becomes a problem of weighed number of delay jobs, so wholeset orders problem is a kind of NPhard problem.
Maximizing the number of weighted wholeset 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 wholeset coefficient as
2.2. Characteristics of WholeSet 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 wholeset 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 wholeset 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 wholeset 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 WholeSet 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 wholeset orders Scheduling (GSOS)
By analyzing the characteristics of wholeset 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 machinebased coding and processbased coding. Among these methods, machinebased coding can reflect limitations of the processing machines, while it may easily result in deadlock scheduling; Jobs’ relationbased coding uses binary coding method which may easily cause redundant scheduling results. Processbased 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 2dimensional coding and randomkey coding is given. In wholeset 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 2dimensional codes like Table 2.

There are 6 workpieces and their 2dimensional codes like Table 2.
Ascending sort the real numbers we get 0.010.230.440.480.760.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: 415236.
Furthermore, all the feasible codes and process sequences are onetoone 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 wholeset 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 wholeset 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 (654321) and (124365). 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 wholeset orders.
In Table 4, numbers in row1 account for deadlines, in line1 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 WindowsXP system, AMDA63400M CPU, 2GRAM, 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 highaccuracy 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 wholeset orders problem.

(a)  
 
(b)  



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 wholeset 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 Site  Google Scholar
 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. View at: Google Scholar
 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 Site  Google Scholar
 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. View at: Google Scholar
 Y.M. Li, Y. Q. Zhou, and X.G. Yao, “Improved glowworm swarm optimization based on the behavior of follow,” Computer Science, vol. 38, no. 3, pp. 248–251, 2011. View at: Google Scholar
 C.P. Liu and C.M. Ye, “Solving permutation flowshop scheduling problem by firefly algorithm,” Industrial Engineering and Management, vol. 17, no. 3, pp. 56–59, 2012. View at: Google Scholar
 M. Kazem Sayadi, R. Ramezanian, and N. GhaffariNasab, “A discrete firefly metaheuristic 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. View at: Google Scholar
 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. View at: Google Scholar
 S.Y. Zhou and R.Q. Chen, “Genetic algorithm for maximizing the weighted number of wholeset orders,” Systems Engineering, vol. 23, no. 5, pp. 22–24, 2005. View at: Google Scholar
Copyright
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.