Skip to content

Getting Started

svissicchio edited this page May 14, 2018 · 8 revisions

Please, refer to the following instructions to download the source files, and build/install REPETITA.

First, clone the repository on your system, using:

$ git clone https://github.com/svissicchio/Repetita.git

Enter the Repetita folder created inside your current directory.

$ cd Repetita

Next, compile the source code.

$ ./compile

The compilation command downloads the code dependencies and compiles the source files. Under the hood, the command runs sbt: It will therefore preventively check for sbt to be installed on your machine. If not, it will ask you to install it.

Also, to run LP/MIP based solvers, you'll have to install gurobi Gurobi. After installation, you'll also have to copy gurobi.jar inside lib/ in the repetita directory. Please, install Gurobi before compiling; otherwise, the ./compile script will return a compilation error and will require you to perform those steps.

If the compilation is successful, you can already try repetita. For example, the following command uses the DEFO algorithm to optimize the Abilene topology

$ ./repetita -graph data/2016TopologyZooUCL_inverseCapacity/Abilene.graph -demands data/2016TopologyZooUCL_inverseCapacity/Abilene.0000.demands -solver defoCP -t 10 -scenario SingleSolverRun

For more information on how to use repetita, please type

$ ./repetita -h
Clone this wiki locally