code/Solution.hpp
// Construct an instance from an instance file.
// <Param>
//		int &facilityNum: number of facilities
//      int &customerNum: number of customers
// </Param>
Construct an instance from an instance file.

int &facilityNum: number of facilities
int &customerNum: number of customers

Construct an instance from an instance file . int &facilityNum : number of facilities int &customerNum : number of customers
Solution::Solution(int &facilityNum, int &customerNum) {
    this->allocate.resize(customerNum);
    for (int i = 0; i < customerNum; ++i) {
        this->allocate[i] = 1 + rand() % facilityNum;
    }
    this->serving.resize(facilityNum);
}
Solution :: Solution ( int & facilityNum , int & customerNum ) { this -> allocate . resize ( customerNum ) ; for ( int i = 0 ; i < customerNum ; ++ i ) { this -> allocate [ i ] = 1 + rand ( ) % facilityNum ; } this -> serving . resize ( facilityNum ) ; }
Construct an instance from an instance file.
Construct an instance from an instance file .