Refactor model into an interface and remove any ABC Model specific code from src/code_gen/. Also generate functions instead of direct code evaluation in execute()

This commit is contained in:
2023-09-28 17:59:17 +02:00
parent a69dd6018e
commit 7dd9fedf2e
35 changed files with 489 additions and 827 deletions

View File

@ -1,5 +1,15 @@
# Models
## Interface
The interface that has to be implemented for a model to be usable is defined in `src/models/interface.jl`.
```@autodocs
Modules = [MetagraphOptimization]
Pages = ["models/interface.jl"]
Order = [:type, :constant, :function]
```
## ABC-Model
### Types