Capacitated Facility Location Problem

Usage

Algorithm

Choose a algorithm in main.cpp

// greed(facilityCount, customerCount, facility, customerDemand, customerCost);
hillClimbing(facilityCount, customerCount, facility, customerDemand, customerCost);
// randomGreedy(facilityCount, customerCount, facility, customerDemand, customerCost);
// SA(facilityCount, customerCount, facility, customerDemand, customerCost);

Compile

$ make

Test

$ ./test/test.ps1

Result

Greedy

Random

hillClimbing

SA

Design

Report