SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2002.01927 · 2020

Self-Directed Online Machine Learning for Topology Optimization

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-21; 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/2002.01927.json · badge: /api/ran/2002.01927.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
deng-cy/deep_learning_topology_opt canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
bba Ran
ran on a synthesized input
deng-cy/deep_learning_topology_opt/fluid_fine/bba.py
code served (permissive licence) · get_code("369017c67f11d1e0")
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 torch.nn as nn
import math

torch.manual_seed(0)

# Define a simple nn.Module that acts as an evaluation function
class SimpleEvaluator(nn.Module):
    def __init__(self, dim):
        super().__init__()
        self.dim = dim
        # Register a dummy parameter so the model has a device
        self.register_parameter('dummy', nn.Parameter(torch.zeros(1)))
    
    def forward(self, x):
        # x shape: (n, dim)
        # Simple quadratic function: sum of squares
        return (x ** 2).sum(dim=1, keepdim=True)

# Create the evaluation function
func = SimpleEvaluator(dim=4)

# Create initial guess x0
# x0 should have shape (1, dim) based on how it's used in the code
x0 = torch.zeros(1, 4)

ARGS = {
    'func': func,
    'x0': x0,
    'n': 2,
    'maxiter': 5,
    'topk': 2,
    'is_min': True,
    'fmin': 0,
    'fmax': 2,
    'loud_A': 0.25,
    'r0': 0.4,
    'alpha': 0.999,
    'gamma': 10.0,
    'progress': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — 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
existpath Ran
ran on a synthesized input
deng-cy/deep_learning_topology_opt/fluid_coarse/utils.py
code served (permissive licence) · get_code("2819b4bc1aa5bce3")
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 bool, 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 torch
import numpy as np
from collections import defaultdict

# Construct a simple test case for existpath
# The function expects a 2D array/matrix X where:
# - 0 represents a valid path cell
# - 1 represents a wall/obstacle
# - 2 represents the source node
# - 3 represents the destination node

# Create a small 4x3 grid with a path from source (2) to destination (3)
X = [
    [2, 0, 1],
    [1, 0, 0],
    [0, 0, 1],
    [1, 1, 3]
]

ARGS = {
    "X": X
}
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 bool, 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
isSafe Ran
ran on a synthesized input
deng-cy/deep_learning_topology_opt/fluid_coarse/utils.py
code served (permissive licence) · get_code("c7bfc4d6af0a285c")
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 bool, 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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function: isSafe(i, j, nrow, ncol)
# The function checks if indices i and j are within bounds of nrow x ncol grid
# Parameters:
# - i: row index (integer)
# - j: column index (integer)
# - nrow: number of rows (integer)
# - ncol: number of columns (integer)

ARGS = {
    "i": 2,
    "j": 3,
    "nrow": 5,
    "ncol": 7
}
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 bool, 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
isvalid Ran
ran on a synthesized input
deng-cy/deep_learning_topology_opt/fluid_coarse/utils.py
code served (permissive licence) · get_code("36bd4a3809389a71")
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 bool, 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

# Create a valid maze represented as a 2D list
# 0 = passable, 1 = wall, 2 = start, 3 = end
X = [
    [0, 0, 0, 0, 0, 0, 0, 0],
    [1, 1, 0, 1, 1, 1, 1, 0],
    [0, 0, 0, 0, 0, 0, 0, 0],
    [0, 1, 1, 1, 1, 1, 1, 1],
    [0, 0, 0, 0, 0, 0, 0, 0],
    [1, 1, 0, 1, 1, 1, 1, 0],
    [0, 0, 0, 0, 0, 0, 0, 0],
    [0, 1, 1, 1, 1, 1, 1, 1],
]

ARGS = {
    "X": X
}
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 bool, 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
isvalid Ran
ran on a synthesized input
deng-cy/deep_learning_topology_opt/fluid_fine/utils.py
code served (permissive licence) · get_code("623b547bcb67bd36")
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 bool, 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 torch
import numpy as np
from collections import defaultdict

# Create a valid 16x8 grid with a path from source (2) to destination (3)
# The function expects:
# - X to be a 2D array/list/tensor
# - Dimensions: ny=16 (rows), nx=8 (columns)
# - 0 = passable, 1 = wall, 2 = source, 3 = destination

X = [
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 0: inlet will be placed at X[0][0]
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 1
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 2
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 3
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 4
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 5
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 6
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 7: inlet could also be here
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 8
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 9
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 10
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 11
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 12
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 13
    [0, 0, 0, 0, 0, 0, 0, 0],  # row 14
    [0, 1, 1, 1, 1, 1, 1, 0],  # row 15: outlet could be here
]

ARGS = {
    "X": X
}
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 bool, 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
ba Not yet run
unverified (harvested, no recorded run)
deng-cy/deep_learning_topology_opt/heat/ba.py
code served (permissive licence) · get_code("e116ef12c0f42eff")
How it ran

no invocation recorded.

bba Not yet run
unverified (harvested, no recorded run)
deng-cy/deep_learning_topology_opt/fluid_coarse/bba.py
code served (permissive licence) · get_code("f6fb88ce45c39560")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

Topology optimization by optimally distributing materials in a given domain requires non-gradient optimizers to solve highly complicated problems. However, with hundreds of design variables or more involved, solving such problems would require millions of Finite Element Method (FEM) calculations whose computational cost is huge and impractical. Here we report Self-directed Online Learning Optimization (SOLO) which integrates Deep Neural Network (DNN) with FEM calculations. A DNN learns and substitutes the objective as a function of design variables. A small number of training data is generated dynamically based on the DNN's prediction of the optimum. The DNN adapts to the new training data and gives better prediction in the region of interest until convergence. The optimum predicted by the DNN is proved to converge to the true global optimum through iterations. Our algorithm was tested by four types of problems including compliance minimization, fluid-structure optimization, heat transfer enhancement and truss optimization. It reduced the computational time by 2 ~ 5 orders of magnitude compared with directly using heuristic methods, and outperformed all state-of-the-art algorithms tested in our experiments. This approach enables solving large multi-dimensional optimization problems.

For agents

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

get_harvested_code_for_paper("2002.01927")
get_code_for_paper("2002.01927")
have("2002.01927")

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

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

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

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

Connect an agent — have() is free.