Well, I said quickly - it's quite a long post - but basically they won't ignore the other route, they'll just only use it when the "1-hop" route is full.fonso wrote:There are three stages in destination selection:audigex wrote:If you don't mind taking a few moments to explain, I'd be interested to know whether the choice of destination is more (and if so, how much more) intelligent than cargodest was. Is it based on the size of town only, or does it base it at all on the used versus potential capacity of the link?
1. The demand function is calculated based on measured monthly supply at connected stations. Supply is the amount of cargo generated at a station by industries and houses. The calculation is done in a way that2. The planned flows are calculated based on measured capacities of links between stations and the demands calculated before. The algorithm tries to push flow over the existing links in a way that
- sets a destination for all supplied cargo
- corresponds to the symmetricity, distance and station size parameters. The station size parameter is really a gradual symmetricity parameter. The lower you set it the less demand is assigned from B to A for a given amount of demand from A to B.
3. The plan is enacted. Every cargo packet arriving or being generated at a station is sent over the link where (plan - sent) for that packet's source station is greatest. After each such sending operation the flow stats are updated and some other link may be the most undersupplied.
- satisfies all demands calculated in step 1
- balances routes. If you have two routes from A to B and the sum of their capacities is smaller than the demand from A to B, both will be equally overloaded. On the other hand, if the capacity is greater than the demand, the shorter one will be preferred. That preference can be customized with the "short path saturation" parameter.
The algorithm doesn't know about towns or town sizes. It knows about stations and supply at those stations.
I don't measure speed. But mind that if you increase the speed of a vehicle the capacity of all links it serves increases as it can serve them more often. There is no "until the route is full". The plan is calculated in advance and in a way that doesn't unnecessarily over- or underload any links. Overcrowding happens if the sum of the capacities of all links to a given destination is lower than the demand for that destination. In that event the overcrowding happens roughly equally on all routes leading to that destination.audigex wrote: My own hope would be that the usage is based on the rating of the route, eg if it has a high capacity and high speed, people are more likely to use it - until the route is full, at which point the overcrowding makes people avoid it. The amount could then slowly increase to encourage the player to increase line capacity.
Town rating doesn't have anything to do with it and I don't know how it could. The total number of destinations will be factored into the supply. If fewer destinations are connected to a given station you will get less cargo being generated there in the first place. It will be configurable and you will be able to switch it off. Wait for 4. on the roadmapaudigex wrote: Obviously, this is very social rather than technical - so it's a pipe dream I think, but I'd be interested to know if it's based on anything other than the rating of the town and total number of destinations. As much for curiousity as anything else, I prefer cargodest to trunk (haven't played much cargodi yet, I love the ITiM patch too much) and it looks like cargodi is an improvement on that.
Okay, it's not the fastest, but if you think about it, it's also best for a network. I'd rather my passengers jumped on a direct train until it's full, so they don't clog up the local service.
And remember, it's up to the transport company to build the links. Why would you build an intercity link which is worse than the local route? You may aswell just add capacity to the local route, and increase services to the intermediates.