mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
233 lines
7.8 KiB
XML
233 lines
7.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~ Copyright (C) 2014 Stefan Schroeder
|
|
~
|
|
~ This library is free software; you can redistribute it and/or
|
|
~ modify it under the terms of the GNU Lesser General Public
|
|
~ License as published by the Free Software Foundation; either
|
|
~ version 3.0 of the License, or (at your option) any later version.
|
|
~
|
|
~ This library is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
~ Lesser General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU Lesser General Public
|
|
~ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
|
|
|
|
<problem xmlns="http://www.w3schools.com"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.w3schools.com vrp_xml_schema.xsd">
|
|
<problemType>
|
|
<fleetSize>FINITE</fleetSize>
|
|
<fleetComposition>HETEROGENEOUS</fleetComposition>
|
|
</problemType>
|
|
|
|
<vehicles>
|
|
<vehicle>
|
|
<id>v1</id>
|
|
<location>
|
|
<id>depotLoc2</id>
|
|
<coord x="100.0" y="100.0"/>
|
|
</location>
|
|
<typeId>vehType</typeId>
|
|
<timeSchedule>
|
|
<start>0.0</start>
|
|
<end>1000.0</end>
|
|
</timeSchedule>
|
|
<skills>skill1; SKill2</skills>
|
|
</vehicle>
|
|
<vehicle>
|
|
<id>v2</id>
|
|
<location>
|
|
<id>depotLoc</id>
|
|
<coord x="10.0" y="100.0"/>
|
|
</location>
|
|
<returnToDepot>false</returnToDepot>
|
|
<typeId>vehType2</typeId>
|
|
<timeSchedule>
|
|
<start>0.0</start>
|
|
<end>1000.0</end>
|
|
</timeSchedule>
|
|
</vehicle>
|
|
<vehicle>
|
|
<id>v3</id>
|
|
<startLocation>
|
|
<id>startLoc</id>
|
|
<coord x="10.0" y="100.0"/>
|
|
</startLocation>
|
|
<endLocation>
|
|
<id>endLoc</id>
|
|
<coord x="1000.0" y="2000.0"/>
|
|
</endLocation>
|
|
<typeId>vehType2</typeId>
|
|
<timeSchedule>
|
|
<start>0.0</start>
|
|
<end>1000.0</end>
|
|
</timeSchedule>
|
|
</vehicle>
|
|
<vehicle>
|
|
<id>v4</id>
|
|
<location>
|
|
<id>startLoc</id>
|
|
<coord x="10.0" y="100.0"/>
|
|
</location>
|
|
<endLocation>
|
|
<id>endLoc</id>
|
|
<coord x="1000.0" y="2000.0"/>
|
|
</endLocation>
|
|
<typeId>vehType2</typeId>
|
|
<timeSchedule>
|
|
<start>0.0</start>
|
|
<end>1000.0</end>
|
|
</timeSchedule>
|
|
</vehicle>
|
|
<vehicle>
|
|
<id>v5</id>
|
|
<location>
|
|
<id>startLoc</id>
|
|
<coord x="10.0" y="100.0"/>
|
|
</location>
|
|
<endLocation>
|
|
<id>endLoc</id>
|
|
<coord x="1000.0" y="2000.0"/>
|
|
</endLocation>
|
|
<typeId>vehType3</typeId>
|
|
<timeSchedule>
|
|
<start>0.0</start>
|
|
<end>1000.0</end>
|
|
</timeSchedule>
|
|
</vehicle>
|
|
</vehicles>
|
|
<vehicleTypes>
|
|
<type>
|
|
<id>vehType</id>
|
|
<capacity-dimensions>
|
|
<dimension index="0">20</dimension>
|
|
</capacity-dimensions>
|
|
<costs>
|
|
<fixed>0.0</fixed>
|
|
<distance>0.0</distance>
|
|
<time>0.0</time>
|
|
</costs>
|
|
</type>
|
|
<type>
|
|
<id>vehType2</id>
|
|
<capacity>200</capacity>
|
|
<costs>
|
|
<fixed>0.0</fixed>
|
|
<distance>0.0</distance>
|
|
<time>0.0</time>
|
|
</costs>
|
|
</type>
|
|
<type>
|
|
<id>vehType3</id>
|
|
<capacity-dimensions>
|
|
<dimension index="0">100</dimension>
|
|
<dimension index="1">1000</dimension>
|
|
<dimension index="2">10000</dimension>
|
|
<dimension index="10">100000</dimension>
|
|
</capacity-dimensions>
|
|
<costs>
|
|
<fixed>0.0</fixed>
|
|
<distance>0.0</distance>
|
|
<time>0.0</time>
|
|
</costs>
|
|
</type>
|
|
</vehicleTypes>
|
|
|
|
<services>
|
|
<service id="1" type="service">
|
|
<locationId>j(1,5)</locationId>
|
|
<name>cleaning</name>
|
|
<coord x="10.0" y="10.0"/>
|
|
<capacity-dimensions>
|
|
<dimension index="0">1</dimension>
|
|
</capacity-dimensions>
|
|
<duration>10.0</duration>
|
|
<timeWindows>
|
|
<timeWindow>
|
|
<start>0.0</start>
|
|
<end>4000.0</end>
|
|
</timeWindow>
|
|
</timeWindows>
|
|
<requiredSkills>skill1, Skill2</requiredSkills>
|
|
</service>
|
|
|
|
<service id="2" type="service">
|
|
<locationId>i(3,9)</locationId>
|
|
<name>cleaning</name>
|
|
<coord x="10.0" y="10.0"/>
|
|
<capacity-demand>1</capacity-demand>
|
|
<duration>0.0</duration>
|
|
<timeWindows>
|
|
<timeWindow>
|
|
<start>0.0</start>
|
|
<end>4000.0</end>
|
|
</timeWindow>
|
|
</timeWindows>
|
|
</service>
|
|
|
|
</services>
|
|
|
|
<shipments>
|
|
<shipment id="3">
|
|
<name>deliver-smth</name>
|
|
<pickup>
|
|
<locationId>i(3,9)</locationId>
|
|
<coord x="10.0" y="10.0"/>
|
|
<duration>10.0</duration>
|
|
<timeWindows>
|
|
<timeWindow>
|
|
<start>1000.0</start>
|
|
<end>4000.0</end>
|
|
</timeWindow>
|
|
</timeWindows>
|
|
</pickup>
|
|
<delivery>
|
|
<locationId>i(9,9)</locationId>
|
|
<coord x="10.0" y="0.0"/>
|
|
<duration>100.0</duration>
|
|
<timeWindows>
|
|
<timeWindow>
|
|
<start>6000.0</start>
|
|
<end>10000.0</end>
|
|
</timeWindow>
|
|
</timeWindows>
|
|
</delivery>
|
|
<capacity-dimensions>
|
|
<dimension index="0">10</dimension>
|
|
</capacity-dimensions>
|
|
<requiredSkills>skill1, Skill2</requiredSkills>
|
|
</shipment>
|
|
|
|
<shipment id="4">
|
|
<pickup>
|
|
<coord x="10.0" y="10.0"/>
|
|
<timeWindows>
|
|
<timeWindow>
|
|
<start>1000.0</start>
|
|
<end>4000.0</end>
|
|
</timeWindow>
|
|
</timeWindows>
|
|
</pickup>
|
|
<delivery>
|
|
<coord x="10.0" y="0.0"/>
|
|
<duration>100.0</duration>
|
|
<timeWindows>
|
|
<timeWindow>
|
|
<start>6000.0</start>
|
|
<end>10000.0</end>
|
|
</timeWindow>
|
|
</timeWindows>
|
|
</delivery>
|
|
<capacity-dimensions>
|
|
<dimension index="0">10</dimension>
|
|
</capacity-dimensions>
|
|
<name>deliver-smth</name>
|
|
</shipment>
|
|
|
|
</shipments>
|
|
</problem>
|