If the models present in the libraries do not suit your needs, you can write a model yourself. You can either start completely from scratch or adapt a model existing in the libraries. In both cases, the syntax of the Mlxtran language is detailed on the mlxtran webpage. You can also copy-paste models from the mlxtran model example page.
- 8.case_studies/hcv_project (data = ‘hcv_data.txt’ , model=’hcvNeumann98_model.txt’)
Structural model tab, you can click on
New model to open the mlxEditor, and start writing your own model. When you are done, save your model file as .txt file, close the editor and use the
Browse button of Monolix to find and select your new model file.
You can even create your own library of models. An example of a basic library which includes several viral kinetics model is available in the demos 8.case_studies/model.
The error messages generated when syntax errors are present in the model are very informative and quickly help to get the model right. The most common error messages are explained in detail in this video.
Load an existing model using the
Load from library button, and then click on
Open in editor to open the model file in the MlxEditor. There you can adapt the model, for instance to add a PD model. Be careful to save the new model under a new name, to avoid overwriting the library files.
The video below shows an example of how a scale factor can be added: