The video below is a recording of me presenting (to my PhD students) a Simio supply chain model that incorporates calls to a Python script and integration with a SQL Server database used to pass data between the Simio model and the Python script as the model runs. The current version of the Python script only queries the database and prints some of the query results, but subsequent versions will incorporate the Gurobi optimization engine to make decisions and pass the results back to the Simio model (via the SQL Server database). The files used in the demo are here. The files include the Simio model, the Python script, and the code for the custom CallPython step.