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_params = service.param_preprocessor.vrp_params

    vrp_data = service.create_vrp_data(vrp_params)

  3. create vrp_solution

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

    vrp_solution = superv3.VRPSolution.from_vrp_data(vrp_data)

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.9.tar.gz (25.0 kB view hashes)

Uploaded Source

Built Distribution

supervrpv3-0.9-py3-none-any.whl (25.3 kB view hashes)

Uploaded Python 3

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