GithubHelp home page GithubHelp logo

Comments (3)

Vectorial1024 avatar Vectorial1024 commented on July 24, 2024

The current idea:

image

I do not set a hard limit on how long it should wait, but I have a separate curve X that will change as things change. When X intersects with T, then it means we have "found a solution", and the bus can depart.

X is a function of the "progress distance" to the previous bus in the line. If the distance is low (ie, previous bus has just departed), then X is large, and it decreases hyperbolically until it reaches the "safe unbunching distance" giving the standard waiting time of 64.

As a result, the unbunching distance is implicitly defined, and it tries to maintain a progress distance of approx slightly smaller than 100% / # of buses percent, which will (hopefully) collapse to an approx equal to the value itself of bus interval due to road conditions.

This provides some reasonable generality to the minimum-distance problem of unbunching. (The maximum-distance problem is rather trivial and is solved at #29)

(Hint: if anyone could make a framework to persistently remember the unbunching time beyond 255, then this would probably be much more powerful...)

from expressbusservices.

Vectorial1024 avatar Vectorial1024 commented on July 24, 2024

However, while this works for low-budget cases, this breaks the high-budget situation: buses now wait too long to depart when there are many buses queued behind the terminus.

Therefore, one way to deal with this is to use the progress distance list and see if the terminus is crowded. If it is crowded (i.e. it is a high-budget situation), then don't use the unbunching soft limit. Let the vanilla decider take over instead.

from expressbusservices.

Vectorial1024 avatar Vectorial1024 commented on July 24, 2024

This is now on Steam; closing.

from expressbusservices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.