Coder Social home page Coder Social logo

Comments (3)

bokae avatar bokae commented on August 26, 2024

Current considerations:

We use a 20x40 grid for the simulation. Let us suppose, that this corresponts to a 2 km x 4 km grid in real space.

Then 1 distance unit (du) corresponds to 100 m.

Our cars move 1 du in 1 time unit (tu). If we suppose that their average velocity while moving is 36 km/h (that is quite optimistic), i.e. 10 m/s, then 1 tu = 10 s, and $v=1\frac{\mathrm{du}}{\mathrm{tu}}$

The average free path between taxis is
$$\overbar{d}=\sqrt{\frac{8\ \mathrm{km}^2}{N_t}},$$

where $N_t$ is the number of taxis in the system.

Now let us consider the request to taxi ratio, or reciprocal system capacity. If $\lambda_r$ requests are made per time unit, then after time $t$, there will be $\lambda_r\cdot t$ requests, that all have an average length $l$. Taxis can travel $vt$ distance during the same time window, so theoretically, if all requests were matched with taxis at once, the reciprocal system capacity would be

$$R=\frac{\lambda_r r l}{N_t vt}.$$

In our current geometry, where there is one base at the center, and base_sigma is 5, $l\approx 8$. So without correct units:

$$R=\frac{8\lambda_r}{N_t}.$$

This means that if we change $\sigma$, that changes $R$ as well!!!

from taxi.

bokae avatar bokae commented on August 26, 2024

Conversion specification is now given in generate_configs.py. Changing $R$ with changing $\sigma$ is already taken care about.

from taxi.

bokae avatar bokae commented on August 26, 2024

I think that the parameter issue is done for now, we have more than enough of them.

from taxi.

Related Issues (18)

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.