Skip to content

Experiments

Martín Costabal edited this page Jul 30, 2020 · 3 revisions

Experiments Folder and Module

In this page, we explain the module Experiments.py located in the Instances folder. Also, the Experiments folder contains the files associated to each experiment.

Experiments

The Experiments (in the file Experiments.py inside Instances folder) class is intended for storing the several instances that are to be executed and other parameters, such as the time limit of each instance.

To initialize an Experiment requires a path towards a file containing the information of the data files (see the format below) and a time limit. Finally executing the method runSeveral all these instances are executed. The parameters of each instance can be modified inside the method.

The Experiment Folder and Files

In the Experiments folder, two files can be seen:

  • exptest.txt
  • testbed1.txt

both files have the following line structure:

PTYPE FOLDER FILENAME

where:

  • PTYPE: Stands for the type of problem, this can be IRP, VRP, IRPCS, MVRPD or OISRC.
  • FOLDER: This is the folder containing the .dat file (the file containing the data of the instance), see the folders inside the Instances folder (for example IRPCSInstances).
  • FILENAME: The name of the data file (inst1.txt in the IRPCSInstances of the previous example).

To execute any of these files, you can run from console the following command:

python Experiments.py exptest.txt

Clone this wiki locally