How cmudig/draco2 works
Main Components
a) Core Components:
• ASP (Answer Set Programming) Engine
• Constraints Module
• Generator Module
• Optimizer Module
• Learning System
• Renderer System
• Server Component
• API Layer
b) External Dependencies:
• Clingo Solver Integration
• Altair Visualization Library
Specific Elements
a) Input Processing:
• Data flow from input facts
• Schema validation
• Fact utilities
b) Processing Pipeline:
• Constraint application
• Solution generation
• Optimization
c) Output Generation:
• Renderer system (Altair)
• Visualization output
Key Relationships to Highlight
• API endpoints and their connections to internal services
• Integration points with external systems
• Learning system's interaction with constraints
Important Details
• ASP constraint files location and relationship
• Test infrastructure
• Documentation system
• Learning system components
• Server architecture (FastAPI routes and services)
Specific Implementation Notes
• The modular nature of the system (separate modules for ASP, learning, rendering)
• The server architecture with clear separation of routers and services
• The extensible renderer system with Altair implementation
• The integration of the learning system with the constraint solver