SlideShare a Scribd company logo
International Conference on Electronics, Computer and Communication (ICECC 2008)
University of Rajshahi, Bangladesh
ISBN 984-300-002131-3
Solving Multidimensional Multiple Choice Knapsack Problem By Genetic Algorithm &
Measuring Its Performance
Shubhashis K. Shil1
, A. B. M. Sarowar Sattar2
, Md. Waselul Haque Sadid3
,A. B. M. Nasiruzzaman4
,Md.
ShamimAnower5
1-3
Department of CSE & 4-5
EEE, Rajshahi University of Engineering & Technology, Rajshahi-6204, Bangladesh
E-mail: sks_engr_ruet@yahoo.com1
, nasir_zaman_eee@yahoo.com4
Abstract: The objective of this paper is to evolve
simple and effective method for the multidimensional
multiple choice knapsack problem (MMKP), which is
capable of obtaining near optimal revenue and of
course, better timing complexity than that of
traditional approaches for a large-scale system. In
optimization, genetic algorithm (GA) has some well-
known advantages. Some traditional methods are
well known to solve MMKP such as Branch and
Bound with Linear Programming (BBLP), Modified
Heuristic (M-HEU), Multiple Upgrade of Heuristic
(MU-HEU). In this study, a similar investigation for
solving MMKP is considered using simple Genetic
Algorithm. The performance of results of revenue
obtained with all of the methods are nearly same but
from the view point of calculation time GA is much
superior and its effectiveness increases as the
constraints of the problem are increased.
Key Words: Genetic Algorithm, MMKP, MU-HEU,
M-HEU, BBLP.
1. INTRODUCTION
The multidimensional multiple-choice knapsack
problem (MMKP) is a more complex variant of the
0–1 knapsack problem (KP). Since 0-1 KP is an NP-
Hard problem algorithms for finding exact solution
of the MMKP are not suitable for most real-time
decision-making applications, such as quality
adaptation and admission control for interactive
multimedia systems, or service level agreement
management in telecommunication networks.
The MMKP is a variant of knapsack problem that is
given a set of groups of variables, one tries to select
the best variable in each group. Each variable in a
group has a value in an objective function and
consumes a certain amount of resources as well. The
problem is to select the variables, subject to resource
constraints, so that the objective function is
maximized.
Let there be n groups of items. Group i has li items.
Each item of the group has a particular value and it
requires m resources. In mathematical notation, let vij
be the value of the jth item of the ith group, r= (rij1 ,
rij2, …,rijm) be the required resource for the jth item of
the ith group and R=(R1, R2,...,Rn) be the resource
bound of the knapsack.
Mathematically the problem is stated as follows:
V=maximize ∑∑= =
n
i
li
j
ijijvx
1 1
(Objective function)
So that,
k
n
i
li
j
ijkij Rrx∑∑= =
≤
1 1
(Resource constraints)
where, V is the value of the solution, k=1,2,…, m,
and the picking variables are ,
∑=
=
li
j
ijx
1
1
and to reduce calculation time.
Fig. 1 illustrates an example of MMKP. We have to
pick exactly one item from each group. Each item
has two resources, r1 and r2. The objective of
picking items is to maximize the total value of the
picked items subject to the resource constraints of the
knapsack in minimum time, that is
∑ 1(r of picked items) 15≤ and,
∑ 2(r of picked items) 15≤
Fig. 1 An example of MMKP.
The MMKP has been studied by many researchers
and methods have been presented in several classical
papers [1], [2], [3], [4], and [5], and in well
established textbooks [6], and [7]. These classical
methods require specific assumptions on the
objective function such as continuity,
differentiability. Moreover, these methods are slowly
convergent.
484
International Conference on Electronics, Computer and Communication (ICECC 2008)
University of Rajshahi, Bangladesh
ISBN 984-300-002131-3
Genetic Algorithms (GA) are general search
technique based on the mechanism of natural
selection and natural genetics. In GA, search points
are represented by genetic strings. The search
process uses probabilistic transition rules instead of
deterministic ones as in traditional optimization
method. The search is conducted over a population of
solutions. Moreover, no specific assumptions on the
objective function, such as continuity,
differentiability, etc. are required in GA.
Genetic Algorithm is different from traditional or
conventional methods in four ways:
1. GA work with a coding of the parameter set, not
the parameters themselves.
2. GA search from a population of points, not a
single point.
3. GA use payoff (objective function) information,
not derivatives or other auxiliary knowledge.
4. GA use probabilistic transition rules, not
deterministic rules.
In several papers [1] the 0-1 classical knapsack
problem is solved using GA, which is one-
dimensional.
In this paper, analysis is done for multi-dimension
and multiple choice knapsack problem. In view of
the above, the main thrust of the research work
presented in this paper is to propose a new but
effective method for solving MMKP using GA.
2. STRUCTURE OF SOLUTION TECHNIQUE
2.1 Pseudo Code of General Genetic Algorithm
Begin
//Initialize the generation counter
t→0;
//Create a random population within the
bound and initialize it
Initialize_Population (p(t));
//Evaluate the fitness of the generated
population with respect to targeted function
Evaluate_Population (p(t));
//Order population to find the best solution
Order_Population (p(t));
While (not termination-condition satisfied)
Begin
//Select the relatively fir population
(roulette wheel)
Select_Population (p(t) from p(t-
1));
//Crossover operation
Apply_Crossover (p(t));
//Mutation operation
Apply_Mutation (p(t));
//Evaluate the fitness of the new
generated population
Evaluate_Population (p(t));
//Combine the result of the new
generation with that of the previous one
Alternate_Generation (offspring of
p(t) + parent of p(t));
//Order the generation with the
previous one to find the best solution
Order_Generation (offspring of p(t)
+ parent of p(t));
//Increase the generation counter
t→t+1;
End
End
2.2 Working Steps of Genetic Algorithm
The design problem can be formulated as the
following optimization problem:
1. Minimize the fitness function
1/(maximize ∑∑= =
n
i
li
j
ijijvx
1 1
)
subjected to constraint k
n
i
li
j
ijkij Rrx∑∑= =
≤
1 1
.
2. In every generation 30 individuals are taken.
3. Roulette Wheel Method of reproduction is used.
4. Single cross-site of crossover is used with
crossover rate 0.5 and mutation rate 0.05.
5. As a terminating condition number of generation
is chosen to be 100, 200, 300, and so on.
3. RESULT AND DISCUSSION
In Table 1 and Fig. 2 comparisons between BBLP,
M-HEU, MU-HEU and GA from the view points of
revenue and required time keeping number of items
per group 10 and number of resources 10, are given.
485
International Conference on Electronics, Computer and Communication (ICECC 2008)
University of Rajshahi, Bangladesh
ISBN 984-300-002131-3
Table 1 Comparison among various methods for
solving MMKP varying no. of generation
100 150 200 250 300 350 400 450 500
0
1
2
3
4
5
6
7
8
9
10
No. of Generation
R
e
qu
ire
d
T
im
e
(s
e
c
)
BBLP
M-HEU
MU-HEU
GA
Fig. 2 Graphical comparison of various methods for
MMKP
From the table it is evident that BBLP is superior
from the point of view of revenue but it is poor from
required time of calculation. M-HEU & MU-HEU
produce comparatively better solutions based on
required time. But GA is superior from the view
point of required time and it also produces near
optimal revenue probably not better all time.
4. CONCLUSION
This paper presents the comparisons of GA, BBLP,
M-HEU and MU-HEU algorithms for solving
MMKP. A new approach for solving the challenging
optimal MMKP is presented. The results are
compared with the results obtained using traditional
methods. The results are quite similar except that GA
is much faster than the traditional ones. It is now
quite clear from the above discussion that the GA
approach shows potential and stern concentrations
are the need of the day because of its probabilistic
nature.
REFERENCES
[1] S. Khuri, T. Back, and J. Heitkotter, “The Zero-one
Multiple Knapsack Problem and Genetic
Algorithms”, Proceedings of The ACM Symposium
of Applied Computing (SAC94), 1994.
[2] M Hifi, M Michrafy, and A Sbihi, “Heuristic
algorithms for the multiple-choice
multidimensional knapsack problem” Journal of
the Operational Research Society, pp. 1323–1332,
2004.
[3] Shahadat Khan, Kin F. Li, Eric G. Manning and
Md Mostofa Akbar, “Solving the knapsack
problem for adaptive multimedia systems” Studia
Informatica Universalis, SIU-2002, pp. 161–182,
Oct. 2002.
[4] M. M. Akbar, Eric G. Manning, Gholamali C.
Shoja, S.
Khan, “Heuristic Solutions for the Multiple-Choice
Multi- Dimension Knapsack Problem”
International Conference on Computational
Science, San Fracsisco, California, pp 659-668,
May, 28-30, 2001.
[5] R. Parra-Hernandez and N. Dimopoulos,, “A new
Heuristic for Solving the Multichoice
Multidimensional Knapsack Problem,” IEEE
Transaction on Systems, Man and Cybernetics.
Part A: Systems and Humans, 2002.
[6] David E. Goldberg, Genetic Algorithms in Search,
Optimization and Machine Learning, Pearson
Education, 2002.
[7] S.Rajasekharan, S. A. Vijayalekshmi Pai, Neural
Networks, Fuzzy Logic & Genetic Algorithms,
Prentice Hall of India, 2003.
486

More Related Content

What's hot

An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...
An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...
An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...
drboon
 
Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...
Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...
Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...
drboon
 
FUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONS
FUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONSFUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONS
FUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONS
ijcsity
 
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
IRJET Journal
 
IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...
IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...
IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...
IRJET Journal
 
A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...
A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...
A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...
IOSRJM
 
Mathematics 06-00092 (1)
Mathematics 06-00092 (1)Mathematics 06-00092 (1)
Mathematics 06-00092 (1)
Dr. Hari Arora
 
A HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMS
A HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMSA HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMS
A HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMS
ijfcstjournal
 
Opinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classicationOpinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classication
IJECEIAES
 
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO... ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
cscpconf
 
Comparison between the genetic algorithms optimization and particle swarm opt...
Comparison between the genetic algorithms optimization and particle swarm opt...Comparison between the genetic algorithms optimization and particle swarm opt...
Comparison between the genetic algorithms optimization and particle swarm opt...
IAEME Publication
 
Study of relevancy, diversity, and novelty in recommender systems
Study of relevancy, diversity, and novelty in recommender systemsStudy of relevancy, diversity, and novelty in recommender systems
Study of relevancy, diversity, and novelty in recommender systems
Chemseddine Berbague
 
Medical diagnosis classification
Medical diagnosis classificationMedical diagnosis classification
Medical diagnosis classification
csandit
 
Ontologies mining using association rules
Ontologies mining using association rulesOntologies mining using association rules
Ontologies mining using association rules
Chemseddine Berbague
 
Nbe rcausalpredictionv111 lecture2
Nbe rcausalpredictionv111 lecture2Nbe rcausalpredictionv111 lecture2
Nbe rcausalpredictionv111 lecture2
NBER
 
The pertinent single-attribute-based classifier for small datasets classific...
The pertinent single-attribute-based classifier  for small datasets classific...The pertinent single-attribute-based classifier  for small datasets classific...
The pertinent single-attribute-based classifier for small datasets classific...
IJECEIAES
 
An integrated approach for enhancing ready mixed concrete selection using tec...
An integrated approach for enhancing ready mixed concrete selection using tec...An integrated approach for enhancing ready mixed concrete selection using tec...
An integrated approach for enhancing ready mixed concrete selection using tec...prjpublications
 

What's hot (19)

An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...
An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...
An Application of Genetic Algorithm for Non-restricted Space and Pre-determin...
 
Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...
Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...
Application of Bender’s Decomposition Solving a Feed–mix Problem among Supply...
 
FUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONS
FUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONSFUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONS
FUZZY ROUGH INFORMATION MEASURES AND THEIR APPLICATIONS
 
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
 
IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...
IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...
IRJET- Evaluation of Classification Algorithms with Solutions to Class Imbala...
 
A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...
A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...
A Hybrid Pareto Based Multi Objective Evolutionary Algorithm for a Partial Fl...
 
Mathematics 06-00092 (1)
Mathematics 06-00092 (1)Mathematics 06-00092 (1)
Mathematics 06-00092 (1)
 
A HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMS
A HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMSA HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMS
A HYBRID COA/ε-CONSTRAINT METHOD FOR SOLVING MULTI-OBJECTIVE PROBLEMS
 
EJSR(5)
EJSR(5)EJSR(5)
EJSR(5)
 
Opinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classicationOpinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classication
 
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO... ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 
Comparison between the genetic algorithms optimization and particle swarm opt...
Comparison between the genetic algorithms optimization and particle swarm opt...Comparison between the genetic algorithms optimization and particle swarm opt...
Comparison between the genetic algorithms optimization and particle swarm opt...
 
Study of relevancy, diversity, and novelty in recommender systems
Study of relevancy, diversity, and novelty in recommender systemsStudy of relevancy, diversity, and novelty in recommender systems
Study of relevancy, diversity, and novelty in recommender systems
 
Medical diagnosis classification
Medical diagnosis classificationMedical diagnosis classification
Medical diagnosis classification
 
Ontologies mining using association rules
Ontologies mining using association rulesOntologies mining using association rules
Ontologies mining using association rules
 
Nbe rcausalpredictionv111 lecture2
Nbe rcausalpredictionv111 lecture2Nbe rcausalpredictionv111 lecture2
Nbe rcausalpredictionv111 lecture2
 
The pertinent single-attribute-based classifier for small datasets classific...
The pertinent single-attribute-based classifier  for small datasets classific...The pertinent single-attribute-based classifier  for small datasets classific...
The pertinent single-attribute-based classifier for small datasets classific...
 
ppt0320defenseday
ppt0320defensedayppt0320defenseday
ppt0320defenseday
 
An integrated approach for enhancing ready mixed concrete selection using tec...
An integrated approach for enhancing ready mixed concrete selection using tec...An integrated approach for enhancing ready mixed concrete selection using tec...
An integrated approach for enhancing ready mixed concrete selection using tec...
 

Similar to Solving Multidimensional Multiple Choice Knapsack Problem By Genetic Algorithm & Comparing With Some Traditional Methods

An improved teaching learning
An improved teaching learningAn improved teaching learning
An improved teaching learning
csandit
 
Evolutionary techniques-for-model-order-reduction-of-large-scale-linear-systems
Evolutionary techniques-for-model-order-reduction-of-large-scale-linear-systemsEvolutionary techniques-for-model-order-reduction-of-large-scale-linear-systems
Evolutionary techniques-for-model-order-reduction-of-large-scale-linear-systemsCemal Ardil
 
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
paperpublications3
 
A Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsA Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test Functions
IJMERJOURNAL
 
Cuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and ApplicationsCuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and Applications
Xin-She Yang
 
Sca a sine cosine algorithm for solving optimization problems
Sca a sine cosine algorithm for solving optimization problemsSca a sine cosine algorithm for solving optimization problems
Sca a sine cosine algorithm for solving optimization problems
laxmanLaxman03209
 
Two-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential EvolutionTwo-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential Evolution
Xin-She Yang
 
1582997627872.pdf
1582997627872.pdf1582997627872.pdf
1582997627872.pdf
AbhilashJain25
 
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
IAEME Publication
 
[IJCT-V3I2P31] Authors: Amarbir Singh
[IJCT-V3I2P31] Authors: Amarbir Singh[IJCT-V3I2P31] Authors: Amarbir Singh
[IJCT-V3I2P31] Authors: Amarbir Singh
IJET - International Journal of Engineering and Techniques
 
Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm
iosrjce
 
I017235662
I017235662I017235662
I017235662
IOSR Journals
 
Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...
Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...
Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...
Xin-She Yang
 
MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...
MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...
MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...
cscpconf
 
MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...
MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...
MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...
csandit
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
Priti Punia
 
Survey on Efficient Techniques of Text Mining
Survey on Efficient Techniques of Text MiningSurvey on Efficient Techniques of Text Mining
Survey on Efficient Techniques of Text Mining
vivatechijri
 
Genetic Approach to Parallel Scheduling
Genetic Approach to Parallel SchedulingGenetic Approach to Parallel Scheduling
Genetic Approach to Parallel Scheduling
IOSR Journals
 

Similar to Solving Multidimensional Multiple Choice Knapsack Problem By Genetic Algorithm & Comparing With Some Traditional Methods (20)

An improved teaching learning
An improved teaching learningAn improved teaching learning
An improved teaching learning
 
Evolutionary techniques-for-model-order-reduction-of-large-scale-linear-systems
Evolutionary techniques-for-model-order-reduction-of-large-scale-linear-systemsEvolutionary techniques-for-model-order-reduction-of-large-scale-linear-systems
Evolutionary techniques-for-model-order-reduction-of-large-scale-linear-systems
 
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
 
A Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsA Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test Functions
 
Cuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and ApplicationsCuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and Applications
 
Sca a sine cosine algorithm for solving optimization problems
Sca a sine cosine algorithm for solving optimization problemsSca a sine cosine algorithm for solving optimization problems
Sca a sine cosine algorithm for solving optimization problems
 
Two-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential EvolutionTwo-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential Evolution
 
1582997627872.pdf
1582997627872.pdf1582997627872.pdf
1582997627872.pdf
 
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
 
[IJCT-V3I2P31] Authors: Amarbir Singh
[IJCT-V3I2P31] Authors: Amarbir Singh[IJCT-V3I2P31] Authors: Amarbir Singh
[IJCT-V3I2P31] Authors: Amarbir Singh
 
Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm
 
I017235662
I017235662I017235662
I017235662
 
Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...
Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...
Applications and Analysis of Bio-Inspired Eagle Strategy for Engineering Opti...
 
IJCSI-2015-12-2-10138 (1) (2)
IJCSI-2015-12-2-10138 (1) (2)IJCSI-2015-12-2-10138 (1) (2)
IJCSI-2015-12-2-10138 (1) (2)
 
MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...
MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...
MOCANAR: A MULTI-OBJECTIVE CUCKOO SEARCH ALGORITHM FOR NUMERIC ASSOCIATION RU...
 
MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...
MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...
MOCANAR: A Multi-Objective Cuckoo Search Algorithm for Numeric Association Ru...
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
 
Survey on Efficient Techniques of Text Mining
Survey on Efficient Techniques of Text MiningSurvey on Efficient Techniques of Text Mining
Survey on Efficient Techniques of Text Mining
 
Borgulya
BorgulyaBorgulya
Borgulya
 
Genetic Approach to Parallel Scheduling
Genetic Approach to Parallel SchedulingGenetic Approach to Parallel Scheduling
Genetic Approach to Parallel Scheduling
 

More from Shubhashis Shil

Evolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsEvolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsShubhashis Shil
 
A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...
A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...
A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...Shubhashis Shil
 
MSc_Defense_Presentation
MSc_Defense_PresentationMSc_Defense_Presentation
MSc_Defense_PresentationShubhashis Shil
 
A Genetic Algorithm Based Approach for Solving Optimal Power Flow Problem
A Genetic Algorithm Based Approach for Solving Optimal Power Flow ProblemA Genetic Algorithm Based Approach for Solving Optimal Power Flow Problem
A Genetic Algorithm Based Approach for Solving Optimal Power Flow ProblemShubhashis Shil
 
Winner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse AuctionsWinner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse AuctionsShubhashis Shil
 
An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...
An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...
An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...Shubhashis Shil
 
Constraint and Qualitative Preference Specification in Multi-Attribute Revers...
Constraint and Qualitative Preference Specification in Multi-Attribute Revers...Constraint and Qualitative Preference Specification in Multi-Attribute Revers...
Constraint and Qualitative Preference Specification in Multi-Attribute Revers...Shubhashis Shil
 
Considering Multiple Instances of Items in Combinatorial Reverse Auctions
Considering Multiple Instances of Items in Combinatorial Reverse AuctionsConsidering Multiple Instances of Items in Combinatorial Reverse Auctions
Considering Multiple Instances of Items in Combinatorial Reverse AuctionsShubhashis Shil
 
Evolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsEvolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsShubhashis Shil
 
Evolutionary Techniques for Reverse Auctions
Evolutionary Techniques for Reverse AuctionsEvolutionary Techniques for Reverse Auctions
Evolutionary Techniques for Reverse AuctionsShubhashis Shil
 

More from Shubhashis Shil (11)

ICTAI_2016_Presentation
ICTAI_2016_PresentationICTAI_2016_Presentation
ICTAI_2016_Presentation
 
Evolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsEvolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse Auctions
 
A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...
A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...
A Multi-Attribute Auction Mechanism based on Conditional Constraints and Cond...
 
MSc_Defense_Presentation
MSc_Defense_PresentationMSc_Defense_Presentation
MSc_Defense_Presentation
 
A Genetic Algorithm Based Approach for Solving Optimal Power Flow Problem
A Genetic Algorithm Based Approach for Solving Optimal Power Flow ProblemA Genetic Algorithm Based Approach for Solving Optimal Power Flow Problem
A Genetic Algorithm Based Approach for Solving Optimal Power Flow Problem
 
Winner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse AuctionsWinner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse Auctions
 
An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...
An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...
An Approach to Solve Winner Determination in Combinatorial Reverse Auctions U...
 
Constraint and Qualitative Preference Specification in Multi-Attribute Revers...
Constraint and Qualitative Preference Specification in Multi-Attribute Revers...Constraint and Qualitative Preference Specification in Multi-Attribute Revers...
Constraint and Qualitative Preference Specification in Multi-Attribute Revers...
 
Considering Multiple Instances of Items in Combinatorial Reverse Auctions
Considering Multiple Instances of Items in Combinatorial Reverse AuctionsConsidering Multiple Instances of Items in Combinatorial Reverse Auctions
Considering Multiple Instances of Items in Combinatorial Reverse Auctions
 
Evolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsEvolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse Auctions
 
Evolutionary Techniques for Reverse Auctions
Evolutionary Techniques for Reverse AuctionsEvolutionary Techniques for Reverse Auctions
Evolutionary Techniques for Reverse Auctions
 

Solving Multidimensional Multiple Choice Knapsack Problem By Genetic Algorithm & Comparing With Some Traditional Methods

  • 1. International Conference on Electronics, Computer and Communication (ICECC 2008) University of Rajshahi, Bangladesh ISBN 984-300-002131-3 Solving Multidimensional Multiple Choice Knapsack Problem By Genetic Algorithm & Measuring Its Performance Shubhashis K. Shil1 , A. B. M. Sarowar Sattar2 , Md. Waselul Haque Sadid3 ,A. B. M. Nasiruzzaman4 ,Md. ShamimAnower5 1-3 Department of CSE & 4-5 EEE, Rajshahi University of Engineering & Technology, Rajshahi-6204, Bangladesh E-mail: sks_engr_ruet@yahoo.com1 , nasir_zaman_eee@yahoo.com4 Abstract: The objective of this paper is to evolve simple and effective method for the multidimensional multiple choice knapsack problem (MMKP), which is capable of obtaining near optimal revenue and of course, better timing complexity than that of traditional approaches for a large-scale system. In optimization, genetic algorithm (GA) has some well- known advantages. Some traditional methods are well known to solve MMKP such as Branch and Bound with Linear Programming (BBLP), Modified Heuristic (M-HEU), Multiple Upgrade of Heuristic (MU-HEU). In this study, a similar investigation for solving MMKP is considered using simple Genetic Algorithm. The performance of results of revenue obtained with all of the methods are nearly same but from the view point of calculation time GA is much superior and its effectiveness increases as the constraints of the problem are increased. Key Words: Genetic Algorithm, MMKP, MU-HEU, M-HEU, BBLP. 1. INTRODUCTION The multidimensional multiple-choice knapsack problem (MMKP) is a more complex variant of the 0–1 knapsack problem (KP). Since 0-1 KP is an NP- Hard problem algorithms for finding exact solution of the MMKP are not suitable for most real-time decision-making applications, such as quality adaptation and admission control for interactive multimedia systems, or service level agreement management in telecommunication networks. The MMKP is a variant of knapsack problem that is given a set of groups of variables, one tries to select the best variable in each group. Each variable in a group has a value in an objective function and consumes a certain amount of resources as well. The problem is to select the variables, subject to resource constraints, so that the objective function is maximized. Let there be n groups of items. Group i has li items. Each item of the group has a particular value and it requires m resources. In mathematical notation, let vij be the value of the jth item of the ith group, r= (rij1 , rij2, …,rijm) be the required resource for the jth item of the ith group and R=(R1, R2,...,Rn) be the resource bound of the knapsack. Mathematically the problem is stated as follows: V=maximize ∑∑= = n i li j ijijvx 1 1 (Objective function) So that, k n i li j ijkij Rrx∑∑= = ≤ 1 1 (Resource constraints) where, V is the value of the solution, k=1,2,…, m, and the picking variables are , ∑= = li j ijx 1 1 and to reduce calculation time. Fig. 1 illustrates an example of MMKP. We have to pick exactly one item from each group. Each item has two resources, r1 and r2. The objective of picking items is to maximize the total value of the picked items subject to the resource constraints of the knapsack in minimum time, that is ∑ 1(r of picked items) 15≤ and, ∑ 2(r of picked items) 15≤ Fig. 1 An example of MMKP. The MMKP has been studied by many researchers and methods have been presented in several classical papers [1], [2], [3], [4], and [5], and in well established textbooks [6], and [7]. These classical methods require specific assumptions on the objective function such as continuity, differentiability. Moreover, these methods are slowly convergent. 484
  • 2. International Conference on Electronics, Computer and Communication (ICECC 2008) University of Rajshahi, Bangladesh ISBN 984-300-002131-3 Genetic Algorithms (GA) are general search technique based on the mechanism of natural selection and natural genetics. In GA, search points are represented by genetic strings. The search process uses probabilistic transition rules instead of deterministic ones as in traditional optimization method. The search is conducted over a population of solutions. Moreover, no specific assumptions on the objective function, such as continuity, differentiability, etc. are required in GA. Genetic Algorithm is different from traditional or conventional methods in four ways: 1. GA work with a coding of the parameter set, not the parameters themselves. 2. GA search from a population of points, not a single point. 3. GA use payoff (objective function) information, not derivatives or other auxiliary knowledge. 4. GA use probabilistic transition rules, not deterministic rules. In several papers [1] the 0-1 classical knapsack problem is solved using GA, which is one- dimensional. In this paper, analysis is done for multi-dimension and multiple choice knapsack problem. In view of the above, the main thrust of the research work presented in this paper is to propose a new but effective method for solving MMKP using GA. 2. STRUCTURE OF SOLUTION TECHNIQUE 2.1 Pseudo Code of General Genetic Algorithm Begin //Initialize the generation counter t→0; //Create a random population within the bound and initialize it Initialize_Population (p(t)); //Evaluate the fitness of the generated population with respect to targeted function Evaluate_Population (p(t)); //Order population to find the best solution Order_Population (p(t)); While (not termination-condition satisfied) Begin //Select the relatively fir population (roulette wheel) Select_Population (p(t) from p(t- 1)); //Crossover operation Apply_Crossover (p(t)); //Mutation operation Apply_Mutation (p(t)); //Evaluate the fitness of the new generated population Evaluate_Population (p(t)); //Combine the result of the new generation with that of the previous one Alternate_Generation (offspring of p(t) + parent of p(t)); //Order the generation with the previous one to find the best solution Order_Generation (offspring of p(t) + parent of p(t)); //Increase the generation counter t→t+1; End End 2.2 Working Steps of Genetic Algorithm The design problem can be formulated as the following optimization problem: 1. Minimize the fitness function 1/(maximize ∑∑= = n i li j ijijvx 1 1 ) subjected to constraint k n i li j ijkij Rrx∑∑= = ≤ 1 1 . 2. In every generation 30 individuals are taken. 3. Roulette Wheel Method of reproduction is used. 4. Single cross-site of crossover is used with crossover rate 0.5 and mutation rate 0.05. 5. As a terminating condition number of generation is chosen to be 100, 200, 300, and so on. 3. RESULT AND DISCUSSION In Table 1 and Fig. 2 comparisons between BBLP, M-HEU, MU-HEU and GA from the view points of revenue and required time keeping number of items per group 10 and number of resources 10, are given. 485
  • 3. International Conference on Electronics, Computer and Communication (ICECC 2008) University of Rajshahi, Bangladesh ISBN 984-300-002131-3 Table 1 Comparison among various methods for solving MMKP varying no. of generation 100 150 200 250 300 350 400 450 500 0 1 2 3 4 5 6 7 8 9 10 No. of Generation R e qu ire d T im e (s e c ) BBLP M-HEU MU-HEU GA Fig. 2 Graphical comparison of various methods for MMKP From the table it is evident that BBLP is superior from the point of view of revenue but it is poor from required time of calculation. M-HEU & MU-HEU produce comparatively better solutions based on required time. But GA is superior from the view point of required time and it also produces near optimal revenue probably not better all time. 4. CONCLUSION This paper presents the comparisons of GA, BBLP, M-HEU and MU-HEU algorithms for solving MMKP. A new approach for solving the challenging optimal MMKP is presented. The results are compared with the results obtained using traditional methods. The results are quite similar except that GA is much faster than the traditional ones. It is now quite clear from the above discussion that the GA approach shows potential and stern concentrations are the need of the day because of its probabilistic nature. REFERENCES [1] S. Khuri, T. Back, and J. Heitkotter, “The Zero-one Multiple Knapsack Problem and Genetic Algorithms”, Proceedings of The ACM Symposium of Applied Computing (SAC94), 1994. [2] M Hifi, M Michrafy, and A Sbihi, “Heuristic algorithms for the multiple-choice multidimensional knapsack problem” Journal of the Operational Research Society, pp. 1323–1332, 2004. [3] Shahadat Khan, Kin F. Li, Eric G. Manning and Md Mostofa Akbar, “Solving the knapsack problem for adaptive multimedia systems” Studia Informatica Universalis, SIU-2002, pp. 161–182, Oct. 2002. [4] M. M. Akbar, Eric G. Manning, Gholamali C. Shoja, S. Khan, “Heuristic Solutions for the Multiple-Choice Multi- Dimension Knapsack Problem” International Conference on Computational Science, San Fracsisco, California, pp 659-668, May, 28-30, 2001. [5] R. Parra-Hernandez and N. Dimopoulos,, “A new Heuristic for Solving the Multichoice Multidimensional Knapsack Problem,” IEEE Transaction on Systems, Man and Cybernetics. Part A: Systems and Humans, 2002. [6] David E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning, Pearson Education, 2002. [7] S.Rajasekharan, S. A. Vijayalekshmi Pai, Neural Networks, Fuzzy Logic & Genetic Algorithms, Prentice Hall of India, 2003. 486