sources/JobAssignment.cpp
/**
 * Fills the 2D costs vector with random numbers between 1 and max minus 1.
 * 
 * @param[in] &costs the address in memory of the 2D vector that 
 *      represents the costs of each job per worker
 * @param[in] jobs the number of jobs
 * @param[in] max the maximum cost that a job can have
*/
Fills the 2D costs vector with random numbers between 1 and max minus 1.

@param[in] &costs the address in memory of the 2D vector that
represents the costs of each job per worker
@param[in] jobs the number of jobs
@param[in] max the maximum cost that a job can have
Fills the 2D costs vector with random numbers between 1 and max minus 1 . @param [ in ] &costs the address in memory of the 2D vector that represents the costs of each job per worker @param [ in ] jobs the number of jobs @param [ in ] max the maximum cost that a job can have
void fillCosts(vector<vector<int>> &costs, int jobs, int max){
    srand(time(0));
    for (int row = 0; row < jobs; row++){
        for (int col = 0; col < jobs; col++){
            costs[row][col] = rand() % (max - 1) + 1;
        }
    }
}
void fillCosts ( vector < vector < int > > & costs , int jobs , int max ) { srand ( time ( 0 ) ) ; for ( int row = 0 ; row < jobs ; row ++ ) { for ( int col = 0 ; col < jobs ; col ++ ) { costs [ row ] [ col ] = rand ( ) % ( max - 1 ) + 1 ; } } }
Fills the 2D costs vector with random numbers between 1 and max minus 1.
Fills the 2D costs vector with random numbers between 1 and max minus 1 .
/**
     * Seed that will make sure different random numbers are generated 
     * every time the program runs.
    */ // Iterate over all the rows of the 2D vector // Iterate over all the columns of the 2D vector /**
             * Assigns a random number between 1 and max minus 1 to the current 
             * spot in the 2D vector.
            */ //Close for //Close for