🎯 Mathematical Modeling Agent • 📊 Automated Problem Solving
🤖 Intelligent Code Generation • 📈 End-to-End Workflow
📄 NeurIPS 2025 Paper •  💬 Join WeChat Group •  ⭐ Star Us
We propose MM-Agent, a mathematical modeling system that simulates the real-world human process of solving mathematical problems. Inspired by expert workflows, our agent systematically analyzes unstructured problem descriptions, formulates structured mathematical models, derives solutions through autonomous code generation, and generates comprehensive analytical reports.
Our paper has been accepted by NeurIPS 2025 and is available on arXiv.
💡 Note: Click the link above to watch the demo on GitHub.
MM-Agent simulates the complete human process of mathematical modeling:
Initialize your modeling workspace effortlessly.

Simply upload your problem statement and datasets.

The agent intelligently selects and builds mathematical models.

Execute complex data analysis and generate visualizations.

Auto-generate professional reports and academic papers.

Track and manage multiple modeling projects efficiently.

The agent simulates a real-world mathematical modeling workflow through four structured stages:
🧠 Problem Analysis
📐 Mathematical Modeling
🧮 Computational Solving
📝 Solution Reporting
Hierarchical Mathematical Modeling Library (HMML) - A tri-level knowledge hierarchy encompassing:
HMML enables both problem-aware and solution-aware retrieval of modeling strategies, supporting abstraction and method selection through an actor-critic mechanism.
Our demo is available at Hugging Face Spaces.
We provide a local-deployable open-source demo in demo/. It keeps the production-style web service structure, including the Next.js frontend, FastAPI backend, local SQLite storage, BYOK configuration, and one-command startup scripts.
Run it with:
bash demo/scripts/run.sh
This package removes committed secrets, public deployment hosts, invite-code scripts, backdoor account scripts, Redis/object-storage runtime state, logs, and historical outputs, while keeping the full local workflow structure.
gpt-4odeepseek-R1You can directly run the Mathematical Modeling Agent with:
python MMAgent/main.py --key "your_openai_key" --task "task_id"
Example:
python MMAgent/main.py --key "sk-XXX" --task "2024_C"
Here, task corresponds to the problem ID from MM-Bench (e.g., "2024_C" refers to the 2024 MCM problem C).
git clone git@github.com:usail-hkust/LLM-MM-Agent.git
conda create --name math_modeling python=3.10
conda activate math_modeling
cd LLM-MM-Agent
pip install -r requirements.txt
Join our WeChat group for updates and service support!
For questions and discussions, welcome to:
Source code is licensed under the CC BY-NC 4.0.
If you find this project helpful, feel free to explore more of our work!
🔥 DSLIGHTING - End-to-End Data Science Intelligent Assistant
More Projects: usail-hkust
@misc{mmagent,
title={MM-Agent: LLM as Agents for Real-world Mathematical Modeling Problem},
author={Fan Liu and Zherui Yang and Cancheng Liu and Tianrui Song and Xiaofeng Gao and Hao Liu},
year={2025},
eprint={2505.14148},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2505.14148}
}
Python
100.0%
🎯 Mathematical Modeling Agent • 📊 Automated Problem Solving
🤖 Intelligent Code Generation • 📈 End-to-End Workflow
📄 NeurIPS 2025 Paper •  💬 Join WeChat Group •  ⭐ Star Us
We propose MM-Agent, a mathematical modeling system that simulates the real-world human process of solving mathematical problems. Inspired by expert workflows, our agent systematically analyzes unstructured problem descriptions, formulates structured mathematical models, derives solutions through autonomous code generation, and generates comprehensive analytical reports.
Our paper has been accepted by NeurIPS 2025 and is available on arXiv.
💡 Note: Click the link above to watch the demo on GitHub.
MM-Agent simulates the complete human process of mathematical modeling:
Initialize your modeling workspace effortlessly.

Simply upload your problem statement and datasets.

The agent intelligently selects and builds mathematical models.

Execute complex data analysis and generate visualizations.

Auto-generate professional reports and academic papers.

Track and manage multiple modeling projects efficiently.

The agent simulates a real-world mathematical modeling workflow through four structured stages:
🧠 Problem Analysis
📐 Mathematical Modeling
🧮 Computational Solving
📝 Solution Reporting
Hierarchical Mathematical Modeling Library (HMML) - A tri-level knowledge hierarchy encompassing:
HMML enables both problem-aware and solution-aware retrieval of modeling strategies, supporting abstraction and method selection through an actor-critic mechanism.
Our demo is available at Hugging Face Spaces.
We provide a local-deployable open-source demo in demo/. It keeps the production-style web service structure, including the Next.js frontend, FastAPI backend, local SQLite storage, BYOK configuration, and one-command startup scripts.
Run it with:
bash demo/scripts/run.sh
This package removes committed secrets, public deployment hosts, invite-code scripts, backdoor account scripts, Redis/object-storage runtime state, logs, and historical outputs, while keeping the full local workflow structure.
gpt-4odeepseek-R1You can directly run the Mathematical Modeling Agent with:
python MMAgent/main.py --key "your_openai_key" --task "task_id"
Example:
python MMAgent/main.py --key "sk-XXX" --task "2024_C"
Here, task corresponds to the problem ID from MM-Bench (e.g., "2024_C" refers to the 2024 MCM problem C).
git clone git@github.com:usail-hkust/LLM-MM-Agent.git
conda create --name math_modeling python=3.10
conda activate math_modeling
cd LLM-MM-Agent
pip install -r requirements.txt
Join our WeChat group for updates and service support!
For questions and discussions, welcome to:
Source code is licensed under the CC BY-NC 4.0.
If you find this project helpful, feel free to explore more of our work!
🔥 DSLIGHTING - End-to-End Data Science Intelligent Assistant
More Projects: usail-hkust
@misc{mmagent,
title={MM-Agent: LLM as Agents for Real-world Mathematical Modeling Problem},
author={Fan Liu and Zherui Yang and Cancheng Liu and Tianrui Song and Xiaofeng Gao and Hao Liu},
year={2025},
eprint={2505.14148},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2505.14148}
}
Python
100.0%