Git Product home page Git Product logo

Comments (3)

reinterpretcat avatar reinterpretcat commented on June 24, 2024 1

Hi,

it depends.

The solver itself doesn't assume any specific units when routing matrix is used: it should be just consistent. So, if you have meters and seconds in the routing matrix, then costs should be specified per second and meter.

If no matrix supplied, then the solver uses some approximation algorithm to calculate distance and duration between any two locations and it assumes that costs are defined using standard distance and time units: meters and seconds.

from vrp.

reinterpretcat avatar reinterpretcat commented on June 24, 2024 1

I've rechecked implementation and actually, seconds are assumed by default:

https://github.com/reinterpretcat/vrp/blob/master/vrp-pragmatic/src/lib.rs#L58

So, I need to update documentation

from vrp.

iedmrc avatar iedmrc commented on June 24, 2024

I needed that part

If no matrix supplied, then the solver uses some approximation algorithm to calculate distance and duration between any two locations and it assumes that costs are defined using standard distance and time units: meters and seconds.

Thank you for answer!
But I've one more question, how does it check time windows and shifts when I provide a custom route matrix without any unit specified?

from vrp.

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.