This readme file provides an overview of a Python program that aims to solve the 0-1 Knapsack Problem using the Genetic Algorithm. The program follows the principles of SOLID to ensure clean and maintainable code.
The Genetic Algorithm in this scenario consists of the following components:
- Selection Operator: Tournament Selection is used as the selection operator.
- Crossover Operator: Single Point Crossover is used as the crossover operator.
- Mutation Operator: Bit Flip Mutation is used as the mutation operator.
In the 0-1 Knapsack problem implemented in this program, the following attributes are considered for each item:
- Weight
- Size
- Value
To install the required dependencies, please use the package manager pip and run the following command:
pip install -r .\\requirements.txt
Contributions in the form of pull requests are welcome. If you plan to make major changes, please open an issue first to discuss the proposed modifications.
This program is licensed under the MIT License.