Skip to content

YuhaoZhang00/MultiMeme_Algorithm_01_Knapsack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Multimeme Memetic Algorithm (MMA) for solving 0-1 Knapsack Problem

by Yuhao Zhang, 2122SPR @ UoN

How to run the algorithm

  1. Modify configurations in \src\com\yuhao\config\Constant.java
    • put the input instance file in correct place (e.g. \resource\test_instance.txt) and configure the path to the input file and output folder
    • configure number of trials, random seeds to use, etc.
    • do parameter tuning (e.g. innovation rate, crossover operator to use, etc.)
    • detailed instruction of parameters can be found in Constant class
  2. Build the whole project
  3. Run main method of CourseworkRunner in \src\com\yuhao\CourseworkRunner.java
  4. The best solution and its objective value per trial can be found in the standard output; while the best/worst objective value of the first MAX_NUMBER_OF_ENTRIES_TO_WRITE loops per trial can be found in the output files

Additional notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages