How codac-team/codac works
Codac is a C++ library with Python bindings for rigorous interval computation and constraint programming. The principal workflow is to define variables and an analytic constraint, contract or separate an initial box, subdivide it into a paving, then visualize the enclosure. Other major capabilities include interval and matrix arithmetic, trajectory and tube reasoning, geometry, robotics, serialization, and optional symbolic or CAPD integrations. The graph emphasizes documented workflow and relationships visible in sampled sources; unsampled subsystems are represented only where the tree or README establishes their role.
Main entry points: codac2_AnalyticFunction.h Analytic functions · codac2_CtcInnerOuter.h Contractors · codac_Paving.cpp Paving search · __init__.py Python API
Components 19
Models and domains
- Intervals
src/core/domains/interval/codac2_Interval.h - Interval arithmetic
src/core/operators/codac2_arith_mul.h - Analytic functions
src/core/functions/analytic/codac2_AnalyticFunction.h
Constraint reasoning
- Contractors
src/core/contractors/codac2_CtcInnerOuter.h - Separators
src/core/separators/codac2_Sep.h - Paving search
prev_versions/v1.5.2/src/core/paving/codac_Paving.cpp - SIVIA
prev_versions/v1.5.2/src/core/sivia/codac_sivia.cpp - Feasible enclosure
Dynamic systems
- Sliced tubes
src/core/domains/tube/codac2_SlicedTube.h - Sampled trajectories
src/core/trajectory/codac2_SampledTraj_operations.h
Applications and output
- Geometry
src/core/geometry/codac2_Polygon.cpp - Robotics tools
prev_versions/v1.5.2/src/robotics - 2D figures
src/graphics/figures/codac2_Figure2D.h - Serialization
src/core/tools/codac2_serialization.h - VIBes output
src/graphics/3rd/vibes/vibes.cpp
Interfaces and extensions
- Python API
python/codac/core/__init__.py - SymPy bridge
src/extensions/sympy/codac2_sympy_bridge.cpp - CAPD integration
src/extensions/capd/codac2_peibos_capd.cpp
Other components
- Python user
Connections 21
- Python user → Python API: uses
README.md - Python API → Analytic functions: defines constraints
- Analytic functions → Interval arithmetic: builds expressions
src/core/functions/analytic/codac2_AnalyticFunction.h - Interval arithmetic → Intervals: computes bounds
src/core/operators/codac2_arith_mul.h - Python user → Contractors: configures contractor
README.md - Contractors → Feasible enclosure: contracts boxes
README.md - Python user → Separators: configures separator
README.md - Separators → Feasible enclosure: classifies boxes
README.md - Contractors → Separators: separates boxes
src/core/contractors/codac2_CtcInnerOuter.h - Python user → Paving search: requests paving
README.md - Paving search → Feasible enclosure: subdivides domain
- Python user → SIVIA: requests SIVIA
- Sliced tubes → Analytic functions: wraps as function
src/core/domains/tube/codac2_SlicedTube.h - Sampled trajectories → Sliced tubes: supports dynamics
- Robotics tools → Contractors: applies constraints
- Geometry → 2D figures: draws shapes
- Paving search → 2D figures: draws enclosure
src/graphics/figures/codac2_Figure2D.h - 2D figures → VIBes output: renders output
- Python API → Serialization: exposes serialization
- Analytic functions → SymPy bridge: transforms expressions
- Analytic functions → CAPD integration: integrates ODEs
src/extensions/capd/codac2_peibos_capd.cpp