The International Simutrans Forum

Development => Extension Requests => Topic started by: Orborde on July 22, 2014, 09:46:29 AM

Title: Load*Distance Graphs for Vehicles/Lines
Post by: Orborde on July 22, 2014, 09:46:29 AM
I frequently want to know how much of a line's capacity is being used vs. driving around empty (usually in the context of passenger networks). This is inevitably related to distance traveled: if a line spends a little of its way almost empty, but then is full over a long distance, that's still pretty good utilization.

The vehicle/line info windows offer a couple measurements that sort of help to gain insight into this, but they don't really solve the problem:


Proposal: Load-Distance Graphs
In order to see directly how utilized a vehicle/line is, I propose adding two charts to the vehicle/line windows:

The overall logic here is that your vehicles make money as a function of (km traveled)*(amount of cargo moved), so it's very useful to see how many units of (km*units-of-cargo) a convoy has moved in a month (Load*Distance) vs. how many units it *could* move (Capacity*Distance). By plotting Load*Distance and Capacity*Distance on the same chart, you would be able to directly see how full your convoy/line is running month-to-month (kind of like estimating your margin% by plotting Profit and Vehicle Earnings together), and thus get direct insight into how well you're utilizing your vehicles.
Title: Re: Load*Distance Graphs for Vehicles/Lines
Post by: gauthier on July 22, 2014, 10:50:42 AM
An average of cargo_on_board / capacity could give the same information, doesn't it ?
Title: Re: Load*Distance Graphs for Vehicles/Lines
Post by: Orborde on July 22, 2014, 08:49:42 PM
If the average is weighted by distance, then it's almost as useful, but tracking only the utilization% loses information about the actual scale of the numbers involved. The actual amount of unused capacity is useful for planning, far more directly useful than a simple %.
Title: Re: Load*Distance Graphs for Vehicles/Lines
Post by: Ters on July 22, 2014, 10:55:06 PM
Quote from: Orborde on July 22, 2014, 08:49:42 PM
If the average is weighted by distance, then it's almost as useful, but tracking only the utilization% loses information about the actual scale of the numbers involved. The actual amount of unused capacity is useful for planning, far more directly useful than a simple %.

But you don't know if the numbers are huge because of capacity or distance. cargo / capacity, if presented exactly like that, maintains the scale of capacity. Distance is, in my mind, presented more clearly on its own.
Title: Re: Load*Distance Graphs for Vehicles/Lines
Post by: Orborde on July 25, 2014, 06:22:38 AM
Quote from: Ters on July 22, 2014, 10:55:06 PM
But you don't know if the numbers are huge because of capacity or distance. cargo / capacity, if presented exactly like that, maintains the scale of capacity. Distance is, in my mind, presented more clearly on its own.

Do you mean presenting sum(cargo*distance) and sum(capacity*distance) separately, or as a ratio? Because I'm proposing that they be shown separately.
Title: Re: Load*Distance Graphs for Vehicles/Lines
Post by: Ters on July 25, 2014, 08:21:41 AM
Quote from: Orborde on July 25, 2014, 06:22:38 AM
Do you mean presenting sum(cargo*distance) and sum(capacity*distance) separately, or as a ratio? Because I'm proposing that they be shown separately.

This just looks confusing to me, like distance would cancel out and could be left out of the mix. I guess what is wanted expressed in proper mathematic terms would be ∫cargo ds and ∫capacity ds, and yes, presented separately.
Title: Re: Load*Distance Graphs for Vehicles/Lines
Post by: Orborde on July 25, 2014, 06:30:44 PM
Quote from: Ters on July 25, 2014, 08:21:41 AM
This just looks confusing to me, like distance would cancel out and could be left out of the mix. I guess what is wanted expressed in proper mathematic terms would be ∫cargo ds and ∫capacity ds, and yes, presented separately.

Yep, that is exactly what I was proposing. I was trying not to reference integrals in my explanation, since I didn't know if people here would know calculus ;)
Title: Re: Load*Distance Graphs for Vehicles/Lines
Post by: Ters on July 25, 2014, 07:53:07 PM
I don't know about the average Simutrans player who likes to comment new features, but most developers should at least have some knowledge of calculus, even if half forgotten. (I did however learn C++ before calculus, but I don't think I'm representative.)