Earlier this year, we released a collection of resources that enable you to integrate AIMMS with scripting languages like Python and R. In our latest How-To, we illustrate how you can extend an AIMMS app with an R model that generates a Sankey diagram using the networkd3 package. The R model is exposed as a REST API using the Plumber package.
As the example shows, besides running machine learning models, data processing and transformations, R and Python can also be used to generate visualizations for your AIMMS WebUI application. In this case, the R model generates a visualization from input data provided by AIMMS.
We also show how to use the iFrame widget (experimental) in AIMMS to display an interactive Sankey visualization, as the networkd3 package creates HTML files natively.