This is the source code and dataset for the paper PRUC: P-Regions with User-Defined Constraint.
The code is written in Java 14. The original developing platform is IntelliJ IDEA. The maven version is 3.6.3. pom.xml stores all the denpencies for this project.
The following provides a quick way to run the code and reproduce the experimental results in command line. First switch to the project directory run -mvn compile to compile the java source classes, which gives the following output.
Then, type -mvn exec:java -Dexec.mainClass=test.TestGeneral to run the main class in the project, and the experiments will be run sequentially. The following is an example.
The util package stores the common Class that are used among all the methods. The GSLO package stores all the Class related to Global Search and Local Optimization. The baseline package stores our baseline competitors, it is further divided into greedy, SKATER and SKATERCON.
The datasets used in experiment come from two sources, TIGER/Line Shapefile dataset and 2000 Health, Income and Diversity dataset. The original datasets are slightly modified by removing the island areas. The diversity folder under DataFile folder refers to the 2000 Health, Income and Diversity dataset. All other datasets are from TIGER/Line Shapefile dataset. Different states in TIGER/Line Shapefile dataset are merged to form larger datasets.
If you have any question with this project, please feel free to reach me by yliu786 [at] ucr.edu