999精品在线视频,手机成人午夜在线视频,久久不卡国产精品无码,中日无码在线观看,成人av手机在线观看,日韩精品亚洲一区中文字幕,亚洲av无码人妻,四虎国产在线观看 ?

A Novel Method for Solving Unbounded Knapsack Problem

2009-04-29 00:00:00CHENRung-ChingLINMing-Hsian
中國管理信息化 2009年15期

Abstract: Knapsack problem is one kind of NP-Complete problem. Unbounded knapsack problems are more complex and harder than general knapsack problem. In this paper, we apply QGAs (Quantum Genetic Algorithms) to solve unbounded knapsack problem and then follow other procedures. First, present the problem into the mode of QGAs and figure out the corresponding genes types and their fitness functions. Then, find the perfect combination of limitation and largest benefit. Finally, the best solution will be found. Primary experiment indicates that our method has well results.

Key words: Quantum Genetic Algorithms; Knapsack Program; Optimization Problems

doi:10.3969/j.issn.1673-0194.2009.15.018

CLC number: TP14Article character:AArticle ID:1673-0194(2009)15-0057-04

1 Introduction

The general Knapsack problem is a well-known problem in the field of optimal operations research [1]. It concerns the choice of items to be placed in a mountaineer’s Knapsack: though each item benefits the climber, capacity is limited. The unbounded Knapsack problem is defined [2]: places no upper bound on the number of copies of each kind item. The number of each item is unbounded. There are no restrictions on choice. The equation is shown the condition of xi is different from the Knapsack problem. The value of xi is a positive integer including zero.

Maximize f (x) =∑mi=1xipi

Subject to ∑mi=1xiwi≤C,

0 ≤xi,xi∈ integer, i=1……n;

We have n kinds of items, xi through xn. Each item x has a profit value p and a weight w. The maximum weight that we can carry in the bag is C, and each item has many copies.

In 1975, genetic algorithms (GAs) proposed by Holland [3], has been applied to many different areas. In 1989, Goldberg[3] developed a simple genetic algorithms (SGAs) using GAs that provides a important base for computer program analysis of GAs. In order to improve efficient for GAs, some mixed GAs were proposed. For example, combine GAs with fuzzy theory [4] that uses the power of decision inference by fuzzy theory, then thought GAs to find the best solution. Besides, to combine GAs with simulated annealing method (SA) [5] that advances the power of partial search for GAs. In addition, combine GAs with neural network [6] that enhances the speed of solving problems for GAs.

Han and Kim proposed quantum genetic algorithms (QGAs)[7-8] that combines GAs with quantum computing in 2002. He solved the knapsack problem using QGAs that indicate by quantum bit (qubit) and replace three operators of classical genetic algorithms with rotation gate to achieve evolution goal. The result shows it is more excellent that traditional GAs in group multiplicity and computing parallel and enhances the algorithms speed and decreases untimely convergence to enhance efficiency. In this paper we will solve unbounded knapsack problem using QGAs.

The reminder of the paper is organized as follows. We give a system overview in section 2. section 3 intrudes the quantum genetic algorithm setting. In section 4, we proposed the experimental results. Conclusions are given in section 5.

2 The system overview

The smallest unit of information stored in a two-state quantum computer is called a quantum bit or qubit. A qubit may be in the “1”and “0” superposition state that can be represented as

ψ = α| 0>+ β| 1>

where α and β are complex numbers that conform with

|α|2+|β|2=1

The representations of QGAs encoding are defined below.

Definition 1: A qubit as αβwhere |α|2+|β|2=1, |α|2 gives the probability that the qubit will be found in the “0” state and |β|2 gives the probability that the qubit will be found in the “1” state.

Definition 2: A qubit individual as a string of m qubits is defined as

Fig.1 The workflow of the QGAs

qij=αtj1αtj2…αtNm

βtj1βtj2…βtNm,j =1,2,…, N,

Where m is the length of quantum chromosome; N is the number of quantum chromosome in group.

Definition 3:The group Q individual as a string of N chromosome is defined as Q (t) =qtj|qt1Qt2……qtN, where N is the number of the group.

The representations of the chromosome use quantum bits in QGAs that make a chromosome can show multiple message of state and represent states at the same time. This paper will use case study methods with QGAs on practical application. It proposed by Han and Kim in 2002. Figure 1 shows the workflow of the program and the process.

3 Quantum Genetic Algorithms Setting

This system is based on the steps of the QGAs proposed by Han and Kim. Generally speaking, processing the QGAs requires several steps, but we generalize 4 parts that are main frames of QGAs. The 4 parts are including gene coding, P(t) repairing, fitness function calculation and probability of Q(t) updating that explain as follow:

(1) Gene coding

Select a number from range [0, 1] in the same probability and compare with the probability of |β|2 that means qubit is “1”. If it is smaller than|β|2 , that means the probability of qubit will be “1” is greater, so we set binary (xtj1) equate 1. Otherwise, set it equates 0 until finish selecting all items. The result is a binary string.

(2) P(t) repair

P (t) repair is revising the unsuitable solutions. In order to let the knapsack conform to total weights were allowed. If the knapsack over total weights, we must give some items up by order until satisfy with request. If the knapsack under weights limit, we select some items into knapsack by order to satisfy with the restriction. The restriction satisfies with ∑mi=1wi×xi≤CFitness function calculation

After finishing P (t) repair, we will calculate its fitness that is the total profits by chose items in the knapsack. Fitness value is Max f (x) =∑mi=1xipi. We will get the best profits of the combination after formula substitution.

Q(t) update

Setting rotation angle Δθi we use lookup table as Table 1. where f(x) is the best fitness value of new generation chromosome and f (b) is the best fitness value of old generation chromosome. We will classify several categories to explain as follow and Figure 2 depicts the polar plot of the rotation gate for Q-bit individuals.

Fig.2 Polar plot of the rotation gate for Q-bit

individualsTable 1.The setting of rotation angle

In the Table 1, x1 are ith bits of P(t), b1 are ith bits of B(t), f (x) are profits of P(t) and f(b) are profits of B(t), we classify some situation as follow. If x1=0 and b1=1 and f(x) < f(b), the Q-bit is located in the first or the third quadrant in Figure 2, the value of Δθi is set to a positive value to increase the probability of the state “1”; else, it is located in the second or the fourth quadrant, the value of -Δθi is set.

If there are out of situation above, all the value ofΔθi are set “0” that [ θi| i= 1 2 4 6 7 8 ]=0. In general, the rotation angle θ3 and θ5 are set between 0.01π to 0.09π.

Update Q(t),

qt+1j=αtj1αtj2αtj3…αtjm

βtj1βtj2βtj3…βtjm×Δθ

The size of rotation angle will affect convergence speed. If the value is set too lager, it will converge too early; if the value is set too small, it will make the speed of converge slow.

4 Experimental results and analysis

4.1 experimental arrangements

The system was implemented using C++ language on PC with Intel Pentium(R) processor 2.2 GHZ. We use twenty items as Table 2 and the weights limit will be set 200KG, generations are 200, groups are 50, and rotation angle is 0.03π. The QGAs find the best solution is on the 65 generations. The best solution is: one 4th items, one 9th items, and seven 16th items and the total values are 10122 that are optimal.

4.2 Experimental results and discussion

This experiment solves unbounded knapsack problem thought Quantum Genetic Algorithms. In the first part of experiment, we focus on static parameter settings and observe the result. QGAs modify the generation to search for optimal solutions. When other conditions are the same as previous setting, we set generations to 50, 100, and 200. Thirty runs were executed. And the results show when generations are greater, they will make search space more lager. Then, we can get average profits. The generations of the best solutions and generations are positive correlation.

Next, we adjust groups for analyze optimal solutions. We set the groups to 20, 50, and 100. The results show the groups are more lager and the profits are better. When the groups are 100, the average value is less than others. It is because the search space is too big enough to find the optimal solutions in the early generations.

Then, we consider the relations with the rotation angels and optimal solutions. Assume that rotation angel is 0.01, 0.05, and 0.09 under others settings are the same. In the results, we discovered when rotation angle is 0.01, no matter the average profits or the counts of the best solutions are the best. The average generations of the best solutions are greater than others when rotation angle is 0.01. This is because rotation angles are smaller and the convergence speed is slower. So, the convergence range is smaller and we get the optimal solutions in the last generations.

In the second part of experiment, we accede to greedy method into QGAs to enhance performance. In the greedy method, the large ratio of benefit to weight is the better candidate. We evaluate the input data of benefits and weights, counting the ratio and put larger ratio items in the righter side. The right item gets the higher probability to operate select mechanism. We use the essence of the greedy method that always chooses the best chromosome before each run. If we only use greedy method to find the optimal solution, we just get the optimal solution is 10098, not 10122. So we join the greedy method into QGAs and the result as Figure 3. We only adjust the rotation angle and with greedy method or not. In the Figure 3(a), QGAs with greedy method get better profits than not. In the generations of the best solutions, QGAs with greedy method are less than not as Figure 3(b). This is because greedy method makes converge early. Besides, we see QGAs with greedy method is excellent than not in the counts of the best solutions as Figure 3(c). Therefore, the experiment proves that QGAs with greedy method can raise the algorithm’s performance.

Fig.3 The comparison of QGAs and QGAs with Greedy method

5 Conclusion and future work

In this paper, we solve unbounded knapsack problem using QGAs by quantum bit and replace three operators of traditional genetic algorithms with rotation gate to achieve evolution goal. The unbounded knapsack problem is more complex than the general Knapsack problem. We used the QGAs for solving unbounded knapsack problem, overcoming the problem of slow convergence in traditional GAs. We also join greedy method into QGAs to enhance performance. Our approach is able to find the optimal solution using the multiple selection strategy in a wide search space. In the future we will try to find the best relationship between generations size and rotation angle in order to improve the efficiency of the method.

References

[1] K L Li, G M Dai and Q H Li. A Genetic Algorithm for the Unbounded Knapsack Problem[C]. IEEE Conference on Machine Learning and Cybernetics, Vol.3, 2003:1586-1590.

[2] Wikipedia. Knapsack problem[EB/OL]. http://en.wikipedia.org/wiki/Knapsack_problem.

[3] D E Goldberg Genetic Algorithms in Search, Optimization and Machine Learning[M]. Addison-Wesley, 1989.

[4] B Chakrabort. Genetic Algorithm with Fuzzy Fitness Function for Feature Selection“ Proc. of the IEEE Int.Sym. on Industrial Electronics, Iwate, Japan, 2002: 315-319.

[5] L Wang and D Z Zheng. A Modified Genetic Algorithm for Job Shop Scheduling[J]. International Journal of Advanced Manufacturing Technology, 2002, 20(1): 72-76, 2002.

[6] N Chaiyaratana and A M S Zalzala. Hybridization of Neural Networks and Genetic Algorithms for Time-Optimal Control[C].Proceedings of the Congress on Evolutionary Computation, vol.1, 1999: 389-396.

[7] K H Han and J H Kim. Quantum-Inspired Evolutionary Algorithm for a Class of Combinatorial Optimization[J]. IEEE Transactions on Evolutionary Computation, 2002, 6(6): 580-593.

[8] K H Han and J H Kim. Genetic Quantum Algorithm and its Application to Combinatorial Optimization Problems[C]. IEEE Conference on Evolutionary Computation, 2000,1354-1360.


登錄APP查看全文

主站蜘蛛池模板: 日韩专区欧美| 国产精品刺激对白在线| 日本精品αv中文字幕| 亚洲男人天堂网址| 四虎综合网| 青青操国产| 波多野结衣无码中文字幕在线观看一区二区| 激情無極限的亚洲一区免费| 亚洲v日韩v欧美在线观看| 中国丰满人妻无码束缚啪啪| 99视频在线观看免费| 这里只有精品在线播放| 狠狠操夜夜爽| 美女无遮挡免费视频网站| 国产成人综合久久| 中文字幕欧美日韩高清| 热99精品视频| 狠狠色噜噜狠狠狠狠奇米777| 欧美亚洲日韩不卡在线在线观看| 国产一区免费在线观看| 色婷婷在线影院| 日韩精品一区二区三区免费在线观看| 亚洲日本中文字幕乱码中文| 亚洲视频一区在线| 日韩在线中文| 国产精品露脸视频| 欧美中文字幕一区| 国产原创第一页在线观看| 亚洲精品制服丝袜二区| AV熟女乱| 国产一区二区三区视频| 日韩精品一区二区三区swag| 99尹人香蕉国产免费天天拍| 欧美日韩一区二区三| 99久久亚洲精品影院| 欧美精品伊人久久| 99视频精品在线观看| 亚洲天堂成人在线观看| 久久久久人妻一区精品| 日韩黄色在线| 国产麻豆精品在线观看| 天堂中文在线资源| 久久99国产综合精品1| 精品一区二区三区四区五区| 亚洲色图欧美一区| 99人体免费视频| 国产肉感大码AV无码| 青草精品视频| 在线综合亚洲欧美网站| 色噜噜久久| 欧美视频在线不卡| 久久综合丝袜长腿丝袜| 中文字幕av一区二区三区欲色| 99热免费在线| 国产美女精品在线| 88av在线| 午夜限制老子影院888| a毛片免费在线观看| 亚洲欧美日韩另类在线一| 亚洲香蕉在线| 在线永久免费观看的毛片| 久久频这里精品99香蕉久网址| 欧美有码在线观看| 亚洲AV无码久久天堂| 99精品国产电影| 欧美色综合久久| 欧美成人精品一区二区| 伊在人亚洲香蕉精品播放| 成人精品视频一区二区在线| 亚洲性视频网站| 亚洲欧洲日韩久久狠狠爱| julia中文字幕久久亚洲| 91久久精品国产| 亚洲成人免费看| 国产网友愉拍精品| 91区国产福利在线观看午夜| 国产成人综合久久精品尤物| 欧美国产日产一区二区| 国产无码高清视频不卡| 黄色一及毛片| 国内精品视频| 久久综合久久鬼|