Skip to content

ak532892/hw-optimization-design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hw-optimization-design

Final Project

Solving the Bounded Knapsack Problem with Genetic Algorithm

  1. Run main.m

Capacity of the knapsack:20
Bounded constraint: for all item ≤3
Generation:50, Population:50
Crossover rate:0.5, Mutation rate:0.1

Demo

  • Knapsack parameter setting from book Computer Algorithms, E. Horowitz, S. Sahni and S. Rajasekaran.
    alt tag

  • The KP solution with 5 times.
    alt tag

  • Convergence test of the GA to solve KP.
    alt tag

  • The KP solution of GA with respect to different population.
    alt tag

  • The KP solution of GA with respect to different mutation rate.
    alt tag

About

Optimization Design:Theories and Applications to Sports Industry and Engineering 105-2: Matlab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published