Export - zward/Amua GitHub Wiki

Exporting a Model

Amua models can be exported to other languages, simply click Model -> import Export... This allows conceptual models to be independent of any particular implementation, allowing more flexibility in model development and workflow. Languages currently supported include:

  • C++
  • Java
  • Python 3 (requires NumPy library)
  • R

import

During export, statistical expressions will be converted to their expected values in the resulting code - the original expressions will be retained in the comments. Unique names will also be generated for each node during export. There are two export options for tables:

  • In-line: Explicitly defines table data in the exported code
  • Separate Files: Creates a separate .csv file for each table and generates code to read-in these data

The following conversions are currently supported (with the plan to eventually support all features):

Language Model Structure Operators Distributions Functions Matrix Functions Lookup Tables
C++ X X
Java X X X
Python 3 X X X X
R X X X X

Please report any issues discovered when exporting models from Amua. And feel free to suggest other languages that would be useful to support. (Julia, anyone?)