Dear Sir,

Now adjacency matrix filled fine and ACO ALGORITHM works nicely.

I am getting list of vertexes, Traversed by ant in shortest way :

Like [0,1,3,4,5,7,8,9,6,2]

Issue : I can get from and to field to build edge using this vertex.

But to create a route I need following :
<Edge Id= from= to=>

Is there anyway to get edge ID to build a route out of this vertex list?



On Wed 27 Mar, 2019, 5:22 PM , <[email protected]> wrote:

> Send sumo-user mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://www.eclipse.org/mailman/listinfo/sumo-user
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sumo-user digest..."
>
>
> Today's Topics:
>
>    1. Re: Traffic Light (iCashWave)
>    2. Re: Traffic Light (Jakob Erdmann)
>    3. Re: Convert sumolib.net.readnet Graph to Adjacency        Matrix
> (Bijal)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 27 Mar 2019 18:24:50 +0800
> From: iCashWave <[email protected]>
> To: Sumo project User discussions <[email protected]>
> Subject: Re: [sumo-user] Traffic Light
> Message-ID:
>         <
> caaujj+u+xcxi9uy_bukw+wg9c_q2w5xoy-rjf7gg+pucjf1...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> You should change the light phase,such as chaning G to r.
>
> Cellen Fadi <[email protected]> ? 2019?3?27? ?? 18:04???
>
> > hello,
> >
> > I would like to change the priority rule at the traffic lights. Like you
> > see on the picture the green and red phases are wrong . I have tried to
> > select conflict in NETEDIT but it does not work. Can you help me please.
> > Thanks!
> >
> > best regards
> > Fadi
> > _______________________________________________
> > sumo-user mailing list
> > [email protected]
> > To change your delivery options, retrieve your password, or unsubscribe
> > from this list, visit
> > https://www.eclipse.org/mailman/listinfo/sumo-user
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.eclipse.org/mailman/private/sumo-user/attachments/20190327/c873add7/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 27 Mar 2019 12:14:33 +0100
> From: Jakob Erdmann <[email protected]>
> To: Sumo project User discussions <[email protected]>
> Subject: Re: [sumo-user] Traffic Light
> Message-ID:
>         <
> cambucby6kwu0n_ornhdmrv+1s2cdlbhabj4zfx0ej0z7vtv...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> You must use the traffic light mode of netedit (hotkey 't') to edit traffic
> light plans.
>
> Am Mi., 27. M?rz 2019 um 11:25 Uhr schrieb iCashWave <[email protected]
> >:
>
> > Hi,
> > You should change the light phase,such as chaning G to r.
> >
> > Cellen Fadi <[email protected]> ? 2019?3?27? ?? 18:04???
> >
> >> hello,
> >>
> >> I would like to change the priority rule at the traffic lights. Like you
> >> see on the picture the green and red phases are wrong . I have tried to
> >> select conflict in NETEDIT but it does not work. Can you help me please.
> >> Thanks!
> >>
> >> best regards
> >> Fadi
> >> _______________________________________________
> >> sumo-user mailing list
> >> [email protected]
> >> To change your delivery options, retrieve your password, or unsubscribe
> >> from this list, visit
> >> https://www.eclipse.org/mailman/listinfo/sumo-user
> >>
> > _______________________________________________
> > sumo-user mailing list
> > [email protected]
> > To change your delivery options, retrieve your password, or unsubscribe
> > from this list, visit
> > https://www.eclipse.org/mailman/listinfo/sumo-user
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.eclipse.org/mailman/private/sumo-user/attachments/20190327/65e25d65/attachment.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 27 Mar 2019 17:25:13 +0800
> From: Bijal <[email protected]>
> To: Sumo project User discussions <[email protected]>
> Subject: Re: [sumo-user] Convert sumolib.net.readnet Graph to
>         Adjacency       Matrix
> Message-ID:
>         <
> cabbss+jjh3_upsngvarc6fmic8gwdmve-t4ucwz2rbpzgom...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear Sir,
>
> I have converted Graph to Adjacency Matrix. But it gives wrong intersection
> values.
>
> My problem is i am not able to understand why the value
> of edge.getToNode().getID() shows u'5' (variable type shows Unicode) in
> place of Value 5? [Please find photo attached here with]
>
> I need integer values because i am doing following :
>
>   def add_edge(self, u, v, weight=1):
>         if u in self.vertices and v in self.vertices:
>          *   self.edges[self.edge_indices[u]][self.edge_indices[v]] =
> weight*
>             self.edges[self.edge_indices[v]][self.edge_indices[u]] = weight
>             return True
>         else:
>             return False
> Please help me to solve this issue.
> [image: image.png]
>
>
> --
> *:)*
> Bijal Varia
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.eclipse.org/mailman/private/sumo-user/attachments/20190327/b8ea9bf3/attachment.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image.png
> Type: image/png
> Size: 248841 bytes
> Desc: not available
> URL: <
> https://www.eclipse.org/mailman/private/sumo-user/attachments/20190327/b8ea9bf3/attachment.png
> >
>
> ------------------------------
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
>
> End of sumo-user Digest, Vol 21, Issue 106
> ******************************************
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to