SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.13213 · 2024

LLMOPT: Learning to Define and Solve General Optimization Problems from Scratch

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 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 0 have no contract verdict; 10 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2410.13213.json · badge: /api/ran/2410.13213.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
caigaojiang/llmopt canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
FunctionStatusWhere it lives
Q2C Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/generate_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("11a20109d1d4cded")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

Q2F Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/generate_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("424573ce442f730f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

QF2C Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/generate_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("c29fef2fb87e9fca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

aug_0 Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/augment_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("41f9c49df2146d47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

aug_1 Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/augment_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("ed125bc4a9ffd75d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

aug_2 Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/augment_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("d74190a8561fcb4d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

classification_background Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/classification_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("6897470becf3bcf2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

classification_type Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/classification_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("1b8cb3d807bbac67")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

preprocess Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/sft/sft.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("d1b60aa8fe0416e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

self_correction Ran
ran; our contract draft was wrong, not the code
caigaojiang/llmopt/prompts/self_correction_prompt.py
pointer only (licence: NONE); the stored copy get_code serves, from antgroup/LLMOPT, is pointer only (licence: NONE) · get_code("763114f4e6850981")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, caigaojiang/llmopt 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.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 10 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 10 later) and 0 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
Q2C 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
Q2F 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
QF2C 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
aug_0 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
aug_1 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
aug_2 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
classification_background 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
classification_type 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
preprocess 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources
self_correction 1 other paper
1 later
2606.25832 (2026-06)
MiniOpt: Reasoning to Model and Solve General Optimization Problems with Limited Resources

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-24.

Repositories linked to this paper

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

Abstract

Optimization problems are prevalent across various scenarios. Formulating and then solving optimization problems described by natural language often requires highly specialized human expertise, which could block the widespread application of optimization-based decision making. To automate problem formulation and solving, leveraging large language models (LLMs) has emerged as a potential way. However, this kind of approach suffers from the issue of optimization generalization. Namely, the accuracy of most current LLM-based methods and the generality of optimization problem types that they can model are still limited. In this paper, we propose a unified learning-based framework called LLMOPT to boost optimization generalization. Starting from the natural language descriptions of optimization problems and a pre-trained LLM, LLMOPT constructs the introduced five-element formulation as a universal model for learning to define diverse optimization problem types. Then, LLMOPT employs the multi-instruction tuning to enhance both problem formalization and solver code generation accuracy and generality. After that, to prevent hallucinations in LLMs, such as sacrificing solving accuracy to avoid execution errors, the model alignment and self-correction mechanism are adopted in LLMOPT. We evaluate the optimization generalization ability of LLMOPT and compared methods across six real-world datasets covering roughly 20 fields such as health, environment, energy and manufacturing, etc. Extensive experiment results show that LLMOPT is able to model various optimization problem types such as linear/nonlinear programming, mixed integer programming, and combinatorial optimization, and achieves a notable 11.08% average solving accuracy improvement compared with the state-of-the-art methods. The code is available at https://github.com/caigaojiang/LLMOPT.

For agents

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

get_harvested_code_for_paper("2410.13213")
get_code_for_paper("2410.13213")
have("2410.13213")

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

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

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

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

Connect an agent — have() is free.