mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
added test-resources
This commit is contained in:
parent
4be6bba15e
commit
13c4f89b96
2 changed files with 172 additions and 0 deletions
|
|
@ -0,0 +1,74 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2013 Stefan Schroeder
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program 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 General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Stefan Schroeder - initial API and implementation
|
||||||
|
-->
|
||||||
|
<algorithm xmlns="http://www.w3schools.com"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com algorithm_schema.xsd">
|
||||||
|
|
||||||
|
<iterations>2000</iterations>
|
||||||
|
|
||||||
|
<construction>
|
||||||
|
<insertion name="bestInsertion">
|
||||||
|
<allowVehicleSwitch>false</allowVehicleSwitch>
|
||||||
|
</insertion>
|
||||||
|
</construction>
|
||||||
|
|
||||||
|
<strategy>
|
||||||
|
<memory>1</memory>
|
||||||
|
<searchStrategies>
|
||||||
|
<searchStrategy name="radialRuinAndRecreate">
|
||||||
|
<selector name="selectBest"/>
|
||||||
|
<acceptor name="schrimpfAcceptance">
|
||||||
|
<alpha>0.1</alpha>
|
||||||
|
<warmup>20</warmup>
|
||||||
|
</acceptor>
|
||||||
|
<modules>
|
||||||
|
<module name="ruin_and_recreate">
|
||||||
|
<ruin name="randomRuin">
|
||||||
|
<share>0.3</share>
|
||||||
|
</ruin>
|
||||||
|
<insertion name="bestInsertion"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
|
</modules>
|
||||||
|
<probability>0.5</probability>
|
||||||
|
</searchStrategy>
|
||||||
|
|
||||||
|
<searchStrategy name="radialRuinAndRecreate">
|
||||||
|
<selector name="selectBest"/>
|
||||||
|
<acceptor name="schrimpfAcceptance"/>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module name="ruin_and_recreate">
|
||||||
|
<ruin name="radialRuin">
|
||||||
|
<share>0.1</share>
|
||||||
|
</ruin>
|
||||||
|
<insertion name="bestInsertion"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
|
</modules>
|
||||||
|
<probability>.5</probability>
|
||||||
|
</searchStrategy>
|
||||||
|
|
||||||
|
</searchStrategies>
|
||||||
|
</strategy>
|
||||||
|
|
||||||
|
|
||||||
|
</algorithm>
|
||||||
98
jsprit-core/src/test/resources/simpleProblem.xml
Normal file
98
jsprit-core/src/test/resources/simpleProblem.xml
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<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>HOMOGENEOUS</fleetComposition>
|
||||||
|
</problemType>
|
||||||
|
<vehicles>
|
||||||
|
<vehicle>
|
||||||
|
<id>21</id>
|
||||||
|
<typeId>5</typeId>
|
||||||
|
<startLocation>
|
||||||
|
<id>[x=0.0][y=0.0]</id>
|
||||||
|
<coord x="0.0" y="0.0"/>
|
||||||
|
</startLocation>
|
||||||
|
<endLocation>
|
||||||
|
<id>[x=0.0][y=0.0]</id>
|
||||||
|
<coord x="0.0" y="0.0"/>
|
||||||
|
</endLocation>
|
||||||
|
<timeSchedule>
|
||||||
|
<start>14400.0</start>
|
||||||
|
<end>46800.0</end>
|
||||||
|
</timeSchedule>
|
||||||
|
<returnToDepot>true</returnToDepot>
|
||||||
|
</vehicle>
|
||||||
|
<vehicle>
|
||||||
|
<id>19</id>
|
||||||
|
<typeId>3.5</typeId>
|
||||||
|
<startLocation>
|
||||||
|
<id>[x=0.0][y=0.0]</id>
|
||||||
|
<coord x="0.0" y="0.0"/>
|
||||||
|
</startLocation>
|
||||||
|
<endLocation>
|
||||||
|
<id>[x=0.0][y=0.0]</id>
|
||||||
|
<coord x="0.0" y="0.0"/>
|
||||||
|
</endLocation>
|
||||||
|
<timeSchedule>
|
||||||
|
<start>39600.0</start>
|
||||||
|
<end>64800.0</end>
|
||||||
|
</timeSchedule>
|
||||||
|
<returnToDepot>true</returnToDepot>
|
||||||
|
</vehicle>
|
||||||
|
</vehicles>
|
||||||
|
<vehicleTypes>
|
||||||
|
<type>
|
||||||
|
<id>5</id>
|
||||||
|
<capacity-dimensions>
|
||||||
|
<dimension index="0">0</dimension>
|
||||||
|
</capacity-dimensions>
|
||||||
|
<costs>
|
||||||
|
<fixed>0.0</fixed>
|
||||||
|
<distance>1.0</distance>
|
||||||
|
<time>0.0</time>
|
||||||
|
</costs>
|
||||||
|
</type>
|
||||||
|
<type>
|
||||||
|
<id>3.5</id>
|
||||||
|
<capacity-dimensions>
|
||||||
|
<dimension index="0">0</dimension>
|
||||||
|
</capacity-dimensions>
|
||||||
|
<costs>
|
||||||
|
<fixed>0.0</fixed>
|
||||||
|
<distance>1.0</distance>
|
||||||
|
<time>0.0</time>
|
||||||
|
</costs>
|
||||||
|
</type>
|
||||||
|
</vehicleTypes>
|
||||||
|
<services>
|
||||||
|
<service id="2" type="service">
|
||||||
|
<locationId>[x=2000.0][y=0.0]</locationId>
|
||||||
|
<coord x="2000.0" y="0.0"/>
|
||||||
|
<capacity-dimensions>
|
||||||
|
<dimension index="0">0</dimension>
|
||||||
|
</capacity-dimensions>
|
||||||
|
<duration>0.0</duration>
|
||||||
|
<timeWindows>
|
||||||
|
<timeWindow>
|
||||||
|
<start>54000.0</start>
|
||||||
|
<end>64800.0</end>
|
||||||
|
</timeWindow>
|
||||||
|
</timeWindows>
|
||||||
|
</service>
|
||||||
|
<service id="1" type="service">
|
||||||
|
<locationId>[x=1000.0][y=1000.0]</locationId>
|
||||||
|
<coord x="1000.0" y="1000.0"/>
|
||||||
|
<capacity-dimensions>
|
||||||
|
<dimension index="0">0</dimension>
|
||||||
|
</capacity-dimensions>
|
||||||
|
<duration>0.0</duration>
|
||||||
|
<timeWindows>
|
||||||
|
<timeWindow>
|
||||||
|
<start>19800.0</start>
|
||||||
|
<end>21600.0</end>
|
||||||
|
</timeWindow>
|
||||||
|
</timeWindows>
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
|
</problem>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue