Skip to main content

A Python wrapper for the Concurrent Hybrid Iterated Local Search (CHILS) heuristic for the Maximum Weight Independent Set problem

Project description

CHILS_Python

Python wrapper for the CHILS heuristic

How to Use

The following example illustrates how to apply the heuristic. It creates a graph with three vertices and then runs the full CHILS algorithm using four concurrent solutions for 20 seconds.

import chils

solver = chils.CHILS()

solver.add_vertex(10)
solver.add_vertex(10)
solver.add_vertex(20)

solver.add_edge(0, 1)
solver.add_edge(0, 2)

solver.run_full(20.0, 4, 0)

print(solver.get_solution_weight())

Development

To clone this repository, including the CHILS submodule, run:

git clone --recursive https://github.com/KennethLangedal/CHILS_Python.git

If you have already cloned the repository, you can initialize the submodule with:

git submodule update --init --recursive

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

chils-1.0.2-py3-none-win_amd64.whl (1.2 MB view details)

Uploaded Python 3Windows x86-64

chils-1.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (88.6 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

chils-1.0.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (95.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

chils-1.0.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (90.5 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

chils-1.0.2-py3-none-macosx_11_0_x86_64.whl (618.2 kB view details)

Uploaded Python 3macOS 11.0+ x86-64

chils-1.0.2-py3-none-macosx_11_0_arm64.whl (618.2 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file chils-1.0.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: chils-1.0.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chils-1.0.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0c964db55d98840ce3fea04750ccac57716aa185ab79928431043cc8221d76da
MD5 633925c4c9d86991205d7c23e7994c58
BLAKE2b-256 6fbd627251bb7a2dd0c216337b31806d523166deeb72df05b7d9cc6dbfd79882

See more details on using hashes here.

File details

Details for the file chils-1.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chils-1.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3edb91bb9cfae402a1c3a69e09d6070b069271cf06ce917b78f1e75d30abe07b
MD5 270ec19ddd36c94de44323851ac30c1d
BLAKE2b-256 7ff2237632d3e818870b22fd2e8890bde64dd8c80276e0e1ab0b6697fa3f060d

See more details on using hashes here.

File details

Details for the file chils-1.0.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for chils-1.0.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7543352ae6964d082a9eaac12634c3f3b023f9d67f970c602faa27b80fa95732
MD5 a1efcf4ed9678d6af1f01b92ff8a72eb
BLAKE2b-256 1c7c4f3be7269ffe1255a3056dcc20c54a1e564a6b1fd385bbe6298d289f01c5

See more details on using hashes here.

File details

Details for the file chils-1.0.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chils-1.0.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 73b48bb8dae89a230d7ab677c241352a05a10c34beaf5f8624bede5ac1cf2b9e
MD5 2764d6005e0e0a4b6a6d296c3179ea16
BLAKE2b-256 1c045bbd113640373ad22b559b7c318db61fb7ee2663663a07c33a45a752f3d7

See more details on using hashes here.

File details

Details for the file chils-1.0.2-py3-none-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for chils-1.0.2-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 5253835ddea7a81f8c0c47d26e5e842c1036166816fce06185e180082d7e2d9b
MD5 e76412f881abcae697492a6a88e12ba3
BLAKE2b-256 a9d6ef28315d4ff27fabdb442dd2f3f6579ca9538cbf686c501497fe3217a9b1

See more details on using hashes here.

File details

Details for the file chils-1.0.2-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: chils-1.0.2-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 618.2 kB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chils-1.0.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1baef857bc3298c986e265272fe6e391056bfed439ba2d2bfb46aed4a8d5ffbb
MD5 b5a4d84c455e146cd1e7bac306315694
BLAKE2b-256 3eaab6dbaae102d0ac883bcd9e2085861b2fc93fc5a2bf1d4fb89bbf1ba5aaab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page