A program designed to find optimal solution for playlist scheduling using genetic algorithm.
Part of coursework for Soft Computing under the guidance of Dr. Shampa Chakraverty.
The following are given about the system :
a) The duration of songs
b) Suitability[i][j] representing the suitability of activity j given song i is being played
The following objectives needs to be fulfilled :
a) The total value needs to be maximized.
b) The number of switchovers between activities must be minimized.
c) The number of distinct activities must be maximized.
The following is/are the constraints :
a) Switchover Time is 10 minutes
echo | cpp -fopenmp -dM | grep -i open
The command should display something like :
#define _OPENMP 201511
201511 means : year 2015, month November(11)
To specify the number of parallel threads for open mp
export OMP_NUM_THREADS=<omp_num_threads>
Compile the code
g++ -std=c++11 ga.cpp -fopenmp -o ga
Run the code
./ga <population_size>