Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] How to generate K Shortest path

Dear Sir,
I have used following :

duarouter --net-file "D:\SHARE\Backup Ant colony code for Phd\2_1_2020\first_project\Dijkstra1.net.xml" --output-file square2_trips_small.rou.xml -
-trip-files "D:\SHARE\Backup Ant colony code for Phd\2_1_2020\first_project\trips.trips.xml" --begin 0 --end 10000000000 --route-steps 200 --ignore-errors --max-alternatives 5 --route-choic
e-method logit  --routing-algorithm dijkstra --routing-threads 0 --seed 23423


But it generates Single route :

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
    <vehicle id="0" depart="0.00">
        <routeDistribution last="0">
            <route cost="96.52" probability="1.00000000" edges="1 3 6"/>
        </routeDistribution>
    </vehicle>
</routes>

I am expecting that it would generates all the available route and its cost. Please help.

--
:)
Bijal Varia

Back to the top