The International Simutrans Forum

Development => Extension Requests => Topic started by: Zeno on September 13, 2008, 01:49:34 PM

Title: Passenger route selection
Post by: Zeno 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)
Title: Re: Passenger route selection
Post by: gauthier on September 13, 2008, 02:00:40 PM
I support the first one avaible solution, I had many problems with it  :)
Title: Re: Passenger route selection
Post by: Zeno 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 ::)
Title: Re: Passenger route selection
Post by: yoshi 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?
Title: Re: Passenger route selection
Post by: whoami 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.)
Title: Re: Passenger route selection
Post by: Zeno 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 ::)
Title: Re: Passenger route selection
Post by: gauthier on September 13, 2008, 05:23:41 PM
QuoteMay I ask which problems do you mean?

first :
Quotethe 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 ...
Title: Re: Passenger route selection
Post by: Zeno on September 13, 2008, 05:28:58 PM
Quote from: gauthier on September 13, 2008, 05:23:41 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?