Different algorithms for solving the Set Covering Problem in C. The lsscp.c file contains four constructive heuristics:
- Random constructive heuristic
- Static cost-based heuristic
- Static cover cost-based heuristic
- Adaptive cover cost-based heuristic
Also, iterative best- and first-improvement algorithms are implemented. Redundancy elimination can be applied after the constructive heuristic and after each iteration of the iterative improvement algorithms.
A bash script is included to automatically run the code. This can be done by executing the following command:
./run.sh ./path/to/executable ./path/to/instances ./path/to/output-dir
This script will run all 4 constructive heuristics with and without redundancy elimination, followed by the first and fourth constructive heuristic with the iterative first- and best-improvement algorithms.
This project is part of the course Heuristic Optimization given at VUB and ULB.
by Jens Nevens