Skip to content

SAGE: Simulation via Agent-based Generative Engine

Notifications You must be signed in to change notification settings

renxinxing123/SAGE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

SAGE: Simulation via Agent-based Generative Engine

SAGE is a multi-agent pipeline that generates Simulink simulation code from input diagrams.
It leverages large language models, multimodal perception, and modular agentic workflows.

🧠 Concept

Given a Simulink-style simulation diagram as input (image format), SAGE produces the corresponding MATLAB Simulink code and runs the simulation automatically.

🧩 Concept Diagram

Concept Diagram

System Overview

The system includes the following components:

  • Multimodal Investigator: Detects blocks and connections from a simulation diagram.
  • Unit Test Reviewer: Validates logical correctness of the extracted connections.
  • Block Builder: Builds the simulation using matlab.engine in Python.
  • Debug Locator: Identifies whether errors come from code logic or overlooked connection issues.

📺 Demo Videos

🔹 Demo 1: Generating a two-bus electrical system using 4.5 for the Investigator and o3_mini for the other agents.

Demo 1


🔹 Demo 2: Generating a two-bus electrical system using 4o for the Investigator and o3_mini for the other agents.

Demo 2


🔹 Demo 3: Generating a bouncing_ball simulation using 4.5 for the Investigator and o3_mini for the other agents.

Demo 3


🔹 Demo 4: Generating a simulink_model using 4.5 for the Investigator and o3_mini for the other agents.

Demo 4

🚧 Coming Soon

  • Code release
  • Documentation and setup guide

About

SAGE: Simulation via Agent-based Generative Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published