Git Product home page Git Product logo

route_solver's Introduction

route_solver

Server optimizare rute - Capacitated Vehicle Routing Problem with Time Windows (CVRPTW)

#DOCKER

docker-compose -f docker-compose.yaml build docker-compose -f docker-compose.yaml up

#test_routes.py

  • get_route(point1, point2) - returneaza distanta dintre point1 si point2 si traseul de urmat
  • get_dm(list_points) - matrice cu distanta dintre toate punctele

#solver.py

  • python solver.py data.sample.yaml

#async_solver.py

  • Varianta async a solver.py

#routes.py

  • server async python

#solve

##service_times

  • timp de stationare

##demands

  • incarcare per punct geografic

##vehcile_capacities

  • capacitate incarcare auto
  • numarul de auto se initializeaza prin introducerea unei noi capacitati

##points

  • coordonate puncte de atins

##depot

  • index punct de plecare din lista points.
curl --silent --location --request POST 'http://0.0.0.0:8001/solve' \
--header 'Content-Type: application/json' \
--data-raw '{
    "depot": 0,
    "service_times": [
        0,
        5,
        5
    ],
    "time_windows": [
        [
            0,
            0
        ],
        [
            0,
            5400
        ],
        [
            0,
            5400
        ]
    ],
    "demands": [
        0,
        1,
        1
    ],
    "vehicle_capacities": [
        20
    ],
    "points": [
        [
            44.301738,
            28.581618
        ],
        [
            44.161693871305886,
            28.629600967397156
        ],
        [
            44.18059206612445,
            28.64456970186457
        ]
    ]
}'

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.