https://github.com/pwalig/ok_projekt
Solver for Multiple Knapsack Problem Variations
https://github.com/pwalig/ok_projekt
college-assignment college-project combinatorial-optimization cplusplus cpp knapsack-problem knapsack-problem-dynamic knapsack-problem-greedy knapsack-solver
Last synced: 3 months ago
JSON representation
Solver for Multiple Knapsack Problem Variations
- Host: GitHub
- URL: https://github.com/pwalig/ok_projekt
- Owner: pwalig
- Created: 2023-11-28T19:57:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T23:00:17.000Z (over 2 years ago)
- Last Synced: 2025-02-13T17:43:07.926Z (about 1 year ago)
- Topics: college-assignment, college-project, combinatorial-optimization, cplusplus, cpp, knapsack-problem, knapsack-problem-dynamic, knapsack-problem-greedy, knapsack-solver
- Language: C++
- Homepage:
- Size: 337 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OK_Projekt
Solver for multiple Knapsack problem variants.
> [!WARNING]
> Project discontinued!
>
> See the successor: [graphsack](https://github.com/pwalig/graphsack)
## Status
Project discontinued in favour of [graphsack](https://github.com/pwalig/graphsack).
### Done
- Brute Force Methods
- Primitive Branch and Bound Methods
- Greedy algorithms
- Dynamic Programming
- measure calculation time
- json format support
- Heuristics
### Missing
- Multi threading
- GPU support
## Problems solved by OK_Project
- Multi dimentional knapsack problem, but items are given as a graph, where each vertex in the graph is an item to pack. The problem is to find either path, cycle or tree in this graph, that fits in the knapsack and has maximum value.
- [Knapsack Problem](https://en.wikipedia.org/wiki/Knapsack_problem)
- [Multi Dimentional Knapsack Problem](https://en.wikipedia.org/wiki/Knapsack_problem#Multi-dimensional_knapsack_problem)
## Using
OK_Project uses:
- C++ language
- [nlohmann/json](https://github.com/nlohmann/json) JSON parser for Modern C++
## Usage
For full usage and building instructions checkout [wiki](https://github.com/pwalig/OK_Projekt/wiki).
## Building
```
git clone https://github.com/pwalig/OK_Project.git
cd OK_Project
g++ -std=c++17 -g code/*cpp -o knapsack-solver.exe
```