Ant Colony Algorithm for the Weighted Item Layout Optimization ... - arXiv

4 downloads 0 Views 355KB Size Report
2Institute of Systems Engineering, Huazhong University of Science and Technology, ... and Mathematics, Manchester Metropolitan University, United Kingdom.
Ant Colony Algorithm for the Weighted Item Layout Optimization Problem Yi-Chun Xu1, Fang-Min Dong1, Yong Liu1, Ren-Bin Xiao2, Martyn Amos3,* 1

Institute of Intelligent Vision and Image Information, China Three Gorges University, China. 2

3

Institute of Systems Engineering, Huazhong University of Science and Technology, China.

Department of Computing and Mathematics, Manchester Metropolitan University, United Kingdom. *

Corresponding author. Email: [email protected].

Abstract—This paper discusses the problem of placing weighted items in a circular container in two-dimensional space. This problem is of great practical significance in various mechanical engineering domains, such as the design of communication satellites. Two constructive heuristics are proposed, one for packing circular items and the other for packing rectangular items. These work by first optimizing object placement order, and then optimizing object positioning. Based on these heuristics, an ant colony optimization (ACO) algorithm is described to search first for optimal positioning order, and then for the optimal layout. We describe the results of numerical experiments, in which we test two versions of our ACO algorithm alongside local search methods previously described in the literature. Our results show that the constructive heuristic-based ACO performs better than existing methods on larger problem instances.

Keywords - Layout optimization problem; Heuristic; Ant colony optimization;

I.

INTRODUCTION

Cutting and Packing (C&P) problems are optimization problems with practical significance to manufacturing industries (e.g. when cutting glass, wood, and leather) or transportation (Dyckhoff, 1990). Layout optimization problems, such as the placement of cells in VLSI design (Tang and Yao, 2007) or the layout of articles in a newspaper (Gonzalez et al., 2002), are related to C&P problems. In this domain, small items must be placed in a “container” without overlap, according to some certain objectives. In general, these optimization problems are NP-hard (Dyckhoff, 1990). When constraints are attached to them, they usually become even more complex.

1

Existing approaches for solving C&P problems include local search heuristics and constructive heuristics. Local search heuristics (e.g., genetic algorithms (Tang and Yao, 2007), simulated annealing (Gonzalez et. al, 2002; Cagan et al., 1998), and gradient descent method (Wang et al., 2002)) search the neighborhood of a given starting solution and improve it continuously, until a near-optimal solution is found. Constructive heuristics place the items one-by-one in a certain sequence (order); when the final item is placed, a good solution is thus constructed (Dowsland et. al, 2002; Wu et al, 2002). Several papers have successfully combined these two approaches; they first use a constructive heuristic to place items in a given sequence, and then apply a local search to improve the layout (Harwig, 2003; Sokea & Bing, 2006). In this paper, we study the problem of packing weighted items in a circular container; the so-called Weighted Item Layout problem (WIL). The WIL was first proposed in (Teng et al., 1994); as described, items may not overlap, and the whole system must be kept balanced in terms of its distribution of mass. One significant real-world application of WIL may be found in the design of communication satellites (Teng et al, 2001; Zhang et al., 2008), where balancing the distribution of mass is critical to the stability of a large rotating cylinder. In order to reduce complexity, the problems we consider here are limited to twodimensional space. Two variants of the problem are considered here; the first places weighted circles (Fig1-a), and the second places weighted rectangles (Fig1-b). We name these variants the Weighted-Circle Layout problem (WCL) and WeightedRectangle Layout problem (WRL) respectively. Several approaches to the WIL have already been proposed, and most of these are local search heuristics (Teng et al., 1994; Teng et al., 2001; Zhang et al., 2008; Xiao et al.,2007; Huang & Chen, 2006; Xu et al., 2007a). The main strategy of these local search heuristics is to first randomly place objects in the plane, and then gradually move them to new positions in order to decrease overlap and imbalance of mass within the system. When the items are circular, the overlap between them can be modeled as potential energy, and thus items may be moved according to the virtual “force” required to decrease energy (Wang et al., 2002). Local search heuristics show reasonable performance for the WCL (Xiao, et al., 2007; Huang & Chen, 2006), but when the same heuristics are applied to the WRL (or more complex problems in three-dimensional space), their performance quickly suffers (Xu et al., 2007). The main reason for this degradation is that the notion of a “good” layout is related not only to the positions of rectangles, but also to their orientations (which are not considered by local methods). We therefore focus on constructive heuristics for both the WCL and WRL. For C&P problems, the most important components of a constructive heuristic are the positioning rules, i.e., how and where to place each item. By the positioning rules developed in (Xu et al., 2007; Xu & Xiao, 2008; Xu et al., 2010), we may place the weighted items one-by-one in a certain order, and then a good layout is generated. This method was named the Order-based

2

Positioning Technique (OPT). However, different orders will yield layouts of differing quality quality; the key problem is how to find the best order to improve the quality of a layout. In the present paper, we develop ant colony optimization (ACO) algorithms to search for the optimal positioning order. ACO is a meta-heuristic for combinatorial optimization problems, and has gained increasing use in the last decade. The first version of the ACO algorithm, named AS (ant system), was proposed by Dorigo as a solution to the Traveling Salesman Problem (TSP) (Dorigo, 1992; Dorigo et al., 1996; Blum & Dorigo, 2004; Dorigo & Stützle, 2004). The authors based their algorithm on the observation that real ant colonies can quickly find a shortest path from their nest to a given food source, using chemical signalling based on pheromones. In the AS, Dorigo designed a colony of artificial ants, where each ant can build solutions by contributing to an artificial pheromone trail. The trail can also be externally reinforced according to the quality of the solution it represents. This mechanism forms a positive feedback loop, driving the system towards optimality. Since the invention of the AS, many improvements have been proposed to the original algorithm, and ACO has now been applied to many optimization problems (Dorigo & Stützle, 2004; Stützle & Hoos, 1997; Juang & Hsu, 2009) . Some versions of ACO have already been applied to C&P problems. The first such application was to the one-dimensional binpacking problem (1-BPP) (Levin & Ducatelle, 2004). The authors used ACO to learn which items are likely to be grouped together by their length. They reported that their ACO method outperformed other meta-heuristics such as genetic algorithms. )In (Brugger et al. 2004) the authors also reported a version of ACO for the 1-BPP, but they related the length of item to the space left in the bin. On the benchmarks, their ACO algorithm gave better results than (Levin & Ducatelle, 2004). Two-dimensional packing problems have also been solved by ACO; (Thiruvady et al., 2008) reports an ACO algorithm for the strip packing problem. Their method was based on a constructive heuristic ("Bottom-Left" method), and their method was used to learn the packing order. In (Burke & Kendall, 1999) the authors apply ant systems to the nesting problem, when the items are irregular. They used the "No-Fit-Polygon" to compose the constructive heuristic, and the ACO was also applied to learn the packing order. Based on a survey of previous work, it seems that when applying ACO on C&P problems, it is necessary to first develop a constructive heuristic. In this paper, after introduction of the construction heuristic OPT, we develop two version of the ACO and compare their performance on both the WCL and the WRL. The rest of the paper is organized as follows: in Section II, we first define the mathematical foundations of the problem. We then introduce, in Section III, the constructive heuristic OPT for the WCL and WRL. The ACO algorithm is presented in Section IV, and we report the results of numerical experiments in Section V. We conclude in Section VI with a discussion and suggestions for future work.

3

II.

MODELS FOR WEIGHTED CIRCLE LAYOUT AND WEIGHTED RECTANGLE LAYOUT

Both problems are concerned with the placement of objects within some containing circle, the idea being to minimise the container's radius (whilst minimising mass imbalance, which we consider later). For both problems, we use R to denote the radius of the containing circle. Suppose there are n items to be placed and their masses are m1, m2, …, mn . For the WCL, the sizes of the circular items are denoted by their radii, r1, r2, …, rn. For the WRL, the size of each rectangular item is denoted by the lengths of its two adjacent edges, such as (a1, b1), (a2, b2), …, (an, bn). We also use r1, r2, …, rn to denote the radii of the enveloping circle of each rectangular item, such that ri =

1 ai 2 + bi 2 . 2

In two-dimensional space, we use (xi, yi) to denote the position of item i. For a circular item, (xi, yi) is sufficient to define the position of item i, but for a rectangular item, we require additional information; the orientation zi is used together with (xi, yi).

(b)

(a)

Figure 1. Illustration of WCL and WRL. (a) WCL (b) WRL.

By summarizing the models provided in the literature, we describe the three main objectives for each problem in the following subsections.

A. Requirements of Weighted Circle Layout 1. Non-overlapping items This is the fundamental requirement, in that no two circles may overlap. Checking the condition for zero overlap between two circles is straightforward, in that we only need to check whether (1) is satisfied for each pair i, j.

( xi − x j ) 2 + ( yi − y j ) 2 ≥ ri + rj

(1)

2. Compactness of the layout We require that items are placed in a “compact” layout. The compactness of the layout is measured by the radius of the enveloping circle, as illustrated in Fig1-a and Fig1-b. One objective of our packing is to obtain the smallest possible enveloping

4

circle. The radius of the enveloping circle can be calculated for WCL by (2).

R _ envelope = max( ri + xi 2 + yi 2 )

(2)

1≤ i ≤ n

3. Balance of the system Another objective is to minimize the imbalance generated by weighted items, defined by (3): imbalance = (∑ i =1 mi xi ) 2 + (∑ i =1 mi yi ) 2 n

n

(3)

In recent work (Xiao et al., 2007; Xu et al., 2007a), we showed that the optimization process can actually benefit from the zero-imbalance requirement. Under this stricter constraint, the mass center of the system is arranged at the center of the containing circle. Then the radius of the enveloping circle (to thus measure the compactness) is replaced by (4):

R _ envelope = m ax ( ri + 1≤ i ≤ n

( xi −

∑ in=1 m i x i 2 ∑ in=1 m i y i 2 ) + ( y − ) ) i ∑ in=1 m i ∑ in=1 m i

(4)

It should be noted that we only consider static imbalance. Dynamic balance is not considered, as in (Teng et al., 1994), because in the 2-dimensional case, when the static imbalance becomes zero, the dynamic imbalance will also get to zero.

B. Requirements of Weighted Rectangle Layout 1. Non-overlapping items Although it is more difficult to judge the overlap of two rectangles compared with circles, it is still a straightforward issue in computational geometry. The sufficient and necessary conditions for no overlap between two rectangles i and j are: 1.

Any edge of i does not intersect with any edge of j, and

2.

Any vertex of i is not contained in j, and vice versa.

Condition 1 should be tested for every edge pair (i, j). After condition 1 is satisfied, only one vertex of rectangle i and one vertex of rectangle j should be checked to consider condition 2. In general, the orientation of a rectangle is not a fixed value. But when we limit the orientation to be either 0 or 90 degrees, the conditions for no overlap become easier to check. Using (xmin, ymin), (xmax, ymax) to denote the left-bottom vertex and topright vertex, we only need to check whether the following is satisfied (as illustrated by Fig 2): xmini>xmaxj or xmaxiymaxj or ymaxi=3, we require circle i to be tangential to two existing circles p and q, where p

Suggest Documents