Closed AhmedSoror closed 3 years ago
@MahmouddAhmed Just to make it easier when integrating the front end, we need to unify the input format. We shall use the same method to read the input in all solvers, and we just modify only that method later on.
You can find the mentioned method named asReadTextFile
in MIP-solver
branch in file solver_MIP.py
.
You will also need to define the global dictionary keys which are used in the method as follows:
Variable | Refers to |
---|---|
str_n = "n" |
Total number of users |
str_dis = "dl" |
Distance limit |
str_cap = "c" |
Capcity per driver |
str_location = "loc" |
Locations of users |
str_pay = "pay" |
The max money passenger i can pay. |
str_fare = "fare" |
Money charged by the driver i per passenger |
str_min_cap = "minc" |
The min number of passengers to travel with the driver |
They are in the same file and you can just copy-paste them ;)
Implement metaheuristic solver