An efficient optimizer for the 0/1 knapsack problem using group counseling

View article
PeerJ Computer Science

Main article text

 

Introduction

  1. to solve the 0/1 knapsack problem and

  2. to analyze the various parameters to see how they affect the solution.

Group Counseling Optimizer

Main algorithm

Selection of individuals for counseling

  • Other-members counseling

  • Self-belief counseling (use self-best values)

  • Self-counseling

Updating individual best position

Knapsack Problem

Example of 0/1 knapsack problem

Results and Discussion

Representation of the items

Encoding an individual

Fitness function

Termination condition

Experimental setup

Experiment 1

Experiment 2

Experiment 3

Experiment 4

Experiment 5

  • The population size is equal to 50;

  • The maximum number of generations increases from 20 to 100;

  • The number of counselors is equal to 1;

  • self-belief-counseling probability is equal to 70%;

  • self-counseling probability is equal to 50%;

  • Max_mdf is equal to 0.5;

Results

Conclusion

Supplemental Information

Code used for the experiments

DOI: 10.7717/peerj-cs.1315/supp-2

Additional Information and Declarations

Competing Interests

Muhammad Asif is an Academic Editor for PeerJ Computer Science. The authors do not declare any competing interests.

Author Contributions

Yazeed Yasin Ghadi conceived and designed the experiments, performed the experiments, performed the computation work, authored or reviewed drafts of the article, and approved the final draft.

Tamara AlShloul conceived and designed the experiments, performed the experiments, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Zahid Iqbal Nezami conceived and designed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Hamid Ali conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Muhammad Asif conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Hanan Aljuaid performed the experiments, analyzed the data, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Shahbaz Ahmad conceived and designed the experiments, analyzed the data, prepared figures and/or tables, and approved the final draft.

Data Availability

The following information was supplied regarding data availability:

The code and data are available in the Supplemental Files.

Funding

The authors received funding from the Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2023R54), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia. The funders had a role in the study design, data collection and analysis, and decision to publish. The funders had no role in the preparation of the manuscript.

1,469 Visitors 1,378 Views 125 Downloads

Your institution may have Open Access funds available for qualifying authors. See if you qualify

Publish for free

Comment on Articles or Preprints and we'll waive your author fee
Learn more

Five new journals in Chemistry

Free to publish • Peer-reviewed • From PeerJ
Find out more