mini super vrp v3
Project description
Description:
This is a mini version of super vrp version 3 that include three main modules:
-
create base_data from input json
-
create vrp_data from base_data
-
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
-
create base_data
req_body = open('stm_input.json', encoding='utf-8-sig')
client = 'test'
base_data = superv3.get_base_data(req_body, client)
-
create vrp_data
service = superv3.VRPService(base_data, client)
service.preprocessing() # run only one time for each input
vrp_data = service.create_vrp_data()
-
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)
-
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea24b9ae2afc0c0142465444a42f4c1ac07813055d559ca57c2e48ed1acc2e4f |
|
MD5 | 7add789f10d4ab2c2b9287a06883b72e |
|
BLAKE2b-256 | 50852ae63e0c0277b69d8ded9ea5f0685019b026034253cb9d5498956969e076 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 181414b48088816b0eec2b20d853ecc061ec2181e05652eb97cee920e77eddf2 |
|
MD5 | e5685363a33537f12f6bd7852a0026d6 |
|
BLAKE2b-256 | c4d48446593dd627e2c7085d0d42984e2ff8c0b9930ca3fb8f2e579007f3e31a |