-
Notifications
You must be signed in to change notification settings - Fork 0
Experiments
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.
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.
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.datfile (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.txtin 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