-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
77 lines (71 loc) · 4.99 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
README
-----------------------------------------------------------------------------------------
This file contains a description of the files in this folder and guidelines for using the scripts
with other data.
---------------------------------------------------------------------------------------------------
--COMAND FOR EXECUTING FROM COMAND LINE WINDOWS
-----------------------------------------------------------------------------------------------------
1. Navigate to the \bin subdirectory on your R version directory (C:\Program Files\R\your_R_version_directory \bin)
2. Search & Replace del string U:/20211027ZLC with the name of your directory and run the line below after updating the corresponding directory.
3. Rscript U:/2ECHELON/scenarioASIS_Madrid.R U:/2ECHELON/INPUT/config.csv U:/2ECHELON/INPUT/services.csv U:/2ECHELON/INPUT/facilitiesASIS.csv U:/2ECHELON/INPUT/vehiclesASIS.csv U:/2ECHELON
--------------------------------------------------------------------------------------------------------------------------
--INPUTS
-----------------------------------------------------------------------------------------------------------------------------
args[1] = csv with the config parameteres "U:/2ECHELON/INPUT/config.csv"; the file in the INPUT FOLDER
args[2] = csv with the daily services from the operator "U:/2ECHELON/INPUT/services.csv"; see file in the INPUT FOLDER
args[3] = csv with the daily facilities "U:/2ECHELON/INPUT/facilitiesASIS.csv"; see file in the INPUT FOLDER
args[4] = csv with the daily vehicles "U:/2ECHELON/INPUT/vehiclesASIS.csv"; see file in the INPUT FOLDER
args[5] = working directory "U:/2ECHELON"; to crate the TMP folder and the OUTPUT of the model
-----------------------------------------------------------------------------------------------------------
TESTING REQUIREMENTS
--------------------------------------------------------------------------------------------------------
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.5
year 2021
month 03
day 31
svn rev 80133
language R
version.string R version 4.0.5 (2021-03-31)
nickname Shake and Throw
----------------------------------------------------------------------------------------
ROOT Folder
-----------------------------------------------------------------------------------------
--Shapefile_to_Zone.r: functions for reading geographic data.
--TwoEchelonModel_script.r: functions for calculating the number of vehicles, distance and times
for delivering for one leg (ASIS) and two legs (TOBE) scenarios.
--scenarioASIS_Madrid.r: script for executing the scenario asis and writing the results in a specific document.
The information required is in the INPUT folder and the output will be saved in the OUTPUT folder.
--scenarioTOBE_Madrid:script for executing the scenario asis and writing the results in a specific document.
The information required is in the INPUT folder and the output will be saved in the OUTPUT folder. (NOT WORKING)
--------------------------------------------------------------------------------------------------
INPUT FOLDER
-------------------------------------------------------------------------------------------------
This folder contains the csv with the information provided by the LSP differentiated by scenario.
facilitesASIS.csv: It contains the information of the facility for the asis scenario
facilitiesTOBE.csv: It contains the information of the facilities for the tobe scenario
- First row: characteristics for the first leg.
- Second row: characteristics for the second leg.
facilitesASIS.csv: It contains the information of the vechicle for the asis scenario
facilitiesTOBE.csv: It contains the information of the vechicles for the tobe scenario
- First row: characteristics for the first leg.
- Second row: characteristics for the second leg.
services.csv: It contains the services. It is the same for the TOBE and ASIS scenarios.
--------------------------------------------------------------------------------------------------
OUTPUT FOLDER
--------------------------------------------------------------------------------------------------
This folder will contain the result of executing both scenarios.
testOutputASIS.txt: It will contain a row with the number of vehicles, kms and delivery time for the ASIS scenario.
testOutputTOBE.txt: It will contain two rows:
- First row: number of vehicles, kms and delivery time for the first leg.
- Second row: number of vehicles, kms and delivery time for the second leg.
---------------------------------------------------------------------------------------------------
TEMP FOLDER
---------------------------------------------------------------------------------------------------
Folder for unziping the geographic data of the delivery area in the case of Madrid.
----------------------------------------------------------------------------------------------------