Local Search Solver (Python)
A solver based on local search.
This is the Python3 version of the C++ package fontanf/localsearchsolver.
Description
The goal of this repository is to provide a simple framework to quickly implement algorithms based on local search.
Solving a problem only requires a couple hundred lines of code (see examples).
Algorithms:
- Restarting Local Search
restarting_local_search - Iterated Local Search
iterated_local_search
Examples
Usage, running examples from command line
Install
pip3 install localsearchsolverpy
Running an example:
mkdir -p data/travellingsalesman/instance
python3 -m examples.travellingsalesman -a generator -i data/travellingsalesman/instance
python3 -m examples.travellingsalesman -a restarting_local_search -i data/travellingsalesman/instance_50.json
python3 -m examples.travellingsalesman -a iterated_local_search -i data/travellingsalesman/instance_50.json
Update:
pip3 install --upgrade localsearchsolverpy
Usage, Python library
See examples.
Metadata
Release files for localsearchsolverpy 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| localsearchsolverpy-0.0.3.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| localsearchsolverpy-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / localsearchsolverpy-0.0.3.tar.gz
| Download URL | localsearchsolverpy-0.0.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dec82e20ad4f9d79d09bb5608b455211018ee90b3dbb8012622c13f55f656f5
|
|
BLAKE2b-256 checksum How to use checksums |
cf577bdceac641f2587b5b230bb13906ee22d422668b910d05f6c9ee65a94016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / localsearchsolverpy-0.0.3-py3-none-any.whl
| Download URL | localsearchsolverpy-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f27eda312023830d8352bd81cd412b7c0f96ea15c77c78a7d001cbe046a6db0f
|
|
BLAKE2b-256 checksum How to use checksums |
98c831e396a1d85b862fe655e1cd78d6677c6fc1835f2ecea9b892941d204523
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|