Skip to main content

Bounded top-K destination-plan search and exact oracle for Mobility

Project description

mobility-destination-sequence-sampler

Rust/Python bounded destination-plan top-K search with an exact validation oracle. Mobility prepares inputs; this package owns destination choice.

Transport modeller? Start with MODELLER_GUIDE.md. It explains the algorithm with a small activity-plan example, makes the search guarantees explicit, translates the terminology, and gives a one-context debugging workflow.

Public API

DestinationPlanSearch is the only exported class.

Method Purpose
top_k() Fast bounded search. Fully scores returned plans but does not prove they are the global top-K.
exact_top_k() Small-context oracle. Proves the requested top-K or raises proof incomplete at max_states.

top_k() shortlists plausible destinations, grows partial plans from both ends, joins them near the middle, improves the best complete plans, and ranks them with the full rigidity-aware utility. Repeated anchors remain the same destination throughout a plan. Its report contains top_k_is_proven=False; a successfully completed exact report contains top_k_is_proven=True. See DESIGN.md for schemas and invariants.

Callers can supply an optional utility_profile_id on OD costs and initial locations. This searches several population-specific cost profiles in one call: destination metadata and parallel scheduling are shared, while each context uses its assigned OD graph. Calls without the column keep the original single-profile behavior.

Only those paths are in the working tree. Particle, exhaustive-sampling, and second-order research is preserved by the research-archive-2026-07-29 Git tag (for example, git show research-archive-2026-07-29:<path>). Start with ACTIVE_SEARCH.md for the active algorithm and tuning contract.

Development

mamba env create -f environment.yml
mamba run -n mobility-destination-sequence-sampler python -m maturin develop --release
mamba run -n mobility-destination-sequence-sampler python -m pytest

Current quality/performance: BENCHMARKS.md. Experiment routing and decisions: experiments/README.md.

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

mobility_destination_sequence_sampler-0.1.1.tar.gz (156.3 kB view details)

Uploaded Source

Built Distributions

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

mobility_destination_sequence_sampler-0.1.1-cp311-abi3-win_amd64.whl (453.6 kB view details)

Uploaded CPython 3.11+Windows x86-64

mobility_destination_sequence_sampler-0.1.1-cp311-abi3-manylinux_2_34_x86_64.whl (570.8 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ x86-64

mobility_destination_sequence_sampler-0.1.1-cp311-abi3-macosx_11_0_arm64.whl (507.3 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file mobility_destination_sequence_sampler-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mobility_destination_sequence_sampler-0.1.1.tar.gz
Algorithm Hash digest
SHA256 892a52819e7dabb7d0538bdcc44fb8b65d80774a23ce5c93c76723dea6263a7c
MD5 1a2d80cc20808db0f9cc009d19540f0c
BLAKE2b-256 cbf2accfc5fb6497a3cccc384bebfd388778460327a44717b1b703740310211d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobility_destination_sequence_sampler-0.1.1.tar.gz:

Publisher: wheels.yml on mobility-team/mobility-destination-sequence-sampler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mobility_destination_sequence_sampler-0.1.1-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for mobility_destination_sequence_sampler-0.1.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2e13a25fe482a818e8579f799445d33fd425b3f00ec39101c2eeca1efaa07d8c
MD5 485b09cfb72df919536398adbd5bf36d
BLAKE2b-256 b77dc30f11d13a0b7d46244ccf4c9b07894ce630b8de54abe4c52a3b9f0ffa4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobility_destination_sequence_sampler-0.1.1-cp311-abi3-win_amd64.whl:

Publisher: wheels.yml on mobility-team/mobility-destination-sequence-sampler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mobility_destination_sequence_sampler-0.1.1-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for mobility_destination_sequence_sampler-0.1.1-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6dc6b52d7398df8c61ae70c635c17230657da7ceb37b77748aa65e32ea3c1e73
MD5 bb0a3f1857fe25ff744c957a3c0c2ad1
BLAKE2b-256 baebfb4d0282b4ac4ce8e9a0ce3e01588673caacf45cde15a7bcfc2608de283f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobility_destination_sequence_sampler-0.1.1-cp311-abi3-manylinux_2_34_x86_64.whl:

Publisher: wheels.yml on mobility-team/mobility-destination-sequence-sampler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mobility_destination_sequence_sampler-0.1.1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mobility_destination_sequence_sampler-0.1.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20141c34c8ada1f3899d60c2d0107f9660393392f0be3c155d36856350ae27c2
MD5 a636ebc268445668b2e5a74d53a746ce
BLAKE2b-256 a6f635145c9849ad7f71a72ef5be2296a82e191365b827dff3ef5c144cd1fa1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobility_destination_sequence_sampler-0.1.1-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: wheels.yml on mobility-team/mobility-destination-sequence-sampler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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