Page 3 - Demo
P. 3
Interface to Mathematica%uf09f%uf09fRCPConsult2020-2025Page 33.RegisterMathematicaspecific dynamic library ML64I4.DLLin STRURELenvironmentFor final binding of STRURELand Mathematicayou need to registerML64I4.DLL in each STRURELmodule (e.g. Comrel).Press key F2inSTRURELmodule to open the PreferencesDialog Box. Go to position Standard Add-onsand check forregistration of ML64I4.DLL. Usually, this library must be placed in C:\\ProgramFiles\\WolframResearch\\Mathematica\\13.1\\SystemFiles\\Libraries\\Windows-x86-64\\If a Mathematicainstallation,system runtime environment and binding to STRURELare ready you can start to use the MathematicaInterface.4.The interaction between STRURELand MathematicaThe major kind of communication with theMathematicaInterface is usage of script fileswith extension %u2019.mt%u2019. Two types of scripts are implemented.The first typeof script describes a real functionwith a single argument as a vector containing mean values of all stochastic variables and fixed values of all deterministic parameters, as is ordered in Stochastic Model of STRUREL. If the functionis run from the GUI for testing and debugging the stochastic variables are set to the mean values. The return value of this functionis a partialor complete evaluation of theState Function in Symbolic Expression of STRURELjob.The second type of script may contain any set of commands in notation of Mathematicalanguage. Such a script must have a statement defining variable %u2019res%u2019 as a final return value. Usually, this statement is the last one. We recommend using thefirst type of script, because