Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/urbanclimatefr/knapsack_problem
Simulated Annealing and Tabu Search are selected to solve the 0-1 knapsack problem.
https://github.com/urbanclimatefr/knapsack_problem
artficial-intelligence heuristic-search-algorithms jupyter-notebook knapsack-problem knapsack01 python simulated-annealing simulated-annealing-algorithm tabu-search
Last synced: about 1 month ago
JSON representation
Simulated Annealing and Tabu Search are selected to solve the 0-1 knapsack problem.
- Host: GitHub
- URL: https://github.com/urbanclimatefr/knapsack_problem
- Owner: urbanclimatefr
- Created: 2022-05-22T06:54:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T07:07:48.000Z (over 2 years ago)
- Last Synced: 2024-11-05T14:27:24.551Z (about 2 months ago)
- Topics: artficial-intelligence, heuristic-search-algorithms, jupyter-notebook, knapsack-problem, knapsack01, python, simulated-annealing, simulated-annealing-algorithm, tabu-search
- Language: Jupyter Notebook
- Homepage:
- Size: 573 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 0/1 Knapsack Problem
In this repository, the files are organised as follows:
- .ipynb file is the Jypyter notebook containing the source code in Python.
- .csv file is the input data of the 0/1 knapsack problem.
- Asessment Brief.pdf contains the requirement of the problem.
- report.pdf is the formal report detailing my implementation of the algorithms (Simulated Annealing and Tabu Search), the results of the testing with analysis, and a formal conclusion.Simulated Annealing and Tabu Search are selected to solve the 0-1 knapsack problem because they are metaheuristics that can either avoid or escape the local optima. There are many of real-life applications of the knapsack problem.
For the chosen parameters, Simulated Annealing achieved an average total value of packing in 10 runs of 4413.6, while Tabu Search achieved that of 4378.0. In terms of the mentioned metric, Simulated Annealing is slightly better than Tabu Search.
However, Simulated Annealing is a stochastic algorithm and Tabu Search is, on the other hand, a deterministic algorithm. The performance (total value of packing in each run) of Tabu Search is more stable than that of Simulated Annealing.
In the future, further tuning and trials of parameters can be performed for the current Simulated Annealing and Tabu Search Algorithms.
Parallelised Simulated Annealing algorithm and Quantum Inspired Tabu Search can be applied and implemented on 0-1 knapsack problem.