Tree Search Solver (Python)
A solver based on heuristic tree search.
This is the Python3 version of the C++ package fontanf/treesearchsolver.
Description
The goal of this repository is to provide a simple framework to quickly implement algorithms based on heuristic tree search.
Solving a problem only requires a couple hundred lines of code (see examples).
Algorithms:
- Greedy
greedy - Best First Search
best_first_search - Iterative Beam Search
iterative_beam_search
Examples
Usage, running examples from command line
Install
pip3 install treesearchsolverpy
Running an example:
mkdir -p data/travellingsalesman/instance
python3 -m examples.travellingsalesman -a generator -i data/travellingsalesman/instance
python3 -m examples.travellingsalesman -a iterative_beam_search -i data/travellingsalesman/instance_50.json
Update:
pip3 install --upgrade treesearchsolverpy
Usage, Python library
See examples.
Metadata
Release files for treesearchsolverpy 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| treesearchsolverpy-0.0.5.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| treesearchsolverpy-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / treesearchsolverpy-0.0.5.tar.gz
| Download URL | treesearchsolverpy-0.0.5.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb34a2ff7e34c5614fb7fcc8b3ba0f9a5df66e8c430493f55e6434af8844c399
|
|
BLAKE2b-256 checksum How to use checksums |
6a885a80d455236a751d4d40f86d6f9aa24d12d6c6bec6890782a0db6f688f97
|
| 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 / treesearchsolverpy-0.0.5-py3-none-any.whl
| Download URL | treesearchsolverpy-0.0.5-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf4013cf13caed75be34c9a8f2eaddf0d51956018df9dc0da962abba7457181b
|
|
BLAKE2b-256 checksum How to use checksums |
8277eca774fd7e9426ffe8e3e7bd2623c76544dbf09b4902b08f662ccef0f527
|
| 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
|