AnyLogic command line interface supports opening a model (or several models at once) in AnyLogic and running a specified experiment.
Before calling the command to open a model, use the cd command to change the working directory to the AnyLogic folder on your computer (specify absolute path), e.g.: cd C:\Program Files\AnyLogic 8.5 Professional
The command syntax is as follows:
anylogic "absolute path to the
model .alp file"
Models\Call Center\Call Center.alp"
You can list the paths to as many models as you need separated by space character. The models will be opened all at once.
Alternatively, you can open models without changing the working directory to the AnyLogic folder on you computer. In this case, omit the anylogic command and specify the absolute path to the Anylogic executable file AnyLogic.exe.
"C:\Program Files\AnyLogic 8.5 Professional\AnyLogic.exe" "D:\My Models\Call Center\Call Center.alp"
To run a particular experiment of the model, use the -r flag and specify the experiment's name after the path to the model in the command. You can list only one experiment. The path to the model and the experiment's name must be separately enclosed by quotation marks each and separated by space character.The command syntax is as follows:
anylogic -r "absolute path to the model .alp file" "name of the experiment"