To build and execute the script you need a goLang release. You can download it from the official site: https://golang.org/dl/ .
The GOPATH environment variable specifies the location of your workspace and it must be properly set. The project directory "orderSchedulingAlgorithm" must be contained in GOPATH/src directory. To get details on how to set the GOPATH environment variable read the official documentation at the section "The GOPATH environment variable" at https://golang.org/doc/code.html
After the installation of the go compiler to execute the script navigate into the project directory "orderSchedulingAlgorithm" .
NOTE The input csv files must be placed in the orderSchedulingAlgorithm/input directory.
go build .
./orderSchedulingAlgorithm
Typical usage:
Optionally you can specify flags value to use different files containing the distance matrix and the delivery times vector.
Usage: orderSchedulingAlgorithm [-i] [-d value] [-m value] [-n value] [-t value] [parameters ...]
-i, --debug execute in debug mode: Extra output info
-d, --distanceMat=value
distance matrix filename
-m, --nmover=value
number of movers
-n, --nOrder=value
number of orders
-t, --deliveryTimes=value
delivery times vector filename
Example
To execute the solver with 205 orders and 20 movers:
go build .
./orderSchedulingAlgorithm -m 20 -n 205 --distanceMat=distanceMatrix_ist3.csv --deliveryTimes=delivertTime_ist3.csv
Following the current implementation the given options are the defaults ones. Then the command above is equal to:
go build .
./orderSchedulingAlgorithm
Benchmarks
The files "deliveryTime_ist3.csv" and "distanceMatrix_ist3.csv" must be present in the "input" directory. We perform measurement on 20, 30, 34 and 38 mover with 205 orders.
To execute benchmarks:
go test -test.bench .