September 27th, 2012 by Hannah Hammond
When you open the Model Management library, you will see that it contains three packages; Check, Compare and Structure. It is the Check package which is of interest, as it contains the checkLibrary function which allows you to:
The function interface, shown below, allows you to configure the check performed by enabling or disabling the checking features. This interface also allows you to specify the library to be checked, as well as any additional test cases which exist outside of the library. For a model to be identified as a test case and included in the regression test, it must contain the simulation setup in the model annotation. An example of the necessary code is:
Once the check is complete, the results will be reported in html files stored in your current working directory. If you perform a style check, these results are stored in a second html file. Examples of the reports are given below, based on the example included in the Model Management library.
For a step-by-step guide on using the features of the Model Management library see the library documentation.