This package implements the bounded max-sum algorithm used for the experiments in the paper 
“Bounded approximate decentralised coordination via the max-sum algorithm”
by Alex Rogers, Alessandro Farinelli, Ruben Stranders, and Nicholas R. Jennings.
Artif. Intell., vol. 175, no. 2, 2011, pp. 730-759.

We advocate the use of maven and eclipse to modify/compile and execute.

Using Eclipse:
  - set as source folder the folder "src/main/java" 
  - include in the Build Path the jar files in the lib directory as external jars. 
Once you do that the project should compile 

Using Maven:
  - install the maxsum.jar file by typing the command: " mvn install:install-file -Dfile=lib/maxsum.jar -DgroupId=max-sum -DartifactId=max-sum -Dversion=1 -Dpackaging=jar"
  - type mvn clean; mvn compile

To run an example, you should launch the main method of boundedmaxsum/BoundedMaxSumLinkExperiments.java giving as first argument the name of a file that specifies a COP (the file Problem-GraphColor-8_3_3_0.4_r9.COP is provided). 
To do that from the command line type the following command:
"cd target/classes/"
"java -classpath .:../../lib/maxsum.jar  boundedmaxsum/BoundedMaxSumLinkExperiments Problem-GraphColor-8_3_3_0.4_r9.COP"

For any question you can get in contact with Alessandro Farinelli (alessandro.farinelli@univr.it).


