Dear all,
I messed around with the macro assignment methods in tools/assign
and it seems that entire parts of the Assignment.py script and the
imported module are no longer functional.

Here are some issues I came across:
- using the -v option the function net.getfullEdgeCounts() does not find the attribute _fullEdges ...and in fact it is nowhere initialized or set.

- using the -+ boost option reveals that there is a module "boost" missing, containing the boost graph, which is rather fundamental. I checked if it expects the networkx package to be installed but it does not contain a boost graph either.

- using the  -+ plain option produces a float division error

I finally gave up but I thought it is worth to drop a line because
the script is still described in http://sumo-sim.org/userdoc/Tools/Assign.html


So please just let me know if this script is no longer maintained or if I am completely missing something. I am using the latest Ubuntu distribution. The simple test network and log is attached.

Thanks for any advise.

Joerg

P.S clm:
sudo ./Assignment.py -e clogit -i 10 -d /home/joerg/projects/sumopy/scenarios/assign/ass.taz.xml -m /home/joerg/projects/sumopy/scenarios/assign/ass.visum.txt -n /home/joerg/projects/sumopy/scenarios/assign/ass.net.xml -+ plain -O /home/joerg/projects/sumopy/scenarios/assign


--
Joerg Schweizer
University of Bologna
DICAM-Trasportation Group
Viale Risorgimento, 2
40136 Bologna, Italy
Tel: +39 051 209 3338
Fax: +39 051 209 3337
E-mail: [email protected]
The stochastic user equilibrium traffic assignment will be executed with the 
clogit model.
All vehicular releasing times are determined randomly(uniform).
- Reading network: done.
number of total startVertices:2
number of total endVertices:2
- Initial calculation of link parameters : done.
Reading matrix and O-D zones: done.
Matrix und OD Zone already read for Interval:0
CurrentMatrixSum:21.0
number of current startVertices:2
number of current endVertices:2
- SUE iteration:1
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Thu Sep 19 02:27:22 2013 by SUMO netconvert Version 0.16.0
<?xml version="1.0" encoding="UTF-8"?>

<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.sf.net/xsd/netconvertConfiguration.xsd";>

    <input>
        <sumo-net-file value="/home/joerg/projects/sumopy/scenarios/gen/gen02.net.xml.tmp"/>
    </input>

    <output>
        <output-file value="/home/joerg/projects/sumopy/scenarios/gen/gen02.net.xml"/>
    </output>

    <processing>
        <no-turnarounds value="true"/>
        <offset.disable-normalization value="true"/>
    </processing>

    <report>
        <verbose value="true"/>
    </report>

</configuration>
-->

<net version="0.13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.sf.net/xsd/net_file.xsd";>

    <location netOffset="0.00,0.00" convBoundary="0.00,0.00,100.00,100.00" origBoundary="0.00,0.00,100.00,100.00" projParameter="!"/>

    <edge id=":0/0_0" function="internal">
        <lane id=":0/0_0_0" index="0" speed="13.90" length="7.90" shape="-1.65,3.25 -1.34,1.11 -0.42,-0.42 1.11,-1.34 3.25,-1.65"/>
    </edge>
    <edge id=":0/0_1" function="internal">
        <lane id=":0/0_1_0" index="0" speed="13.90" length="2.58" shape="3.25,1.65 2.55,1.75 2.05,2.05 1.75,2.55 1.65,3.25"/>
    </edge>
    <edge id=":0/1_0" function="internal">
        <lane id=":0/1_0_0" index="0" speed="13.90" length="14.60" shape="4.29,101.65 1.69,100.91 -0.17,98.70 -1.28,95.02 -1.65,89.87"/>
    </edge>
    <edge id=":0/1_1" function="internal">
        <lane id=":0/1_1_0" index="0" speed="13.45" length="6.95" shape="1.65,89.87 1.89,92.11 2.60,93.10 3.78,92.83 5.44,91.30"/>
    </edge>
    <edge id=":0/1_2" function="internal">
        <lane id=":0/1_2_0" index="0" speed="13.90" length="9.47" shape="1.65,89.87 1.81,93.58 2.31,96.23 3.13,97.82 4.29,98.35"/>
    </edge>
    <edge id=":1/0_0" function="internal">
        <lane id=":1/0_0_0" index="0" speed="13.90" length="8.54" shape="98.35,5.48 97.94,3.81 96.70,2.61 94.63,1.89 91.74,1.65"/>
    </edge>
    <edge id=":1/0_1" function="internal">
        <lane id=":1/0_1_0" index="0" speed="13.90" length="13.82" shape="91.74,-1.65 96.08,-1.20 99.17,0.13 101.03,2.36 101.65,5.48"/>
    </edge>
    <edge id=":1/0_2" function="internal">
        <lane id=":1/0_2_0" index="0" speed="13.45" length="6.23" shape="93.55,5.42 94.57,3.77 94.61,2.59 93.66,1.89 91.74,1.65"/>
    </edge>
    <edge id=":1/1_0" function="internal">
        <lane id=":1/1_0_0" index="0" speed="13.90" length="7.90" shape="101.65,96.75 101.34,98.89 100.43,100.43 98.89,101.34 96.75,101.65"/>
    </edge>
    <edge id=":1/1_1" function="internal">
        <lane id=":1/1_1_0" index="0" speed="13.90" length="2.58" shape="96.75,98.35 97.45,98.25 97.95,97.95 98.25,97.45 98.35,96.75"/>
    </edge>

    <edge id="0/0to0/1" from="0/0" to="0/1" priority="-1">
        <lane id="0/0to0/1_0" index="0" speed="13.90" length="86.62" shape="1.65,3.25 1.65,89.87"/>
    </edge>
    <edge id="0/0to1/0" from="0/0" to="1/0" priority="-1">
        <lane id="0/0to1/0_0" index="0" speed="13.90" length="88.49" shape="3.25,-1.65 91.74,-1.65"/>
    </edge>
    <edge id="0/1_to_1/0" from="0/1" to="1/0" priority="-1" shape="0.00,100.00 42.72,51.32 65.67,26.36 87.75,15.31 100.00,0.00">
        <lane id="0/1_to_1/0_0" index="0" speed="13.00" length="124.50" shape="5.44,91.30 41.48,50.23 64.66,25.02 86.69,14.00 93.55,5.42"/>
    </edge>
    <edge id="0/1to0/0" from="0/1" to="0/0" priority="-1">
        <lane id="0/1to0/0_0" index="0" speed="13.90" length="86.62" shape="-1.65,89.87 -1.65,3.25"/>
    </edge>
    <edge id="0/1to1/1" from="0/1" to="1/1" priority="-1">
        <lane id="0/1to1/1_0" index="0" speed="13.90" length="92.46" shape="4.29,98.35 96.75,98.35"/>
    </edge>
    <edge id="1/0to0/0" from="1/0" to="0/0" priority="-1">
        <lane id="1/0to0/0_0" index="0" speed="13.90" length="88.49" shape="91.74,1.65 3.25,1.65"/>
    </edge>
    <edge id="1/0to1/1" from="1/0" to="1/1" priority="-1">
        <lane id="1/0to1/1_0" index="0" speed="13.90" length="91.27" shape="101.65,5.48 101.65,96.75"/>
    </edge>
    <edge id="1/1to0/1" from="1/1" to="0/1" priority="-1">
        <lane id="1/1to0/1_0" index="0" speed="13.90" length="92.46" shape="96.75,101.65 4.29,101.65"/>
    </edge>
    <edge id="1/1to1/0" from="1/1" to="1/0" priority="-1">
        <lane id="1/1to1/0_0" index="0" speed="13.90" length="91.27" shape="98.35,96.75 98.35,5.48"/>
    </edge>

    <junction id="0/0" type="dead_end" x="0.00" y="0.00" incLanes="0/1to0/0_0 1/0to0/0_0" intLanes=":0/0_0_0 :0/0_1_0" shape="-3.25,3.25 3.25,3.25 3.25,-3.25"/>
    <junction id="0/1" type="dead_end" x="0.00" y="100.00" incLanes="1/1to0/1_0 0/0to0/1_0" intLanes=":0/1_0_0 :0/1_1_0 :0/1_2_0" shape="4.29,103.25 4.29,96.75 6.64,92.35 4.24,90.24 3.25,89.87 -3.25,89.87"/>
    <junction id="1/0" type="dead_end" x="100.00" y="0.00" incLanes="1/1to1/0_0 0/0to1/0_0 0/1_to_1/0_0" intLanes=":1/0_0_0 :1/0_1_0 :1/0_2_0" shape="96.75,5.48 103.25,5.48 91.74,-3.25 91.74,3.25 92.30,4.42 94.80,6.42"/>
    <junction id="1/1" type="dead_end" x="100.00" y="100.00" incLanes="1/0to1/1_0 0/1to1/1_0" intLanes=":1/1_0_0 :1/1_1_0" shape="103.25,96.75 96.75,96.75 96.75,103.25"/>

    <connection from="0/0to0/1" to="0/1_to_1/0" fromLane="0" toLane="0" via=":0/1_1_0" dir="r" state="M"/>
    <connection from="0/0to0/1" to="0/1to1/1" fromLane="0" toLane="0" via=":0/1_2_0" dir="R" state="M"/>
    <connection from="0/0to1/0" to="1/0to1/1" fromLane="0" toLane="0" via=":1/0_1_0" dir="l" state="M"/>
    <connection from="0/1_to_1/0" to="1/0to0/0" fromLane="0" toLane="0" via=":1/0_2_0" dir="r" state="m"/>
    <connection from="0/1to0/0" to="0/0to1/0" fromLane="0" toLane="0" via=":0/0_0_0" dir="l" state="M"/>
    <connection from="0/1to1/1" to="1/1to1/0" fromLane="0" toLane="0" via=":1/1_1_0" dir="r" state="M"/>
    <connection from="1/0to0/0" to="0/0to0/1" fromLane="0" toLane="0" via=":0/0_1_0" dir="r" state="M"/>
    <connection from="1/0to1/1" to="1/1to0/1" fromLane="0" toLane="0" via=":1/1_0_0" dir="l" state="M"/>
    <connection from="1/1to0/1" to="0/1to0/0" fromLane="0" toLane="0" via=":0/1_0_0" dir="L" state="M"/>
    <connection from="1/1to1/0" to="1/0to0/0" fromLane="0" toLane="0" via=":1/0_0_0" dir="r" state="M"/>

    <connection from=":0/0_0" to="0/0to1/0" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":0/0_1" to="0/0to0/1" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":0/1_0" to="0/1to0/0" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":0/1_1" to="0/1_to_1/0" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":0/1_2" to="0/1to1/1" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":1/0_0" to="1/0to0/0" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":1/0_1" to="1/0to1/1" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":1/0_2" to="1/0to0/0" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":1/1_0" to="1/1to0/1" fromLane="0" toLane="0" dir="s" state="M"/>
    <connection from=":1/1_1" to="1/1to1/0" fromLane="0" toLane="0" dir="s" state="M"/>

</net>
<tazs>
    <taz id="1" name="District 1"  shape="-3.10062859893,127.256109077 -37.544279582,105.933848945 -19.023832624,67.8572664467 35.443457025,79.6910672435 41.5941089863,114.544761691 41.5941089863,114.544761691 " centroid="9.82715569878,101.637969182">
      <tazSource id="0/1to1/1" weight="0.25815278088"/>
      <tazSource id="0/1to0/0" weight="0.24184721912"/>
      <tazSource id="0/0to0/1" weight="0.24184721912"/>
      <tazSource id="1/1to0/1" weight="0.25815278088"/>
      <tazSink id="0/1to1/1" weight="0.25815278088"/>
      <tazSink id="0/1to0/0" weight="0.24184721912"/>
      <tazSink id="0/0to0/1" weight="0.24184721912"/>
      <tazSink id="1/1to0/1" weight="0.25815278088"/>
    </taz>
    <taz id="2" name="District 2"  shape="77.1712864933,2.77765282974 83.0084988588,-14.618929496 131.803671085,-21.9997118495 152.768817462,15.4868029637 91.8525461308,32.7975419392 " centroid="107.320964006,2.88867127743">
      <tazSource id="1/0to0/0" weight="0.246133733867"/>
      <tazSource id="1/0to1/1" weight="0.253866266133"/>
      <tazSource id="0/0to1/0" weight="0.246133733867"/>
      <tazSource id="1/1to1/0" weight="0.253866266133"/>
      <tazSink id="1/0to0/0" weight="0.246133733867"/>
      <tazSink id="1/0to1/1" weight="0.253866266133"/>
      <tazSink id="0/0to1/0" weight="0.246133733867"/>
      <tazSink id="1/1to1/0" weight="0.253866266133"/>
    </taz>
</tazs>
$VMR
* vehicle type
4
* From-Time  To-Time
7.00 8.00
* Factor
1.00
*
* some
* additional
* comments
* District number
2
* names:
         1          2
*
* District 1 Sum = 6
         2          4
* District 2 Sum = 15
         10          5
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to