Changes between Version 27 and Version 28 of BluePrint/VehicleRouting


Ignore:
Timestamp:
12/29/14 18:24:39 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrint/VehicleRouting

    v27 v28  
    7777The main method of this module is present at: https://github.com/wolfshadow18/Vehicle-Routing-Problem/blob/master/Sahana-Final/Sahana/examples/sources/src/main/java/org/optaplanner/examples/vehiclerouting/app/VehicleRoutingApp.java
    7878
    79 This main method takes an argument, which is a path for an unsolved Capacitated Vehicle Routing Problem, which is in the form of a XML file.
     79This main method takes an argument, which is a path for an unsolved Capacitated Vehicle Routing Problem, which is in the form of an XML file.
    8080
    8181Examples of unsolved XML files, can be seen here: https://github.com/wolfshadow18/Vehicle-Routing-Problem/tree/master/Sahana-Final/Sahana/examples/data/vehiclerouting
     
    8686- Customer List (Stating the Demand of each of the locations)
    8787
    88 When such a XML file, is passed to the module, it returns back, a Solved XML file, which is stored in the same directory as the unsolved file, which was passed earlier, with the prefix – “solved-”
     88When such an XML file is passed to the module it returns back a Solved XML file, which is stored in the same directory as the unsolved file, which was passed earlier, with the prefix – “solved-”
    8989This XML file, has to be parsed by the modules in Sahana, and should be utilised upon.
    9090The final Solved file, diagrammatically, looks similar to this. This Solved file, tells which Vehicle should go to which Location(s), in which order. Such an example, can be seen here: https://github.com/wolfshadow18/Vehicle-Routing-Problem/blob/master/Sahana-Final/Sahana/examples/data/vehiclerouting/solved-cvrp-72customers.xml
     
    9494
    9595To Test the module, please perform the following steps.
    96 -       Download a copy of the module, which is currently being hosted at, https://github.com/wolfshadow18/Vehicle-Routing-Problem/
    97 -       Download IntelliJ Idea/ Netbeans. It is recommended to use the former.
    98 -       Open pom.xml, which is located at examples/sources/ from the IDE
    99 -       While setting up for the first time, it may take some time, as it needs to download its Maven dependencies.
    100 -       After which, set up a Run configuration, for this project. Please look at the image below. The program arguments, should ideally contain the path of the unsolved file, that you wish to pass to the module.
     96* Download a copy of the module, which is currently being hosted at, https://github.com/wolfshadow18/Vehicle-Routing-Problem/
     97* Download IntelliJ Idea/ Netbeans. It is recommended to use the former.
     98* Open pom.xml, which is located at examples/sources/ from the IDE
     99* While setting up for the first time, it may take some time, as it needs to download its Maven dependencies.
     100* After which, set up a Run configuration, for this project. Please look at the image below. The program arguments, should ideally contain the path of the unsolved file, that you wish to pass to the module.
    101101
    102102[[Image(https://raw.githubusercontent.com/wolfshadow18/Vehicle-Routing-Problem/master/Run%20Configuration.png)]]
    103103 
    104104
    105 -       Go to Sahana/examples/sources/src/main/java/org/optaplanner/examples/vehiclerouting/app/VehicleRoutingApp.java, and run the project.
    106 -       Troubleshooting:  In case, an error such as- “The working directory should be set to the directory that contains the data directory (which is not the data directory itself) “ pops up, please check whether your working directory is the same as mentioned above.
    107 -       You would notice that, in the console, the program has started running, typically, for testing purposes; the running time of the module has been limited to 1 minute. However, this can be increased, by changing, /examples/sources/src/main/resources/org/optaplanner/examples/vehiclerouting/solver/vehicleRoutingSolverConfig.xml
    108 -       In this file, find the attribute minutesTimeSpent, and change it to a positive integer. This can be done whenever necessary as all the attributes of this file, have methods in which they can be accessed.
     105* Go to Sahana/examples/sources/src/main/java/org/optaplanner/examples/vehiclerouting/app/VehicleRoutingApp.java, and run the project.
     106* Troubleshooting:  In case, an error such as- “The working directory should be set to the directory that contains the data directory (which is not the data directory itself) “ pops up, please check whether your working directory is the same as mentioned above.
     107* You would notice that, in the console, the program has started running, typically, for testing purposes; the running time of the module has been limited to 1 minute. However, this can be increased, by changing, /examples/sources/src/main/resources/org/optaplanner/examples/vehiclerouting/solver/vehicleRoutingSolverConfig.xml
     108* In this file, find the attribute minutesTimeSpent, and change it to a positive integer. This can be done whenever necessary as all the attributes of this file, have methods in which they can be accessed.
    109109
    110  Few points to be noted:
     110Few points to be noted:
    111111
    112112- As solving time of the problem is increased, more efficient results can be obtained.