Metadata-Version: 2.4
Name: llm4ad
Version: 1.20.0
Summary: Large Language Model for Algorithm Design Platform 
Home-page: https://github.com/Optima-CityU/LLM4AD
Author: LLM4AD Developers
License: BSD-2-Clause AND Apache-2.0
Project-URL: Source, https://github.com/Optima-CityU/LLM4AD
Project-URL: Documentation, https://llm4ad-doc.readthedocs.io/en/latest/
Project-URL: Issues, https://github.com/Optima-CityU/LLM4AD/issues
Project-URL: Changelog, https://github.com/Optima-CityU/LLM4AD/blob/main/CHANGELOG.md
Requires-Python: >=3.9,<3.14
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSES/Apache-2.0.txt
License-File: NOTICE
License-File: THIRD_PARTY_NOTICES.md
Requires-Dist: numpy<3,>=1.24
Requires-Dist: matplotlib
Requires-Dist: pytz
Requires-Dist: tqdm
Provides-Extra: gui
Requires-Dist: ttkbootstrap; extra == "gui"
Requires-Dist: PyYAML; extra == "gui"
Provides-Extra: numba
Requires-Dist: numba; extra == "numba"
Provides-Extra: tensorboard
Requires-Dist: torch; extra == "tensorboard"
Requires-Dist: tensorboard; extra == "tensorboard"
Provides-Extra: wandb
Requires-Dist: wandb; extra == "wandb"
Provides-Extra: openai
Requires-Dist: openai; extra == "openai"
Provides-Extra: local-vllm
Requires-Dist: requests; extra == "local-vllm"
Requires-Dist: psutil; extra == "local-vllm"
Requires-Dist: torch; extra == "local-vllm"
Requires-Dist: flask; extra == "local-vllm"
Requires-Dist: flask-cors; extra == "local-vllm"
Requires-Dist: transformers; extra == "local-vllm"
Requires-Dist: vllm; extra == "local-vllm"
Provides-Extra: local-ollama
Requires-Dist: langchain-ollama; extra == "local-ollama"
Provides-Extra: funsearch
Requires-Dist: scipy; extra == "funsearch"
Provides-Extra: multi-objective
Requires-Dist: pymoo; extra == "multi-objective"
Provides-Extra: meoh
Requires-Dist: pymoo; extra == "meoh"
Requires-Dist: tree-sitter==0.23.2; extra == "meoh"
Requires-Dist: tree-sitter-python==0.23.0; extra == "meoh"
Provides-Extra: partevo
Requires-Dist: tree-sitter==0.23.2; extra == "partevo"
Requires-Dist: tree-sitter-python==0.23.0; extra == "partevo"
Requires-Dist: scikit-learn; extra == "partevo"
Requires-Dist: seaborn; extra == "partevo"
Requires-Dist: torch; extra == "partevo"
Requires-Dist: transformers; extra == "partevo"
Provides-Extra: llamea
Requires-Dist: llamea==1.2.0; extra == "llamea"
Requires-Dist: ConfigSpace; extra == "llamea"
Provides-Extra: machine-learning
Requires-Dist: gymnasium[box2d]; extra == "machine-learning"
Provides-Extra: science-discovery
Requires-Dist: pandas; extra == "science-discovery"
Requires-Dist: scipy; extra == "science-discovery"
Requires-Dist: sympy; extra == "science-discovery"
Provides-Extra: pymoo-task
Requires-Dist: pymoo; extra == "pymoo-task"
Provides-Extra: co-bench
Requires-Dist: datasets; extra == "co-bench"
Requires-Dist: huggingface_hub; extra == "co-bench"
Requires-Dist: httpx; extra == "co-bench"
Requires-Dist: httpcore; extra == "co-bench"
Requires-Dist: networkx; extra == "co-bench"
Requires-Dist: scipy; extra == "co-bench"
Provides-Extra: tsp-gls
Requires-Dist: numba; extra == "tsp-gls"
Requires-Dist: scipy; extra == "tsp-gls"
Provides-Extra: test
Requires-Dist: coverage<8,>=7; extra == "test"
Requires-Dist: build<2,>=1; extra == "test"
Requires-Dist: twine<8,>=5; extra == "test"
Provides-Extra: benchmark
Requires-Dist: psutil>=5; extra == "benchmark"
Provides-Extra: docs
Requires-Dist: sphinx<10,>=7; extra == "docs"
Requires-Dist: myst-parser<6,>=2; extra == "docs"
Requires-Dist: furo; extra == "docs"
Provides-Extra: all
Requires-Dist: ConfigSpace; extra == "all"
Requires-Dist: PyYAML; extra == "all"
Requires-Dist: datasets; extra == "all"
Requires-Dist: flask; extra == "all"
Requires-Dist: flask-cors; extra == "all"
Requires-Dist: gymnasium[box2d]; extra == "all"
Requires-Dist: httpcore; extra == "all"
Requires-Dist: httpx; extra == "all"
Requires-Dist: huggingface_hub; extra == "all"
Requires-Dist: langchain-ollama; extra == "all"
Requires-Dist: llamea==1.2.0; extra == "all"
Requires-Dist: networkx; extra == "all"
Requires-Dist: numba; extra == "all"
Requires-Dist: openai; extra == "all"
Requires-Dist: pandas; extra == "all"
Requires-Dist: psutil; extra == "all"
Requires-Dist: psutil>=5; extra == "all"
Requires-Dist: pymoo; extra == "all"
Requires-Dist: requests; extra == "all"
Requires-Dist: scikit-learn; extra == "all"
Requires-Dist: scipy; extra == "all"
Requires-Dist: seaborn; extra == "all"
Requires-Dist: sympy; extra == "all"
Requires-Dist: tensorboard; extra == "all"
Requires-Dist: torch; extra == "all"
Requires-Dist: transformers; extra == "all"
Requires-Dist: tree-sitter-python==0.23.0; extra == "all"
Requires-Dist: tree-sitter==0.23.2; extra == "all"
Requires-Dist: ttkbootstrap; extra == "all"
Requires-Dist: vllm; extra == "all"
Requires-Dist: wandb; extra == "all"
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

<div align="center">
<h1 align="center">
<img src="./assets/figs/logo.png" alt="LLM4AD Logo" style="width: 90%; height: auto;">
</h1>
<h1 align="center">
LLM4AD: Large Language Model for Algorithm Design
</h1>

[![Releases](https://img.shields.io/badge/Release-1.20.0-blue)](https://github.com/Optima-CityU/LLM4AD/releases)
![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-brightgreen.svg)
[![PR's Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Optima-CityU/LLM4AD/pulls)
![Python](https://img.shields.io/badge/Python-3.9--3.13-blue)
[![License](https://img.shields.io/badge/License-BSD-important)](https://github.com/Optima-CityU/LLM4AD/blob/main/LICENSE)
[![Documentation Status](https://readthedocs.org/projects/llm4ad-doc/badge/?version=latest)](https://llm4ad-doc.readthedocs.io/en/latest/?badge=latest)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Optima-CityU/llm4ad/blob/main/example/online_bin_packing/online_bin_packing_tutorial.ipynb)

[Website](http://www.llm4ad.com/)
| [Documentation](https://llm4ad-doc.readthedocs.io/en/latest/)
| [Examples](https://github.com/Optima-CityU/LLM4AD/tree/main/example)
| [GUI](https://github.com/Optima-CityU/LLM4AD/tree/main/GUI)
| [Changelog](./CHANGELOG.md)
| [Contributing](./CONTRIBUTING.md)

</div>
<br>

## 📖 Introduction 

LLM4AD is an open-source Python-based Platform leveraging **Large Language Models (LLMs)** for **Automatic Algorithm Design (AD)**. Please refer to the [paper](https://arxiv.org/pdf/2412.17287) [LLM4AD] for detailed information, including
the overview, methodology, and benchmark results.

LLM4AD is accomplished with [Documents](https://llm4ad-doc.readthedocs.io/en/latest/) and [Examples](https://github.com/Optima-CityU/LLM4AD/tree/main/example) materials to support users and developers to easily test, build and deploy their
own LLM4AD applications and conduct research.

LLM4AD was originally developed for [optimisation tasks](https://llm4ad-doc.readthedocs.io/en/latest/task/optimization/index.html). The framework is versatile enough to be used in other areas,
including [machine learning](https://llm4ad-doc.readthedocs.io/en/latest/task/machine_learning/index.html), [science discovery](https://llm4ad-doc.readthedocs.io/en/latest/task/science_discovery/index.html), game theory and engineering
design.

For more information, see the [contact list](https://github.com/Optima-CityU/LLM4AD#Contact)

<img src="./assets/figs/overview.png" alt="llm4ad" style="zoom:50%;" />

## 🔥 News
+ 2026.02 🎉🎉 **New Champion!** Our LLM4AD system won the [CVRPLib BKS competition](https://galgos.inf.puc-rio.br/cvrplib/index.php/en/bks_challenge/score/) and established **51 new Best Known Solutions** on large-scale CVRP benchmarks.

+ 2026.01 🎉🎉 Our Survey Paper ["A Systematic Survey on Large Language Models for Algorithm Design"](https://arxiv.org/pdf/2410.14716) has been accepted by [**ACM Computing Surveys**](https://dl.acm.org/journal/csur) ! A Rep for the Survey can be found [here](https://github.com/FeiLiu36/LLM4AlgorithmDesign)

+ 2025.6 🎉🎉 We're excited to share that **EoH** recently set a **New World Record in Circle Packing Problem**, achieving a score of 2.63594 for 26 circles !  [Results here](https://github.com/Optima-CityU/llm4ad/tree/main/example/circle_packing)

+ 2025.6  🎉🎉 **LLM4AD** at [**CEC 2025 Tutorial**](https://www.researchgate.net/publication/392654766_CEC_2025_Tutorial_Automated_Algorithm_Design_with_Large_Language_Model) !

+ 2025.3 🎉🎉 **LLM4AD** at [**EMO 2025 Tutorial**](https://www.researchgate.net/publication/392655029_EMO_2025_Tutorial_Algorithm_Design_Using_Large_Language_Model) !

+ 2024.12 🎉🎉 **LLM4AD paper Released** [“LLM4AD: A Platform for Algorithm Design with Large Language Model"](https://arxiv.org/pdf/2412.17287) !

+ 2024.11 🎉🎉 **LLM4AD v1.0 Released**  !

+ 2024.10 🎉🎉 **Survey Paper** [“A Systematic Survey on Large Language Models for Algorithm Design”](https://arxiv.org/pdf/2410.14716) is online !

## 💡 Features of our package

| Feature                                                      | Support / To be supported |
| ------------------------------------------------------------ | ------------------------- |
| **Unified Interfaces** for methods, tasks, LLMs              | 🔥Support                  |
| **Evaluation acceleration:** multiprocessing evaluation      | 🔥Support                  |
| **Process evaluation:** separate process and optional wall-clock timeout; see [security limits](./SECURITY.md) | 🔥Support                  |
| **Logs:** local logs, Wandb and Tensorboard support          | 🔥Support                  |
| **GUI:** methods selection, tasks selection, convergence, best algorithm, ... | 🔥Support                  |
| **Checkpoint warm starts**                                  | [Method-dependent support and limits](./docs/reproducibility.md#checkpoint-warm-starts) |
| Support other programming languages                          | 🚀Coming soon              |
| More search methods                                          | 🚀Coming soon              |
| More task examples                                           | 🚀Coming soon              |

## 🎁 Requirements & Installation

> [!Important]
> The core supports Python 3.9 through 3.13. Optional features can have narrower dependency limits.

LLM4AD uses a small core installation. GUI, local-model, logging and specialized task dependencies are optional extras. The core targets Python 3.9–3.13; optional features have [separate compatibility limits](./docs/engineering.md).

**Install from PyPI**

```bash
$ pip install llm4ad
```

To install every optional dependency from PyPI:

```bash
$ pip install "llm4ad[all]"
```

**Install from source**

Run these commands from the repository root, where `setup.py` is located:

```bash
$ cd LLM4AD
$ pip install .
```

To install every optional dependency from a cloned repository:

```bash
$ cd LLM4AD
$ pip install ".[all]"
```

Use `llm4ad[extra-name]` when installing from PyPI, and `.[extra-name]` when installing from a local clone. The `all` extra installs every optional dependency, including local-vLLM dependencies. If your platform cannot install vLLM, install only the smaller extras you need from the tables below.

**Method optional dependencies**

| Method | Extra packages |
| --- | --- |
| FunSearch | Local: `pip install ".[funsearch]"`<br>PyPI: `pip install "llm4ad[funsearch]"`<br>`scipy` |
| MOEAD / NSGA2 | Local: `pip install ".[multi-objective]"`<br>PyPI: `pip install "llm4ad[multi-objective]"`<br>`pymoo` |
| MEoH | Local: `pip install ".[meoh]"`<br>PyPI: `pip install "llm4ad[meoh]"`<br>`pymoo`, `tree-sitter`, `tree-sitter-python`, plus CodeBLEU 0.7.1 (see below) |
| PartEvo | Local: `pip install ".[partevo]"`<br>PyPI: `pip install "llm4ad[partevo]"`<br>`tree-sitter`, `tree-sitter-python`, `scikit-learn`, `seaborn`, `torch`, `transformers`, plus CodeBLEU 0.7.1 (see below) |
| LLaMEA | Local: `pip install ".[llamea]"`<br>PyPI: `pip install "llm4ad[llamea]"`<br>`llamea`, `ConfigSpace` |

MEoH and PartEvo compare programs with CodeBLEU. The PyPI release `codebleu==0.7.0` requires `tree-sitter<0.23` and cannot load the Python grammar, so install the compatible 0.7.1 build from GitHub after the extra:

```shell
python -m pip install "codebleu @ https://github.com/k4black/codebleu/archive/b0edb622f6a52fe9d1edc407be5061d3e1462a7f.zip" "tree-sitter==0.23.2" "tree-sitter-python==0.23.0"
```

MEoH and PartEvo (with `'ast'` features) check this when they are created and stop with this command if CodeBLEU is missing or incompatible.

**Task optional dependencies**

| Task | Extra packages |
| --- | --- |
| Machine-learning control tasks | Local: `pip install ".[machine-learning]"`<br>PyPI: `pip install "llm4ad[machine-learning]"`<br>`gymnasium[box2d]` |
| Science-discovery tasks | Local: `pip install ".[science-discovery]"`<br>PyPI: `pip install "llm4ad[science-discovery]"`<br>`pandas`, `scipy`, `sympy` |
| Pymoo MOEA/D task | Local: `pip install ".[pymoo-task]"`<br>PyPI: `pip install "llm4ad[pymoo-task]"`<br>`pymoo` |
| Co-Bench tasks | Local: `pip install ".[co-bench]"`<br>PyPI: `pip install "llm4ad[co-bench]"`<br>`datasets`, `huggingface_hub`, `httpx`, `httpcore`, `networkx`, `scipy` |
| TSP GLS 2O task | Local: `pip install ".[tsp-gls]"`<br>PyPI: `pip install "llm4ad[tsp-gls]"`<br>`numba`, `scipy` |

**Tool optional dependencies**

| Tool | Extra install |
| --- | --- |
| TensorBoard profiler | Local: `pip install ".[tensorboard]"`<br>PyPI: `pip install "llm4ad[tensorboard]"`<br>`torch`, `tensorboard` |
| Weights & Biases profiler | Local: `pip install ".[wandb]"`<br>PyPI: `pip install "llm4ad[wandb]"`<br>`wandb` |
| OpenAI backend | Local: `pip install ".[openai]"`<br>PyPI: `pip install "llm4ad[openai]"`<br>`openai` |
| Local Ollama backend | Local: `pip install ".[local-ollama]"`<br>PyPI: `pip install "llm4ad[local-ollama]"`<br>`langchain-ollama` |
| Local vLLM backend | Local: `pip install ".[local-vllm]"`<br>PyPI: `pip install "llm4ad[local-vllm]"`<br>`requests`, `psutil`, `torch`, `flask`, `flask-cors`, `transformers`, `vllm` |


## Development quality and reproducibility

This is version **1.20.0**. See
[CHANGELOG](./CHANGELOG.md), [contributing](./CONTRIBUTING.md),
and [execution limits](./SECURITY.md).

```shell
python -m unittest discover -s tests -v
python -m pip install ".[test,docs]"
python -m coverage run -m unittest discover -s tests
python -m coverage combine
python -m coverage json
python -m sphinx -W -b html docs docs/_build/html
```

[API reference](./docs/api.rst), [developer guides](./docs/development.md),
[record/replay and local open-weight example](./docs/reproducibility.md), and
[task catalogue/counting rules](./docs/task_catalogue.md) are versioned with the code.
Response replay supports deterministic serial evaluation; it does not guarantee
identical new generations from a remote or local model. Process separation and
timeouts are **not an adversarial-code sandbox**.

## 💻 Example Usage

### Quick Start:

> [!Note]
> Configure your LLM api before running the script. For example:
>
> 1) Set `host`: 'api.deepseek.com'
> 2) Set `key`: 'your api key'
> 3) Set `model`: 'deepseek-chat'

```python
from llm4ad.task.optimization.online_bin_packing import OBPEvaluation
from llm4ad.tools.llm.llm_api_https import HttpsApi
from llm4ad.method.eoh import EoH, EoHProfiler

if __name__ == '__main__':
    llm = HttpsApi(
        host='xxx',   # your host endpoint, e.g., api.openai.com, api.deepseek.com
        key='sk-xxx', # your key, e.g., sk-xxxxxxxxxx
        model='xxx',  # your llm, e.g., gpt-3.5-turbo, deepseek-chat
        timeout=20
    )
    task = OBPEvaluation()
    method = EoH(
        llm=llm,
        profiler=EoHProfiler(log_dir='logs/eoh', log_style='simple'),
        evaluation=task,
        max_sample_nums=20,
        max_generations=10,
        pop_size=4,
        num_samplers=1,
        num_evaluators=1,
        debug_mode=False
    )
    method.run()
```

### More Examples:

+ [Constructive Heuristics for TSP](https://github.com/Optima-CityU/LLM4AD/blob/main/example/tsp_construct/run_eoh.py)
+ [Constructive Heuristics for VRPTW](https://github.com/Optima-CityU/LLM4AD/blob/main/example/vrptw_construct/run_eoh.py)
+ ...

Check [Documents](https://llm4ad-doc.readthedocs.io/en/latest/index.html) for more tasks and examples

### GUI usage:

> [!Important]
> Install GUI dependencies with `pip install ".[gui]"` from a source checkout. For machine-learning tasks, use `pip install ".[gui,machine-learning]"`. The launcher currently runs from the checkout, not from the wheel.

```shell
$ cd GUI
$ python run_gui.py
```

Check [GUI Introduction](https://llm4ad-doc.readthedocs.io/en/latest/getting_started/gui.html) for more information

<img src="./assets/figs/gui.gif" alt="llm4ad" style="zoom:80%;" />

## 📦 LLM4AD Search Methods

| Methods                           | Paper title                                                  |
| --------------------------------- | ------------------------------------------------------------ |
| **EoH**                           | [Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model](https://openreview.net/pdf?id=BwAkaxqiLB) (ICML 2024)<br>[Algorithm Evolution using Large Language Model](https://arxiv.org/abs/2311.15249) (Arxiv 2023, AEL, the early version of EoH) |
| **HSEvo**                         | [HSEvo: Elevating Automatic Heuristic Design with Diversity-Driven Harmony Search and Genetic Algorithm Using LLMs](https://arxiv.org/abs/2412.14995) (AAAI 2025) |
| **MEoH**                          | [Multi-objective Evolution of Heuristic Using Large Language Model](https://arxiv.org/abs/2409.16867) (AAAI 25) |
| **FunSearch**                     | [Mathematical Discoveries from Program Search with Large Language Models](https://www.nature.com/articles/s41586-023-06924-6) (Nature 2024) |
| **(1+1)-EPS** <br/>(HillClimbing) | [Understanding the Importance of Evolutionary Search in Automated Heuristic Design with Large Language Models](https://arxiv.org/abs/2407.10873) (PPSN 2024) |
| **ReEvo**                         | [Reevo: Large language models as hyper-heuristics with reflective evolution](https://proceedings.neurips.cc/paper_files/paper/2024/hash/4ced59d480e07d290b6f29fc8798f195-Abstract-Conference.html) (NeurIPS 2024) |
| **MCTS-AHD**                          | [Monte carlo tree search for comprehensive exploration in llm-based automatic heuristic design](https://arxiv.org/abs/2501.08603) (ICML 2025)                                                  |
| **LHNS**                          | [LLM-Driven Neighborhood Search for Efficient Heuristic Design](https://scholar.google.com/citations?view_op=view_citation&hl=en&user=wS0G_qQAAAAJ&sortby=pubdate&citation_for_view=wS0G_qQAAAAJ:sfnaS5RM6jYC) (CEC 2025) |
| **PartEvo**                | [Partition to Evolve: Niching-enhanced Evolution with LLMs for Automated Algorithm Discovery](https://openreview.net/forum?id=OEawM2coNT) (NeurIPS 2025) |
| **LLaMEA**      | [LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristics](https://ieeexplore.ieee.org/abstract/document/10752628)(IEEE TEVC 2025) |
| **EoH-S**                         | [EoH-S: Evolution of Heuristic Set using LLMs for Automated Heuristic Design](https://arxiv.org/abs/2508.03082) (AAAI 2026) |
| **MLES**                          | [Multimodal LLM-assisted Evolutionary Search for Programmatic Control Policies](https://arxiv.org/abs/2508.05433) (ICLR 2026) |
| Others                            | Coming soon                                                  |



## ⚙️ LLM4AD Algorithm Design Tasks

| Area              | Algorithm Task                                               | Paper                                                        |
| ----------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| Optimization      | [Online Bin Packing, Constructive heuristic]                 | [paper](https://openreview.net/pdf?id=BwAkaxqiLB)            |
|                   | [Traveling Salesman Problem (TSP), Construct heuristic](https://llm4ad-doc.readthedocs.io/en/latest/task/optimization/tsp_construct.html) | [paper](https://arxiv.org/pdf/2311.15249)                    |
|                   | Traveling Salesman Problem (TSP), Guided local search        | [paper](https://openreview.net/pdf?id=BwAkaxqiLB)            |
|                   | 1-dimensional Bin Packing (BP1D), Construct heuristic        | paper                                                        |
|                   | 2-dimensional Bin Packing (BP2D), Construct heuristic        | paper                                                        |
|                   | Capacitated Facility Location Problem (CFLP), Construct heuristic | paper                                                        |
|                   | Knapsack Problem (KP), Construct heuristic                   | paper                                                        |
|                   | Quadratic Assignment Problem (QAP), Construct heuristic      | paper                                                        |
|                   | Set Cover Problem (SCP), Construct heuristic                 | paper                                                        |
|                   | Flow Shop Scheduling Problem (FSSP), Construct heuristic     | paper                                                        |
|                   | Flow Shop Scheduling Problem (FSSP), Guided local search     | [paper](https://openreview.net/pdf?id=BwAkaxqiLB)            |
|                   | Bayesian Optimization, Cost-aware Acquisition Function Design | [paper](https://arxiv.org/abs/2404.16906)                    |
|                   | Co-Bench: Benchmarking Language Model Agents in Algorithm Search for Combinatorial Optimization | [paper](https://arxiv.org/abs/2504.04310)                    |
|                   | [Pymoo MOEA/D](https://github.com/Optima-CityU/llm4ad/tree/main/example/pymoo_moead) | [paper](https://ieeexplore.ieee.org/abstract/document/9078759) |
| Machine Learning  | Adversarial Attack, Attack strategy                          | [paper](https://arxiv.org/abs/2401.15335)                    |
|                   | [Acrobot, Heuristic (Agent)](https://llm4ad-doc.readthedocs.io/en/latest/task/machine_learning/acrobot.html) |                                                              |
|                   | [Cart Pole, Heuristic (Agent)](https://llm4ad-doc.readthedocs.io/en/latest/task/machine_learning/car_pole.html) |                                                              |
|                   | [Mountain Car, Heuristic (Agent)](https://llm4ad-doc.readthedocs.io/en/latest/task/machine_learning/mountain_car.html) |                                                              |
| Science Discovery | Computational fluid dynamics, Turbulence model design        | [paper](https://arxiv.org/pdf/2410.10657)                    |
|                   | [Bacteria Growth, Function](https://llm4ad-doc.readthedocs.io/en/latest/task/science_discovery/bacteria_grow.html) |                                                              |
|                   | [Oscillator, Equation](https://llm4ad-doc.readthedocs.io/en/latest/task/science_discovery/oscillator1.html) |                                                              |
|                   | [Stress & Strain, Equation](https://llm4ad-doc.readthedocs.io/en/latest/task/science_discovery/stress_strain.html) |                                                              |
| Math              | Admissible Sets                                              | [paper](https://www.nature.com/articles/s41586-023-06924-6)  |
| coming soon ...   |                                                              |                                                              |

## 🤖 LLM Interfaces

There are three approaches on LLM interface implementation, check [Tutorial on LLM interface implementation](https://llm4ad-doc.readthedocs.io/en/latest/dev/llm.html) for more information.

+ **Remote LLM API** (e.g., GPT4o, GPT3.5, Gemini Pro, Deepseek ...) (**<Recommended !!!>**)
+ **Local HuggingFace LLM Deployment** (e.g., Llamacode, Llama, Gemma, Deepseek, ...)
+ **Your Implementation** If you want to use your own GPT API or local LLMs deployment, please create and add your interface in [LLM](https://github.com/Optima-CityU/LLM4AD/tree/main/llm4ad/tools/llm)

## 🏫 Tutorial: How to Use LLM4AD to Solve Your Algorithm Design Task

A Step-by-step Tutorial on using LLM4AD to solve your algorithm design task is provided [here](https://llm4ad-doc.readthedocs.io/en/latest/dev/run_new_task.html#)

## :question:QAs

Find responses to some common questions in our [Discussion Area](https://github.com/Optima-CityU/llm4ad/discussions)

[Frequently asked questions](https://github.com/Optima-CityU/LLM4AD/discussions/48)

## 🪪 Licence

The primary project license is **BSD-2-Clause**; see [LICENSE](./LICENSE). The bundled DeepMind FunSearch database retains **Apache-2.0**; see [NOTICE](./NOTICE) and [third-party notices](./THIRD_PARTY_NOTICES.md). Academic citation and contacting the team for commercial collaboration are voluntary, not license conditions.

## ✨ Reference

If you find LLM4AD helpful please cite:

```bibtex
@article{liu2024llm4ad,
    title = {LLM4AD: A Platform for Algorithm Design with Large Language Model},
    author = {Fei Liu and Rui Zhang and Zhuoliang Xie and Rui Sun and Kai Li and Xi Lin and Zhenkun Wang and Zhichao Lu and Qingfu Zhang},
    year = {2024},
    eprint = {2412.17287},
    archivePrefix = {arXiv},
    primaryClass = {cs.AI},
    url = {https://arxiv.org/abs/2412.17287},
}
```

## 📒 About LLM4AD

This platform is developed and maintained by LLM4AD developer group from the City University of Hong Kong (CityUHK) and the Southern University of Science and Technology (SUSTech). We develop LLM4AD platform for research purposes and hope
to contribute to the research area by delivering tools for LLM-based algorithm design methods.

+ **Contribution:** We are more than welcome to contribute (see our 📖 [contribution guide](./CONTRIBUTING.md)) including developing code and ideas to improve our platform.
+ **Issue:** If you find a bug or you have any kind of concern regarding the correctness, please report us an [issue](https://github.com/Optima-CityU/llm4ad/issues).
+ **Commercial collaboration:** Contacting [us](http://www.llm4ad.com/contact.html) is welcome and entirely optional; commercial use does not require permission or contact under the license.

## :star: Star Trends

[![Star History Chart](https://api.star-history.com/svg?repos=Optima-CityU/llm4ad&type=Date)](https://star-history.com/#Optima-CityU/llm4ad&Date)

## ☎️ Contact

If you are interested in LLM4AD or if you encounter any difficulty using the platform, you can:

1. Visit our website [LLM4AD Web](http://www.llm4ad.com)

2. Visit our collection [a collection of resources and research papers on LLM4AD](https://github.com/FeiLiu36/LLM4Opt)

3. Visit [Discussions](https://github.com/Optima-CityU/llm4ad/discussions) to connect with other members of our community

4. Join our QQ Group

   <img src="./assets/figs/qq.png" alt="LLM4AD Logo" style="width: 30%; height: auto;">

5. Contact us through email fliu36-c@my.cityu.edu.hk

6. Submit an [issue](https://github.com/Optima-CityU/LLM4AD)

## Contributors

Any new ideas, features, and improvements are welcomed!

You can contribute to LLM4AD follow our 📖 [Contribution Guide](./CONTRIBUTING.md).

Thank you for contributing to LLM4AD and welcome to being part of the LLM4AD community! :sparkles:

<table>
  <tbody>
    <tr>
      <td align="center" valign="top" width="12.5%"><a href="https://github.com/FeiLiu36"><img src="https://avatars.githubusercontent.com/FeiLiu36" width="50px;" alt="Fei Liu"/><br /><sub><b>Fei Liu</b></sub></td>
<td align="center" valign="top" width="12.5%"><a href="https://ahalikai.github.io/"><img src="https://github.com/Ahalikai/Ahalikai.github.io/blob/main/Aha.jpg?raw=true" width="50px;" alt="Kai Li"/><br /><sub><b>Kai Li</b></sub>
        </td>
      <td align="center" valign="top" width="12.5%"><a href="https://github.com/SunnyR7"><img src="https://avatars.githubusercontent.com/SunnyR7" width="50px;" alt="Rui Sun"/><br /><sub><b>Rui Sun</b></sub></td>
      <td align="center" valign="top" width="12.5%"><a href="https://github.com/Acquent0"><img src="https://avatars.githubusercontent.com/Acquent0" width="50px;" alt="Julian XIE"/><br  /><sub><b>Julian XIE</b></sub>
        </td>
 <td align="center" valign="top" width="12.5%"><a href="https://github.com/ShunyuYao6"><img src="https://avatars.githubusercontent.com/ShunyuYao6" width="50px;" alt="Shunyu Yao"/><br /><sub><b>Shunyu Yao</b></sub>
        </td>
     <td align="center" valign="top" width="12.5%"><a href="https://github.com/RayZhhh"><img src="https://avatars.githubusercontent.com/RayZhhh" width="50px;" alt="Rui Zhang"/><br /><sub><b>Rui Zhang</b></sub>
        </td>
     <td align="center" valign="top" width="12.5%"><a href="https://github.com/sunnweiwei"><img src="https://avatars.githubusercontent.com/sunnweiwei" width="50px;" alt="Weiwei Sun"/><br /><sub><b>Weiwei Sun</b></sub>
        </td>
         <td align="center" valign="top" width="12.5%"><a href="https://github.com/zz1358m"><img src="https://avatars.githubusercontent.com/zz1358m" width="50px;" alt="Zhi Zheng"/><br /><sub><b>Zhi Zheng</b></sub>
        </td>
         <td align="center" valign="top" width="12.5%"><a href="https://github.com/QingL2000"><img src="https://avatars.githubusercontent.com/QingL2000" width="50px;" alt="Qinglong Hu"/><br /><sub><b>Qinglong Hu</b></sub>
        </td>
    </tr>
  </tbody>
</table>
