SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.00789 · NeurIPS · 2023

Combinatorial Optimization enriched Machine Learning to solve the Dynamic Vehicle Routing Problem with Time Windows

Maximilian Schiffer, Léo Baty, Kai Jungel, Patrick Klein, Axel Parmentier

arXiv · PDF · Open in the Atlas

Code that ran

14 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 5 failures of our instrument; 7 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2304.00789.json · badge: /api/ran/2304.00789.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
tumbais/euro-meets-neurips-2022 canonical (classifier label)
classifier basis: classifier_2025
14 ran · 7 no recorded run
FunctionStatusWhere it lives
NeuralNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("23fbd12cb9ebd45b")
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 an instance of its own class, NeuralNetwork: the run constructed the object and did not call it, so no result was computed. 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
import tensorflow as tf
import pandas as pd

class NeuralNetwork:

    def __init__(self, learning_rate=None):
        self.model = None
        if learning_rate is not None:
            self.optimizer = tf.keras.optimizers.Adam(learning_rate=learning_rate)

    def create_model(self, input_dimension):
        model = tf.keras.Sequential()
        model.add(tf.keras.layers.Input(shape=(input_dimension,)))
        model.add(tf.keras.layers.Dense(10, activation='relu'))
        model.add(tf.keras.layers.Dense(10, activation='relu'))
        model.add(tf.keras.layers.Dense(10, activation='relu'))
        model.add(tf.keras.layers.Dense(10, activation='relu'))
        model.add(tf.keras.layers.Dense(1, use_bias=False))
        self.model = model

    def save_model(self, directory, count):
        self.model.save(directory + '_iteration-' + str(count))

    def predict_profits(self, features, edge_features, edges):
        profits = self.model.predict(features.values, verbose=0)
        profits = np.squeeze(profits)
        if len(profits.shape) > 0:
            profits[0] = 0
        else:
            profits = np.array([0])
        if profits[0] != 0:
            raise Exception('Profit of depot is not 0')
        return profits

    def grad_optimize(self, n, n_hat_mean, features, edge_features, edges):
        with tf.GradientTape() as tape_node:
            profits = tf.squeeze(self.model(features.values, training=True))
            correct_objective_profits = tf.math.reduce_sum(tf.multiply(profits, tf.squeeze(n.astype('float32'))))
            predicted_objective_profits = tf.math.reduce_sum(tf.multiply(profits, tf.squeeze(n_hat_mean.astype('float32'))))
            loss = tf.math.subtract(predicted_objective_profits, correct_objective_profits)
        self.optimizer.apply_gradients(zip(tape_node.gradient(loss, self.model.trainable_variables), self.model.trainable_variables))


# Create instance and build model
nn_instance = NeuralNetwork(learning_rate=0.001)
input_dim = 4
nn_instance.create_model(input_dim)

# Create small feature dataframe with 5 nodes
features_data = np.random.randn(5, 4).astype(np.float32)
features_df = pd.DataFrame(features_data)

# Create dummy edge features and edges
edge_features = np.array([[1, 2], [2, 3]], dtype=np.float32)
edges = np.array([[0, 1], [1, 2]], dtype=np.int32)

# Create n and n_hat_mean arrays (5 elements matching number of nodes)
n = np.array([1, 0, 1, 0, 1], dtype=np.int32)
n_hat_mean = np.array([0.9, 0.1, 0.8, 0.2, 0.7], dtype=np.float32)

ARGS = {
    'learning_rate': 0.001
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NeuralNetwork — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a NeuralNetwork 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
NumpyJSONEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("df2e0e8bac763335")
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 an instance of its own class, NumpyJSONEncoder: the run constructed the object and did not call it, so no result was computed. 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 json
import numpy as np
import pandas as pd

# NumpyJSONEncoder is a subclass of json.JSONEncoder
# It only defines the default() method, which overrides the parent's default() method
# The __init__ of JSONEncoder accepts: skipkeys, ensure_ascii, check_circular, 
# allow_nan, sort_keys, indent, separators, default

# Since the function body only uses the default() method and doesn't call __init__
# directly with specific parameters, we need to provide standard JSONEncoder parameters

ARGS = {
    'skipkeys': False,
    'ensure_ascii': True,
    'check_circular': True,
    'allow_nan': True,
    'sort_keys': False,
    'indent': None,
    'separators': None,
    'default': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NumpyJSONEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a NumpyJSONEncoder 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
apply_perturbation Ran
ran; our contract draft was wrong, not the code
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("37dc75bdb37e8331")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np

class Args:
    def __init__(self, sd_perturbation):
        self.sd_perturbation = sd_perturbation

# Create arguments
args = Args(sd_perturbation=0.1)
profits = np.array([1.5, 2.3, 3.1, 4.2])

ARGS = {
    "args": args,
    "profits": profits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
calculate_accuracy_mean Ran
ran, honoured the contract we drafted
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("17c7151f9a5817a8")
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 float64, ndim 0, dtype family float, shape () 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 numpy as np

# The function calculate_accuracy_mean takes two parameters:
# n: a binary array (ground truth)
# n_hat: a binary array (predictions)
# It compares them using logical_xor and calculates accuracy

# Create small binary numpy arrays
n = np.array([[1, 0, 1, 0],
              [0, 1, 1, 0]], dtype=bool)

n_hat = np.array([[1, 0, 0, 0],
                  [0, 1, 1, 1]], dtype=bool)

ARGS = {
    "n": n,
    "n_hat": n_hat
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float, shape () — shape () 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
calculate_default_accuracy Ran
ran, honoured the contract we drafted
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("232200b94d4c4a11")
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 float64, ndim 0, dtype family float, shape () 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 numpy as np
import torch

torch.manual_seed(0)

# Construct training_instances
# The function expects a list of dicts, each with an 'epoch_instance' key
# containing a dict with a 'target' key that has a .tolist() method (numpy array or tensor)

training_instances = [
    {
        'epoch_instance': {
            'target': np.array([0, 1, 1, 0])
        }
    },
    {
        'epoch_instance': {
            'target': np.array([1, 0, 1, 1])
        }
    }
]

ARGS = {
    'training_instances': training_instances
}
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 float64, ndim 0, dtype family float, shape () — shape () 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
create_ffn_output Ran
ran on a synthesized input
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("f3d2c454c7122b15")
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 Sequential. 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 tensorflow as tf

def create_ffn_output():
    fnn_layers = []
    fnn_layers.append(tf.keras.layers.Dense(10, activation='relu'))
    fnn_layers.append(tf.keras.layers.Dense(10, activation='relu'))
    fnn_layers.append(tf.keras.layers.Dense(10, activation='relu'))
    fnn_layers.append(tf.keras.layers.Dense(1, use_bias=False))
    return tf.keras.Sequential(fnn_layers)

ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential 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
create_ffn_preprocess Ran
ran on a synthesized input
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("12ad886a430d54de")
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 Sequential. 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 tensorflow as tf

def create_ffn_preprocess():
    fnn_layers = []
    fnn_layers.append(tf.keras.layers.Dense(10, activation='relu'))
    fnn_layers.append(tf.keras.layers.Dense(10, use_bias=False))
    return tf.keras.Sequential(fnn_layers)

ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential 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
create_solution_from_dynamic Ran
ran; our contract draft was wrong, not the code
tumbais/euro-meets-neurips-2022/evaluation/solve_bound.py
code served (permissive licence) · get_code("8028b74e11e83174")
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 Solution. 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.

from dataclasses import dataclass
from typing import Optional, List

@dataclass
class Route:
    customers: List[int]
    epoch: Optional[int]

@dataclass
class Solution:
    routes: List[Route]
    cost: float
    found_after_ms: Optional[int]

    @property
    def raw_routes(self) -> List[List[int]]:
        return [x.customers for x in self.routes]

def create_solution_from_dynamic(epoch_solution: List[List[int]], cost: float, epoch: int, found_at_ns: int) -> Solution:
    return Solution([Route(route, epoch=epoch + 1) for route in epoch_solution], cost=cost, found_after_ms=found_at_ns // 1000)

ARGS = {
    "epoch_solution": [[1, 2, 3], [4, 5], [6]],
    "cost": 42.5,
    "epoch": 0,
    "found_at_ns": 5000000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 Solution — a Solution output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Solution 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
decode_solution Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("4536b7b5b4e8fae9")
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 tuple. 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 torch
import numpy as np

torch.manual_seed(0)

# Construct a solution as a list of routes, where each route is a list of request nodes
solution_list = [[1, 2, 3], [4, 5]]

# Construct edges as a list of [from, to] pairs
# These represent possible edges in a graph
edges = [
    [0, 1], [1, 2], [2, 3], [3, 0],
    [0, 4], [4, 5], [5, 0],
    [1, 4], [2, 5]
]

# Construct nodes as a list of node indices
nodes = [0, 1, 2, 3, 4, 5]

# Also test with dict-based solution format
solution_dict = {
    'cost': 42.5,
    'routes': [
        {'requests': [1, 2, 3]},
        {'requests': [4, 5]}
    ]
}

ARGS = {
    'solution': solution_list,
    'edges': edges,
    'nodes': nodes
}
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 tuple — a tuple 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
format_pchgs_instance_as_json Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("0eafde21a445f1e9")
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 torch
import numpy as np

torch.manual_seed(0)

# Construct a minimal instance dict that satisfies the function's requirements
instance = {
    'coords': [[0.0, 0.0], [1.0, 1.0]],  # 2 nodes with 2D coordinates
    'service_times': [5.0, 10.0],  # service time for each node
    'demands': [1.0, 2.0],  # demand for each node
    'time_windows': [[0.0, 100.0], [10.0, 150.0]],  # time windows for each node
    'capacity': 10.0,  # vehicle capacity
    'duration_matrix': [[0.0, 5.0], [5.0, 0.0]],  # 2x2 duration matrix
    'request_idx': [0, 1],  # optional: request indices
    'release_times': [0.0, 5.0],  # optional: release times
}

# Construct profits array
profits = [100.0, 200.0]

# Construct args dict with all parameters
ARGS = {
    'args': None,  # args parameter is not used in the function body
    'instance': instance,
    'profits': profits,
}
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 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
get_edges_in_solution Ran
ran, honoured the contract we drafted
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("5011071a64e93d22")
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 list, ndim 2, dtype family int; 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 torch

torch.manual_seed(0)

# The function takes a solution parameter which is a list of routes
# Each route is a list of request indices
# The function iterates through each route and creates edges

# Create a simple solution structure:
# - List of routes
# - Each route is a list of request indices (integers)

solution = [
    [1, 2, 3],      # First route: depot -> request 1 -> request 2 -> request 3 -> depot
    [4, 5],         # Second route: depot -> request 4 -> request 5 -> depot
]

ARGS = {
    "solution": solution
}
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 list, ndim 2, dtype family int — 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
get_model_name Ran
ran; our contract draft was wrong, not the code
tumbais/euro-meets-neurips-2022/training/run_training.py
code served (permissive licence) · get_code("9153250275162f98")
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 Args. 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 torch
import numpy as np

class Args:
    def __init__(self):
        self.oracle_solutions_directory = "path/to/oracle/solutions"
        self.predictor = "my_predictor"
        self.feature_set = "basic_features"
        self.model_name = None

args = Args()

ARGS = {
    "args": args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
get_nodes_in_solution Ran
ran, honoured the contract we drafted
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("a536b44435a29858")
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 list, ndim 1, dtype family int; 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 torch

torch.manual_seed(0)

# The function get_nodes_in_solution expects a 'solution' parameter
# which is a list of lists (or iterable of iterables) containing nodes.
# The function flattens these lists and returns unique nodes.

# Create a simple solution structure: list of lists of nodes
solution = [
    [1, 2, 3],
    [2, 4, 5],
    [1, 6]
]

ARGS = {
    "solution": solution
}
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 list, ndim 1, dtype family int — 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
make_to_ints Ran
ran, honoured the contract we drafted
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("b5090f3074119346")
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 ndarray, 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 numpy as np

torch_seed = 0

profits = np.array([[1.5, 2.7, 3.2], [4.1, 5.9, 6.8]], dtype=float)

ARGS = {
    "profits": profits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, 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
GraphConvLayer Not yet run
unverified (harvested, no recorded run)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("29a904c381ea69eb")
How it ran

no invocation recorded.

GraphNeuralNetwork Not yet run
unverified (harvested, no recorded run)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("9f6eaf73d42e09f1")
How it ran

no invocation recorded.

GraphNeuralNetwork_sparse Not yet run
unverified (harvested, no recorded run)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("6a821ffa842d04e8")
How it ran

no invocation recorded.

Linear Not yet run
unverified (harvested, no recorded run)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("a0f31bdd1ab03cbe")
How it ran

no invocation recorded.

Optimizer Not yet run
unverified (harvested, no recorded run)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("f71c69c65ce31fe1")
How it ran

no invocation recorded.

loss_for_perturbation Not yet run
unverified (harvested, no recorded run)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("b4b96fb57ac8bc15")
How it ran

no invocation recorded.

solve_pchgs Not yet run
unverified (harvested, no recorded run)
tumbais/euro-meets-neurips-2022/training/optimization.py
code served (permissive licence) · get_code("88a8624dad9dd20b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 21 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.

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

With the rise of e-commerce and increasing customer requirements, logistics service providers face a new complexity in their daily planning, mainly due to efficiently handling same day deliveries. Existing multi-stage stochastic optimization approaches that allow to solve the underlying dynamic vehicle routing problem are either computationally too expensive for an application in online settings, or -in the case of reinforcement learning -struggle to perform well on high-dimensional combinatorial problems. To mitigate these drawbacks, we propose a novel machine learning pipeline that incorporates a combinatorial optimization layer. We apply this general pipeline to a dynamic vehicle routing problem with dispatching waves, which was recently promoted in the EURO Meets NeurIPS Vehicle Routing Competition at NeurIPS 2022. Our methodology ranked first in this competition, outperforming all other approaches in solving the proposed dynamic vehicle routing problem. With this work, we provide a comprehensive numerical study that further highlights the efficacy and benefits of the proposed pipeline beyond the results achieved in the competition, e.g., by showcasing the robustness of the encoded policy against unseen instances and scenarios.

For agents

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

get_harvested_code_for_paper("2304.00789")
get_code_for_paper("2304.00789")
have("2304.00789")

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

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

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

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

Connect an agent — have() is free.