SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.12365 · 2026

Optimal Experimental Design for Reliable Learning of History-Dependent Constitutive Laws

Andrew Stuart, Lianghao Cao, Kaushik Bhattacharya

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 0 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/2603.12365.json · badge: /api/ran/2603.12365.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
lcao11/constitutive_oed canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
check_inclusion Ran
ran, honoured the contract we drafted
lcao11/constitutive_oed/utils/generate_mesh.py
code served (permissive licence) · get_code("02e12544370f2003")
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 int, 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

# Construct valid arguments for check_inclusion function

# Create sample coordinates (N, 2) - checking 5 points
coordinates = np.array([
    [0.0, 0.0],      # center - should be inside
    [0.5, 0.0],      # along x-axis
    [0.0, 0.3],      # along y-axis
    [1.5, 1.5],      # far outside
    [0.3, 0.2]       # near center
], dtype=np.float32)

# Stretch factors [a, b] representing semi-axis lengths
stretch = np.array([1.0, 0.5], dtype=np.float32)

# Rotation angle in radians (45 degrees)
rotation = np.pi / 4

ARGS = {
    "coordinates": coordinates,
    "stretch": stretch,
    "rotation": rotation
}
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 int, 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
generate_speckle_pattern Ran
ran; our contract draft was wrong, not the code
lcao11/constitutive_oed/utils/image_observation.py
code served (permissive licence) · get_code("e549b6c88695d829")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create image_corners: physical corners [[x0, y0], [x1, y1]]
# Using a 2x2 array with distinct dimensions for clarity
image_corners = np.array([
    [0.0, 0.0],      # bottom-left corner
    [10.0, 8.0]      # top-right corner
])

# density: target fraction of area to be covered by speckles (0 to 1)
density = 0.15

# base_speckle_radius: optional radius for initial dense packing
# If None, it's estimated from domain size. We'll provide a small value
base_speckle_radius = 0.5

ARGS = {
    "image_corners": image_corners,
    "density": density,
    "base_speckle_radius": base_speckle_radius
}
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 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
plot Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lcao11/constitutive_oed/utils/visual.py
code served (permissive licence) · get_code("c097f9010a4cfe95")
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 PairGrid. 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 pandas as pd

# Construct valid arguments for the plot function
np.random.seed(0)

# Create sample data: a 2D array where rows are observations and columns are variables
# Using distinct dimensions: 10 observations, 4 variables
data = np.random.randn(10, 4)

# Create hue column as a categorical variable for color coding
# We need to add a 'hue' column to the dataframe, so we'll include it in data
# Actually, looking at the code, df = pd.DataFrame(data) creates a dataframe
# and then df[hue] is accessed, so hue must be a column name (integer or string)
# We need to add the hue as a column to data before converting to dataframe
data_with_hue = np.column_stack([data, np.random.randint(0, 3, 10)])  # 4 features + 1 hue column
data_with_hue = data_with_hue.astype(float)

# Create reference values for each variable (one per column, excluding hue)
reference = np.array([0.1, -0.2, 0.3, 0.0])

# hue parameter should be the column name/index for the hue variable
hue = 4  # The last column we added

# palette for seaborn (optional, can be None or a dict/string)
palette = None

# rowvar controls if rows or columns are variables (False = columns are variables)
rowvar = False

ARGS = {
    'data': data_with_hue,
    'rowvar': rowvar,
    'hue': hue,
    'reference': reference,
    'palette': palette
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, pandas, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PairGrid — a PairGrid output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PairGrid 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
plot_joint_density Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lcao11/constitutive_oed/utils/visual.py
code served (permissive licence) · get_code("ec04a40cbb50ea50")
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 PairGrid. 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 pandas as pd
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

# Create sample data with shape (n_samples, n_features)
np.random.seed(0)
data = np.random.randn(50, 4)

# Create reference values (one per feature)
reference = np.array([0.5, -0.3, 0.1, -0.2])

# Create custom labels
labels = ['Feature A', 'Feature B', 'Feature C', 'Feature D']

ARGS = {
    'data': data,
    'rowvar': False,
    'labels': labels,
    'reference': reference,
    'scatter': True,
    'alpha': 0.1,
    'color': 'C0'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, pandas, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PairGrid — a PairGrid output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PairGrid 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
plot_multiple_joint_density Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lcao11/constitutive_oed/utils/visual.py
code served (permissive licence) · get_code("3d2dc0e9c00ed982")
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 PairGrid. 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 pandas as pd
import matplotlib.pyplot as plt

# Create sample data arrays
# data_list: list of numpy arrays, each with shape (n_samples, n_features)
data1 = np.random.randn(5, 4)  # 5 samples, 4 features
data2 = np.random.randn(6, 4)  # 6 samples, 4 features

# name_list: list of strings labeling each dataset
name_list = ['dataset_a', 'dataset_b']

# sample_labels: optional labels for each feature dimension
sample_labels = ['feature_1', 'feature_2', 'feature_3', 'feature_4']

# reference: optional reference values for each feature (1D array)
reference = np.array([0.0, 0.1, -0.2, 0.3])

# palette: optional dict mapping dataset names to colors
palette = {'dataset_a': 'C0', 'dataset_b': 'C1'}

ARGS = {
    'data_list': [data1, data2],
    'name_list': name_list,
    'sample_labels': sample_labels,
    'prior_contour': False,
    'palette': palette,
    'reference': reference
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, pandas, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PairGrid — a PairGrid output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PairGrid 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
set_bounds_for_parameters Ran
ran, honoured the contract we drafted
lcao11/constitutive_oed/linear/linear_viscoelasticity.py
code served (permissive licence) · get_code("89655f5cde4b0ca7")
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 float, shape (11, 2) 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

# Build a settings dictionary with all required keys
settings = {
    'n_parameters': 11,  # 0-8 for individual params, 9-10 for relaxation times
    'log_E1_0_range': np.array([1.0, 2.0]),
    'rho_range': np.array([0.5, 1.5]),
    'g_range': np.array([0.1, 0.9]),
    'c_range': np.array([0.2, 0.8]),
    'alpha_range': np.array([0.3, 0.7]),
    'f_range': np.array([0.0, 1.0]),
    'w_range': np.array([0.0, 2.0]),
    'log_relaxation_min': -5.0,
    'log_relaxation_increment': 1.5,
}

ARGS = {
    'settings': settings
}
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 float, shape (11, 2) — shape (11, 2) 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
set_bounds_for_parameters Ran
ran, honoured the contract we drafted
lcao11/constitutive_oed/nonlinear/nonlinear_viscoelasticity.py
code served (permissive licence) · get_code("1683b28d0f2c9736")
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 float, shape (20, 2) 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

ARGS = {
    'settings': {
        'n_prony': 3,
        'log_shear_range': np.array([0.5, 2.5]),
        'poisson_range': np.array([0.1, 0.4]),
        'eq_stiffness_log_ratio_range': np.array([-1.0, 1.0]),
        'eq_log_stiffening_range': np.array([0.0, 2.0]),
        'fiber_angle_range': np.array([-90.0, 90.0]),
        'viscous_shear_log_ratio_range': np.array([-2.0, 0.5]),
        'viscous_stiffness_log_ratio_range': np.array([-1.5, 1.5]),
        'viscous_stiffening_log_ratio_range': np.array([0.2, 2.0]),
        'rate_exponent_range': np.array([0.1, 1.0]),
        'log_relaxation_min': -3.0,
        'log_relaxation_increment': 0.5,
    }
}
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 float, shape (20, 2) — shape (20, 2) 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
setup_image_observation Ran
ran; our contract draft was wrong, not the code
lcao11/constitutive_oed/utils/image_observation.py
code served (permissive licence) · get_code("0adad090913e8592")
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 numpy as np

def inside_domain(coords: np.ndarray) -> np.ndarray:
    """
    A simple callable that checks if coordinates are inside a circular domain.
    Takes (N, 2) array and returns boolean array of length N.
    """
    # Simple circular domain centered at (2.0, 2.0) with radius 1.5
    center = np.array([2.0, 2.0])
    distances = np.linalg.norm(coords - center, axis=1)
    return distances <= 1.5

ARGS = {
    "image_corners_coords": np.array([[0.5, 0.5], [3.5, 3.5]], dtype=np.float64),
    "inside": inside_domain,
    "pixel_density": 2.0,
    "oversampling_factor": 1
}
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 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
speckled_reference Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lcao11/constitutive_oed/utils/image_observation.py
code served (permissive licence) · get_code("d1a9ca53b8e06d0e")
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 float, shape (3, 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

# Create a small binary mask (low-resolution)
mask = np.array([
    [True, True, False],
    [True, False, False],
    [False, False, True]
], dtype=bool)

# Define physical image corners: [[x0, y0], [x1, y1]]
image_corners = np.array([
    [0.0, 0.0],
    [10.0, 10.0]
], dtype=np.float64)

# Define speckle centers in physical coordinates (x, y)
centers = np.array([
    [2.5, 2.5],
    [7.5, 7.5],
    [5.0, 5.0]
], dtype=np.float64)

# Define speckle radii in physical units
radii = np.array([1.0, 1.5, 0.8], dtype=np.float64)

# Define contrast value between 0.0 and 1.0
contrast = 0.8

ARGS = {
    'mask': mask,
    'image_corners': image_corners,
    'centers': centers,
    'radii': radii,
    'contrast': contrast
}
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 float, shape (3, 3) — shape (3, 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

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 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 9 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

History-dependent constitutive models serve as macroscopic closures for the aggregated effects of micromechanics. Their parameters are typically learned from experimental data. With a limited experimental budget, eliciting the full range of responses needed to characterize the constitutive relation can be difficult. As a result, the data can be well explained by a range of parameter choices, leading to parameter estimates that are uncertain or unreliable. To address this issue, we propose a Bayesian optimal experimental design framework to quantify, interpret, and maximize the utility of experimental designs for reliable learning of history-dependent constitutive models. In this framework, the design utility is defined as the expected reduction in parametric uncertainty or the expected information gain. This enables in silico design optimization using simulated data and reduces the cost of physical experiments for reliable parameter identification. We introduce two approximations that make this framework practical for advanced material testing with expensive forward models and high-dimensional data: (i) a Gaussian approximation of the expected information gain, and (ii) a surrogate approximation of the Fisher information matrix. The former enables efficient design optimization and interpretation, while the latter extends this approach to batched design optimization by amortizing the cost of repeated utility evaluations. Our numerical studies of uniaxial tests for viscoelastic solids show that optimized specimen geometries and loading paths yield image and force data that significantly improve parameter identifiability relative to random designs, especially for parameters associated with memory effects.

For agents

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

get_harvested_code_for_paper("2603.12365")
get_code_for_paper("2603.12365")
have("2603.12365")

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

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

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

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

Connect an agent — have() is free.