To maximize the performance of Dinamica EGO execution, follow the guidelines below:
The Dinamica EGO interface shows absolute filepaths for easier reading, but they are relative indeed. So, to easily change the location of a model, keep the same path between the script file (ego or xml) and your data directory. This will work as expected.
Another way is to use the Workdir functor where you set a working directory and every Load and Save functors inside it will be relative to the directory you have set. You can use several Workdir in a the same model. See the example located in the folder Examples\run_lucc_northern_mato_grosso\run_roads_with_comments_and_workdirs
of the Dinamica examples.
You can use the following procedure to minimize the possibility of a model loss during the development:
Edit “Tools ⇒ Options | General | Model Backup” and check “Create backup copy of the current model script upon saving”. Then, chose a “Backup Folder” where Dinamica EGO will place all model copies. If you leave this field empty, the model copy will be placed in the same folder where the original model is being stored.
After you configure this option, the content of any files being overwritten will be copied every time you click “Save” or “Save As”. If you want to restore the model to a previous state, just copy the corresponding files back from the back folder to their original location.
Maps, tables, lookup tables and Weights of Evidence files can be loaded from zip files.
Zip files are useful to pack all files used by a model in a single archive. However, zipping all files does not increase the amount of data that Dinamica EGO can handle simultaneously. Behind the curtains, Dinamica unzips the files into a temporary folder and loads them from there.
Zip files are also limited to 4 GBytes in Dinamica. If you use a file outside the zip archive, these files can be much bigger than that.
To read a file located in a zip file, you have to use a Workdir container. Then, edit the Workdir and use the zip file name in the “folder” input port. Place a file loader (Load Map, Load Weights etc) inside the Workdir container. The file name mentioned in the file loader must match the name used by the file contained in the zip archive.