SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.30680 · 2026

Locker-based Truck-Drone Routing with Integrated Considerations of Pickups, Deliveries, and No-Fly Zones

Ziliang Wang, Xuanyu Liu, Hui Hu, Jiao Zhao

arXiv · PDF

Code that ran

10 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.30680.json · badge: /api/ran/2606.30680.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wouterkool/attention-learn-to-route canonical (classifier label)
classifier basis: census
10 ran · 5 no recorded run
FunctionStatusWhere it lives
check_extension Ran
ran; our contract draft was wrong, not the code
wouterkool/attention-learn-to-route/utils/data_utils.py
code served (permissive licence) · get_code("01df1926cf07ac89")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

def check_extension(filename):
    if os.path.splitext(filename)[1] != '.pkl':
        return filename + '.pkl'
    return filename

ARGS = {
    'filename': 'myfile.txt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_op_data Ran
ran; our contract draft was wrong, not the code
wouterkool/attention-learn-to-route/generate_data.py
code served (permissive licence) · get_code("82eaf1d494d4fc16")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    'dataset_size': 2,
    'op_size': 20,
    'prize_type': 'const'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_tsp_data Ran
ran, honoured the contract we drafted
wouterkool/attention-learn-to-route/generate_data.py
code served (permissive licence) · get_code("50522f260eb670be")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "dataset_size": 5,
    "tsp_size": 8,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_vrp_data Ran
ran; our contract draft was wrong, not the code
wouterkool/attention-learn-to-route/generate_data.py
code served (permissive licence) · get_code("3a929eede11222c2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "dataset_size": 2,
    "vrp_size": 10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_dataset Ran
ran; our contract draft was wrong, not the code
wouterkool/attention-learn-to-route/utils/data_utils.py
code served (permissive licence) · get_code("69062811f34d8ff6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import pickle
import tempfile

# Create a temporary pickle file for testing
temp_dir = tempfile.mkdtemp()
test_data = {"sample": "data", "values": [1, 2, 3]}
test_file_path = os.path.join(temp_dir, "test_dataset.pkl")

with open(test_file_path, 'wb') as f:
    pickle.dump(test_data, f)

# Remove the .pkl extension for the argument to test the check_extension logic
test_filename = os.path.join(temp_dir, "test_dataset")

ARGS = {
    "filename": test_filename
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mask_bool2long Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wouterkool/attention-learn-to-route/utils/boolmask.py
code served (permissive licence) · get_code("454003b7383dce9f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family int, shape (2, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small uint8 tensor for mask input
# The function expects a uint8 tensor with shape (..., sequence_length)
# Let's create a tensor with batch_size=2 and sequence_length=4
mask = torch.randint(0, 2, (2, 4), dtype=torch.uint8)

ARGS = {
    "mask": mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 1) — shape (2, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mask_long2bool Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wouterkool/attention-learn-to-route/utils/boolmask.py
code served (permissive licence) · get_code("10638ccfaa13fb59")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 256) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# mask_long2bool takes a mask tensor of dtype int64 and optional n parameter
# The function converts int64 mask to boolean mask by bit manipulation

# Create a small int64 tensor for the mask
# Shape: (2, 4) - batch of 2, 4 int64 values
mask = torch.tensor([[1, 2, 4, 8], [16, 32, 64, 128]], dtype=torch.int64)

# n is optional - can be None or an integer specifying number of bits
n = None

ARGS = {
    "mask": mask,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 256) — shape (2, 256) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mask_long_scatter Ran
ran; our contract draft was wrong, not the code
wouterkool/attention-learn-to-route/utils/boolmask.py
code served (permissive licence) · get_code("1a3bb2f0ebdf9a4e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family int, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a mask tensor with batch dimensions and last dimension for bit packing
# mask shape: (2, 3, 4) - batch dims (2, 3), last dim 4 for bit positions
mask = torch.zeros((2, 3, 4), dtype=torch.long)

# Create values tensor with same shape as mask[:-1]
# values shape: (2, 3) - must match mask.size()[:-1]
# Values should be in range [0, 256) to work with the 64-bit packing logic
values = torch.tensor([[10, 50, 120], [200, 30, 100]], dtype=torch.long)

# check_unset parameter - boolean flag
check_unset = False

ARGS = {
    "mask": mask,
    "values": values,
    "check_unset": check_unset,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family int, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
move_to Ran
ran; our contract draft was wrong, not the code
wouterkool/attention-learn-to-route/utils/functions.py
pointer only (licence: MIT); the stored copy get_code serves, from zhangzizhen/ml-dam, is pointer only (licence: NONE) · get_code("107d6628712f1a21")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhangzizhen/ml-dam, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

torch_lexsort Ran
ran; our contract draft was wrong, not the code
wouterkool/attention-learn-to-route/utils/lexsort.py
code served (permissive licence) · get_code("3b9d3dc79956e29f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family int, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small test tensors for lexsort
# keys should be a tuple/list of tensors with the same shape
# dim=-1 means sort along the last dimension
key1 = torch.tensor([[3, 1, 2], [2, 3, 1]], dtype=torch.int64)
key2 = torch.tensor([[1, 2, 1], [3, 1, 2]], dtype=torch.int64)

ARGS = {
    "keys": (key1, key2),
    "dim": -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
backtrack Not yet run
unverified (harvested, no recorded run)
wouterkool/attention-learn-to-route/utils/beam_search.py
code served (permissive licence) · get_code("9d5b8d4a73d01c19")
How it ran

no invocation recorded.

get_beam_search_results Not yet run
unverified (harvested, no recorded run)
wouterkool/attention-learn-to-route/utils/beam_search.py
code served (permissive licence) · get_code("be9c547a8e748da5")
How it ran

no invocation recorded.

get_options Not yet run
unverified (harvested, no recorded run)
wouterkool/attention-learn-to-route/options.py
code served (permissive licence) · get_code("0f6f8675d8280c4f")
How it ran

no invocation recorded.

load_problem Not yet run
unverified (harvested, no recorded run)
wouterkool/attention-learn-to-route/utils/functions.py
code served (permissive licence) · get_code("5deb1f5b2269293b")
How it ran

no invocation recorded.

torch_load_cpu Not yet run
unverified (harvested, no recorded run)
wouterkool/attention-learn-to-route/utils/functions.py
pointer only (licence: MIT); the stored copy get_code serves, from zhangzizhen/ml-dam, is pointer only (licence: NONE) · get_code("0538f709044ed305")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhangzizhen/ml-dam, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 14 are also present in other papers whose code we hold (14 with at least one paper dated earlier, 0 the same month, 0 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
check_extension 7 other papers
7 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
2305.19587 (2023-05)
Towards Omni-generalizable Neural Methods for Vehicle Routing Problems
and 4 more not named here
load_dataset 4 other papers
4 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
2403.07041 (2024-03)
Ant Colony Sampling with GFlowNets for Combinatorial Optimization
and 1 more not named here
torch_load_cpu 4 other papers
4 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2105.02741 (2021-05)
Meta-Learning-Based Deep Reinforcement Learning for Multiobjective Optimization Problems
2110.14074 (2021-10)
Fault-Tolerant Federated Reinforcement Learning with Theoretical Guarantee
and 1 more not named here
generate_op_data 3 other papers
3 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2006.07054 (2020-06)
Learning the Travelling Salesperson Problem Requires Rethinking Generalization
2012.10638 (2020-12)
Multi-Decoder Attention Model with Embedding Glimpse for Solving Vehicle Routing Problems
generate_tsp_data 3 other papers
3 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2006.07054 (2020-06)
Learning the Travelling Salesperson Problem Requires Rethinking Generalization
2012.10638 (2020-12)
Multi-Decoder Attention Model with Embedding Glimpse for Solving Vehicle Routing Problems
generate_vrp_data 3 other papers
3 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2006.07054 (2020-06)
Learning the Travelling Salesperson Problem Requires Rethinking Generalization
2012.10638 (2020-12)
Multi-Decoder Attention Model with Embedding Glimpse for Solving Vehicle Routing Problems
move_to 3 other papers
3 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2105.02741 (2021-05)
Meta-Learning-Based Deep Reinforcement Learning for Multiobjective Optimization Problems
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
backtrack 2 other papers
2 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
get_beam_search_results 2 other papers
2 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
mask_bool2long 2 other papers
2 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
mask_long2bool 2 other papers
2 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
mask_long_scatter 2 other papers
2 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
2205.13225 (2022-05)
DevFormer: A Symmetric Transformer for Context-Aware Device Placement
get_options 1 other paper
1 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!
load_problem 1 other paper
1 dated earlier
1803.08475 (2018-03)
Attention, Learn to Solve Routing Problems!

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Truck-drone delivery is an emerging last-mile logistics mode combining the long-haul capacity of trucks with the flexible service capability of drones. In locker-based operations, smart lockers serve not only as temporary parcel storage facilities but also as automated drone docking and service nodes. These automated nodes support drone takeoff, landing, parcel handover, and battery replacement, thereby significantly extending the service range and operational flexibility of drone-assisted delivery networks. However, practical locker-based delivery systems face complex real-world challenges, requiring the integrated coordination of not only parcel delivery, return pickup, batteryconstrained and load-dependent drone flights, but also necessary detours around restricted airspace. To address this practical and multifaceted challenge, this paper introduces a locker-based truck-drone routing problem with integrated considerations of pickups, deliveries, and no-fly zones (LTDRP-PDNF), with the objective of minimizing the total operational cost of a fleet of drone-equipped trucks. We formulate the route construction process as a Markov Decision Process and develop a two-stage deep reinforcement learning-based neural heuristic. The first stage utilizes an attention-based encoder and a Bidirectional Gated Recurrent Unit decoder to solve the truck-only routing problem, formulated as a capacitated vehicle routing problem. The second stage combines a policy-transfer strategy with a hybrid dispatch assignment heuristic to construct fully coordinated truck and drone routes for LTDRP-PDNF. Experiments on instances of different scales demonstrate that the proposed method outperforms metaheuristic and neural heuristic baselines in most cases while maintaining exceptionally short computation times, offering an effective, scalable solution framework under practical operational constraints.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.30680")
get_code_for_paper("2606.30680")
have("2606.30680")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.30680.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.30680.svg)](https://syntology.ai/paper/2606.30680)

Connect an agent — have() is free.