The International Simutrans Forum

 

Author Topic: Passenger route selection  (Read 3863 times)

0 Members and 1 Guest are viewing this topic.

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Passenger route selection
« on: September 13, 2008, 01:49:34 PM »
Should passangers take a direct route train before a non-direct one or just take the first one available? (IE from A to D before an A-B-C-D one)
« Last Edit: September 13, 2008, 01:53:55 PM by Zeno »

Offline gauthier

  • Devotee
  • *
  • Posts: 3628
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: Passenger route selection
« Reply #1 on: September 13, 2008, 02:00:40 PM »
I support the first one avaible solution, I had many problems with it  :)

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Re: Passenger route selection
« Reply #2 on: September 13, 2008, 02:12:43 PM »
Well... I always can split the non-express route so direct passengers won't take it cause of more hops ::)

Offline yoshi

  • Devotee
  • *
  • Posts: 133
  • PAK128.Japan Maintainer
    • pak128.Japan
  • Languages: JA
Re: Passenger route selection
« Reply #3 on: September 13, 2008, 04:06:28 PM »
Just imagine, you are now at Lyon Part Dieu Station and waiting for a train to go to Marseille St. Charles Station. It's Monaday 7:00 am. Then which train would you take?

TER 17705  07:25 -> 10:54 (with lots of intermediate stops)
TGV 6801   07:36 -> 09:23 (calls at Valence TGV and Avignon TGV)
TGV 6818   15:37 -> 17:17 (calls at Avignon TGV)

Simutrans people would take TER 17705. In the real life, most people would take TGV 6801. If the passengers took a train with the smallest number of intermediate stops, then they would wait until TGV 6818.

Which is the best routine for Simutrans?

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: Passenger route selection
« Reply #4 on: September 13, 2008, 04:32:13 PM »
There are no timetables in ST, and there's no feasible other method to find out when the next convoy with a certain schedule (giving the number of intermediate stops), certain speed or available capacity (think seat reservations) etc. will arrive.
Even if the information was available, then loading a convoy at a stop would require much more CPU time: for each packet that can be loaded, a comparison for all available convoys serving that connection would have to be done. (This is an outline of the requirements, there may still be an efficient way to do this, e.g. by pre-sorting things, caching information.)
« Last Edit: September 13, 2008, 04:34:14 PM by whoami »

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Re: Passenger route selection
« Reply #5 on: September 13, 2008, 04:36:16 PM »
@yoshi:
Of course I would take the TGV, but simutizens will take the TER one.

@gauthier:
May I ask which problems do you mean?
As a workaround I tend either to split the non-express line, or to make two terminals on the same city and make one train to end at each other, then connect them by bus or tram.

Anyway, I only was curious... ::)  It really isn't a big problem for me.


@whoami:
Sorry, we were posting at same time! I was thinking of an algorithm like: I want to go from A to D. Arrives a train, then: is there a train with less stops? -> no: take the train; yes: wait. It would consume some extra CPU... I just don't know if too much or not ::)
« Last Edit: September 13, 2008, 04:40:32 PM by Zeno »

Offline gauthier

  • Devotee
  • *
  • Posts: 3628
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: Passenger route selection
« Reply #6 on: September 13, 2008, 05:23:41 PM »
Quote
May I ask which problems do you mean?

first :
Quote
the first one available solution
I have judged the problem so much fast, it's not what I would say.

A big problem I have :
imagine 2 cities, a wonderful high speed line between this two cities witheout intermediate stop. A big goods network with a passengers car in every convoy to transport workers to industries but this network deserves the both cities. Passengers who want to go to the other city take the goods network instead of the high speed line ...

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Re: Passenger route selection
« Reply #7 on: September 13, 2008, 05:28:58 PM »
Passengers who want to go to the other city take the goods network instead of the high speed line ...
Well, actually they would take it anyway, am I right?