Git Product home page Git Product logo

optimization's Introduction

Itinero.Optimization

A module for solving optimization routing problems with Itinero as a routing solution.

Build status Visit our website GPL licensed

  • Itinero.Optimization: NuGet

Supported problems

Current we have the following problems supported:

  • TSP: The default travelling salesman problem.
  • Directed TSP: The TSP with costs for turns.
  • TSP-TW: The TSP with time window constraints.
  • Directed TSP-TW: The TSP-TW with costs for turns.
  • STSP: The selective travelling salesman problem, generates routes with as much locations as possible with a maxium travel time.
  • DirectedSTSP: Identical to the STSP but with u-turn prevention.

Solutions

Usage

Install the following package via Nuget:

PM> Install-Package Itinero.Optimization -IncludePrerelease

Then immediately some extension methods are available on top the default Itinero Router class. For each method there is a Try alternative that doesn't raise any exceptions when something goes wrong but gracefully reports on the error(s).

  • CalculateTSP (profile, locations, first, last): Calculates a default TSP.
    • profile: The vehicle profile.
    • locations: The locations.
    • first: The location to start at.
    • last (option): The location to end up at, when last=first the route will be a loop.
  • CalculateTSPDirected (profile, locations, turnPenaltyInSeconds, first, last): Calculates a default TSP with u-turn costs.
    • profile: The vehicle profile.
    • locations: The locations.
    • turnPenaltyInSeconds: Turn penalty in seconds.
    • first: The location to start at.
    • last (option): The location to end up at, when last=first the route will be a loop.
  • CalculateTSPTW (profile, locations, windows, first, last): Calculates a TSP with time windows.
    • profile: The vehicle profile.
    • locations: The locations.
    • windows: The time window constraints.
    • first: The location to start at.
    • last (option): The location to end up at, when last=first the route will be a loop.
  • CalculateTSPTWDirected (profile, locations, windows, turnPenaltyInSeconds, first, last)
    • profile: The vehicle profile.
    • locations: The locations.
    • windows: The time window constraints.
    • turnPenaltyInSeconds: Turn penalty in seconds.
    • first: The location to start at.
    • last (option): The location to end up at, when last=first the route will be a loop.
  • CalculateSTSP (profile, locations, max, first, last): Calculate a STPS solution.
    • profile: The vehicle profile.
    • locations: The locations.
    • max: The maximum travel time of a tour.
    • first: The location to start at.
    • last (option): The location to end up at, when last=first the route will be a loop.
  • CalculateSTSPDirected (profile, locations, turnPenaltyInSeconds, max, first, last): Calculate a directed STPS solution.
    • profile: The vehicle profile.
    • locations: The locations.
    • turnPenaltyInSeconds: Turn penalty in seconds.
    • max: The maximum travel time of a tour.
    • first: The location to start at.
    • last (option): The location to end up at, when last=first the route will be a loop.

optimization's People

Contributors

xivk avatar pietervdvn avatar

Watchers

James Cloos avatar  avatar  avatar

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.