code/Solution.hpp
// Construct an instance from an instance file.
// <Param>
//      vector<int> &v: array of allocations
//		int &facilityNum: number of facilities
// </Param>
Construct an instance from an instance file.

vector &v: array of allocations
int &facilityNum: number of facilities

Construct an instance from an instance file . vector &v : array of allocations int &facilityNum : number of facilities
Solution::Solution(vector<int> &v, int facilityNum) {
    int size = v.size();
    this->allocate.resize(size);
    for (int i = 0; i < size; ++i) {
        this->allocate[i] = v[i];
    }
    this->serving.resize(facilityNum);
}
Solution :: Solution ( vector < int > & v , int facilityNum ) { int size = v . size ( ) ; this -> allocate . resize ( size ) ; for ( int i = 0 ; i < size ; ++ i ) { this -> allocate [ i ] = v [ i ] ; } this -> serving . resize ( facilityNum ) ; }
Construct an instance from an instance file.
Construct an instance from an instance file .