| 343 | } |
| 344 | |
| 345 | void RegionMaker::Copy(RegionMaker& rm) |
| 346 | { |
| 347 | this->init_regions = rm.init_regions; |
| 348 | this->unassignedAreas = rm.unassignedAreas; |
| 349 | this->assignedAreas = rm.assignedAreas; |
| 350 | this->areaNoNeighbor = rm.areaNoNeighbor; |
| 351 | this->area2Region = rm.area2Region; |
| 352 | this->region2Area = rm.region2Area; |
| 353 | this->potentialRegions4Area = rm.potentialRegions4Area; |
| 354 | this->candidateInfo = rm.candidateInfo; |
| 355 | this->objInfo = rm.objInfo; |
| 356 | if (objective_function) { |
| 357 | delete objective_function; |
| 358 | } |
| 359 | this->objective_function = new ObjectiveFunction(n, m, data, w, region2Area); |
| 360 | } |
| 361 | |
| 362 | void RegionMaker::InitFromRegion(std::vector<int>& init_regions) |
| 363 | { |