Skip to main content

Route Optimization Constrained

Build Status PyPI version GitHub codecov PyPI - Downloads Codecov

Implementation of Clustering with Constrained Algorithm. Route Optimization Constrained can be treated as an optimization problem.

Installation

Requirement Python >= 3.6, Numpy >= 1.13

  • install from PyPI
pip install route-optimization-constrained

Methods

  • Constrained Clustering Algorithm: Route Optimization Constrained algorithms

Usage:

# setup
from route-optimization-constrained import RouteOptimizationConstraint
if __name__ == "__main__":
    X = []
    n_points = 1000
    random_state = 42
    random.seed(random_state)
    np.random.seed(random_state)
    X = np.random.rand(n_points, 2)
    demands = np.ones((n_points, 1))
    n_clusters = 4
    n_iters = 100
    max_size = [n_points / n_clusters] * n_clusters
    max_size = [0.25, 0.5, 0.1, 0.15]

    roc = RouteOptimizationConstraint(n_clusters, max_size, n_iters)
    roc.fit(X, demands)
    labels = roc.labels_
    centers = roc.cluster_centers_

Copyright

Copyright (c) 2021 Tri Basuki Kurniawan. Released under the MIT License.

Third-party copyright in this distribution is noted where applicable.

Reference

Release files for route-optimization-constrained 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for route-optimization-constrained 0.1.3
File Size Uploaded
route_optimization_constrained-0.1.3.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for route-optimization-constrained 0.1.3
File Interpreter ABI Platform
route_optimization_constrained-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / route_optimization_constrained-0.1.3.tar.gz

Download URL route_optimization_constrained-0.1.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5374fd722d3ac7767a61c3d2ec8b6ae4f82c022003a410133a2005d88a339071
BLAKE2b-256 checksum
How to use checksums
a3d88ec1fc8b16d819aeae43eeb8bfb6987d9f36584205277ac837973261f81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.4

Release files / route_optimization_constrained-0.1.3-py3-none-any.whl

Download URL route_optimization_constrained-0.1.3-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8423dc937238e216500746e0c1968c8bb33374218853ac2aa9eecdd0fe63732
BLAKE2b-256 checksum
How to use checksums
aeb1b56dea86bccc64aa7cdf15c1145483c1291d99a34b42260487318b97ebb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page