Skip to main content

mini super vrp v3

Project description

Description:

This is a mini version of super vrp version 3 that include three main modules:

  1. create base_data from input json

  2. create vrp_data from base_data

  3. vrp_solution from vrp_data

How to use this package?

installation:

!pip install supervrpv3

import supervrpv3 as superv3

store file 'stm_input.json' in the same folder of the main code

  1. create base_data

    req_body = open('stm_input.json', encoding='utf-8-sig')

    client = 'test'

    base_data = superv3.get_base_data(req_body, client)

  2. create vrp_data

    service = superv3.VRPService(base_data, client)

    service.preprocessing() # run only one time for each input

    vrp_data = service.create_vrp_data()

  3. create vrp_solution

    vrp_params = service.param_preprocessor.vrp_params

    context = superv3.ContextManager.from_vrp_data(vrp_data, vrp_params)

    vrp_solution = superv3.VRPSolution.from_vrp_data(vrp_data)

  4. initialize free_vehicle in vrp_solution

    vrp_solution = select_vehicle_strategy(context, vrp_solution)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supervrpv3-0.3.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

supervrpv3-0.3-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file supervrpv3-0.3.tar.gz.

File metadata

  • Download URL: supervrpv3-0.3.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for supervrpv3-0.3.tar.gz
Algorithm Hash digest
SHA256 ea24b9ae2afc0c0142465444a42f4c1ac07813055d559ca57c2e48ed1acc2e4f
MD5 7add789f10d4ab2c2b9287a06883b72e
BLAKE2b-256 50852ae63e0c0277b69d8ded9ea5f0685019b026034253cb9d5498956969e076

See more details on using hashes here.

File details

Details for the file supervrpv3-0.3-py3-none-any.whl.

File metadata

  • Download URL: supervrpv3-0.3-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for supervrpv3-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 181414b48088816b0eec2b20d853ecc061ec2181e05652eb97cee920e77eddf2
MD5 e5685363a33537f12f6bd7852a0026d6
BLAKE2b-256 c4d48446593dd627e2c7085d0d42984e2ff8c0b9930ca3fb8f2e579007f3e31a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page