๐ฏ Mathematical Modeling Agent ย โขย ๐ Automated Problem Solving
๐ค Intelligent Code Generation ย โขย ๐ End-to-End Workflow
๐ NeurIPS 2025 Paper ย โข  ๐ฌ Join WeChat Group ย โข  โญ Star Us
-
2026-09-28 ๐ MM-Agent Expert v1.1.0 Released โ Install Skills for Codex, Claude Code, and Cursor
ๆฐๅญฆๅปบๆจกไธๅฎถ / Mathematical Modeling Expert packages three reusable skills for end-to-end mathematical modeling, reproducible computation, model validation, and editable LaTeX paper writing. ๆฐๅญฆๅปบๆจกไธๅฎถ่ทจๅนณๅฐๆ่ฝๅ ๅทฒๅๅธ๏ผๅ ๅซ็ปไธไธๅฎถๅ ฅๅฃใ้็จๆฐๅญฆๅปบๆจกๅ็พ่ต่ฎบๆๅไฝไธ้กนๆ่ฝ๏ผๆฏๆๅจ CodexใClaude Code ๅ Cursor ไธญๅฎ่ฃ ไฝฟ็จใ
๐ Repository & installation guide / ไปๅบไธๅฎ่ฃ ่ฏดๆ ยท v1.1.0 downloads / ็ๆฌไธ่ฝฝ
npx skills add luckyfan-cs/mm-agent-expert --skill '*' -a codex -a claude-code -a cursor -g -yRequires Node.js/npm. Start a new session after installation, invoke ๆฐๅญฆๅปบๆจกไธๅฎถ, and provide your problem and data. PDF compilation requires a LaTeX engine in the execution environment. ๅฎ่ฃ ้ Node.js/npm๏ผๅฎ่ฃ ๅๆฐๅผไผ่ฏ๏ผ่พๅ ฅโไฝฟ็จๆฐๅญฆๅปบๆจกไธๅฎถโๅนถๆไพ้ข็ฎๅๆฐๆฎใPDF ็ผ่ฏ้่ฟ่ก็ฏๅขๆไพ LaTeX ็ผ่ฏๅจใ
-
2026-09 ๐ MM-Agent Now Available on Work Buddy / MM-Agent ๅทฒไธ็บฟ Work Buddy ๐ Find MM-Agent in Work Buddy's Expert Skills (ไธๅฎถๆ่ฝ) under ๆฐๅญฆๅปบๆจกไธๅฎถ๏ฝๆฐๆจกๆบ็ . ๆไปฌ็ MM-Agent ๅทฒไธ็บฟ Work Buddy๏ผๅจ ใไธๅฎถๆ่ฝใ ไธญๆพๅฐ ใๆฐๅญฆๅปบๆจกไธๅฎถ๏ฝๆฐๆจกๆบ็ ใ๏ผๅณๅฏไฝ้ชใ
-
2026-05 ๐ Open-source Demo Released / ๅผๆบ Demo ๅทฒๅๅธ ๐ Deploy the upgraded mathematical modeling platform locally with the open-source demo, including the Next.js frontend, FastAPI backend, BYOK configuration, and E2B sandbox support. ๆฌข่ฟไฝฟ็จๅผๆบ Demo ๆฌๅฐ้จ็ฝฒๅ็บงๅ็ๆฐๅญฆๅปบๆจกๅนณๅฐ๏ผๅ ๅซ Next.js ๅ็ซฏใFastAPI ๅ็ซฏใBYOK ้ ็ฝฎๅ E2B ๆฒ็ๆฏๆใ ๐ ไฝฟ็จ่ฏดๆ / Usage: demo/README.md
-
2026-01 ๐ Latest Demo Now Live / ๆๆฐๆผ็คบๅทฒไธ็บฟ ๐ Experience our upgraded mathematical modeling platform! Join our WeChat group to get your invitation code for early access. ๆฌข่ฟๅ ๅ ฅๆไปฌ็ๅพฎไฟก็พค่ทๅ้่ฏท็ ๏ผๆขๅ ไฝ้ชๅ็บงๅ็ๆฐๅญฆๅปบๆจกๅนณๅฐ๏ผ ๐ ่ฎฟ้ฎ /
Visit: http://cdn.mmagent.top/๏ผOur demo link is no longer available due to server expiration. See the open-source demo above.๏ผ -
2026-01 โจ DSLIGHTING: ๅ จๆต็จๆฐๆฎ็งๅญฆๆบ่ฝๅฉๆ / End-to-End Data Science Intelligent Assistant ๐ ๆฏๆๅฎๆด็ๆฐๆฎ็งๅญฆๅทฅไฝๆต๏ผๆฐๅญฆๅปบๆจกๅบๆฏไธ็จไผๅ / Supports complete data science workflow with specialized optimization for mathematical modeling scenarios ๐ ่ฎฟ้ฎ / Visit: https://github.com/usail-hkust/dslighting
-
2025-12 ๐ฅ Upcoming Update: We will soon release the latest upgraded version of the demo. Please Star ๐ our repository! We will issue service accounts based on the Star list (due to limited server capacity) to help everyone better prepare for the MCM/ICM contest. (ๅณๅฐๆดๆฐ๏ผๆไปฌๅฐๅพๅฟซๅๅธๆๆฐๅ็บง็ๆผ็คบใ่ฏท Star ๐ ๆไปฌ็ไปๅบ๏ผ็ฑไบๆๅกๅจๅฎน้ๆ้๏ผๆไปฌๅฐๆ นๆฎ Star ๅ่กจๅๆพๆๅก่ดฆๅท๏ผๅธฎๅฉๅคงๅฎถๆดๅฅฝ็ๅคๆ็พ่ตใ)
-
2025-10 ๐ MM-Agent assisted two undergraduate teams in winning the Finalist Award (Top 2.0% among 27,456 teams) in MCM/ICM 2025, demonstrating its practical effectiveness as a modeling copilot. ๐ ๅจ็บฟไฝ้ช / Online Demo
-
2025-09 ๐ Our paper "MM-Agent: LLMs as Agents for Real-world Mathematical Modeling Problems" has been accepted to the NeurIPS 2025! ๐ Read the paper on arXiv
-
2025-07 ๐ Our paper "MM-Agent: LLMs as Agents for Real-world Mathematical Modeling Problems" has been accepted to the AI4MATH Workshop at ICML 2025! ๐ Read the paper on arXiv
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:
- ๐ง Problem Analysis - Understand problem background, objectives, and constraints
- ๐ Mathematical Modeling - Formulate mathematical models with appropriate assumptions
- ๐งฎ Computational Solving - Implement algorithms and optimization techniques
- ๐ Solution Reporting - Generate structured reports with clear interpretations
- Automated Model Selection - Intelligently selects appropriate mathematical models
- Interactive Data Analysis - Execute complex analysis with visualizations
- Intelligent Code Generation - Auto-generate and iteratively improve code
- Professional Paper Writing - Generate academic-quality reports automatically
- Project Management - Track and manage multiple modeling projects efficiently
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
- Understands problem background, objectives, data availability, and constraints
- Decomposes complex problems into manageable subtasks
-
๐ Mathematical Modeling
- Translates real-world problems into mathematical models
- Uses appropriate assumptions, formulations, and modeling techniques
- Retrieves suitable methods from the Hierarchical Mathematical Modeling Library (HMML)
-
๐งฎ Computational Solving
- Implements algorithms, simulations, and optimization techniques
- Autonomously generates and iteratively improves code using MLE-Solver
- Ensures efficient and accurate execution
-
๐ Solution Reporting
- Summarizes the full modeling process
- Interprets results and generates clear, structured reports
Hierarchical Mathematical Modeling Library (HMML) - A tri-level knowledge hierarchy encompassing:
- Domains - High-level modeling categories
- Subdomains - Specialized modeling areas
- Method Nodes - 98 high-level modeling schemas
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.shThis 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.
- OpenAI:
gpt-4o - DeepSeek:
deepseek-R1
You 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).
- Python 3.10 recommended
- Conda (optional but preferred)
- Clone the Repository
git clone [email protected]:usail-hkust/LLM-MM-Agent.git- Create and Activate the Conda Environment
conda create --name math_modeling python=3.10
conda activate math_modeling- Navigate to Project Directory
cd LLM-MM-Agent- Install Dependencies
pip install -r requirements.txtJoin our WeChat group for updates and service support!
For questions and discussions, welcome to:
- ๐ฌ WeChat Group: Scan the QR code above
- ๐ง Email: Contact Us
- โญ Star us on GitHub and stay tuned!
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}
}
