Round robin scheduling for trains / Train Limits can Soft-Deadlock when Incoming and Outgoing are Both Full

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12722
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Round robin scheduling for trains / Train Limits can Soft-Deadlock when Incoming and Outgoing are Both Full

Post by ssilk »

Nice read, maybe a bit theoretical. :)
Some of this might be applied to Factorio as well, although it's probably a bit different since there are no waiting queues for resource allocation.
Exactly. It won’t work! Because of that.

Add one queue (one more stop with space for N trains) and the problem resolves by itself.

Hmmmm. :idea:

That would be a more or less simple solution: a new “buffer stop”. Which is nothing else than: if a train is not able to leave a stop within some seconds (can be defined by a signal in the current stop) the train selects the next free buffer stop.

Really simple solution. Can be easy implemented as mod.

shopt
Inserter
Inserter
Posts: 31
Joined: Tue Jul 13, 2021 9:07 am
Contact:

Re: Round robin scheduling for trains / Train Limits can Soft-Deadlock when Incoming and Outgoing are Both Full

Post by shopt »

Doesn't Klonan's train control signal mod (https://mods.factorio.com/mod/Train_Control_Signals) already give you that with its depot stops?

Post Reply

Return to “Ideas and Suggestions”