.. _mgen_script:

MGen Script
===========

Simulates multiple datasets from a |poppkpd| model. A multi population version of :ref:`gen_script`.

Note that running |popy| on a :ref:`mgen_script` creates similar outputs to running it on a :ref:`msim_script`. However, a :ref:`mgen_script` also generates new time points and dose data for each data set.

A :ref:`mgen_script` can be created by a :ref:`mtut_script` in a similar fashion to how a :ref:`gen_script` can be created by a :ref:`tut_script`.

Main Sections of a MGen Script
---------------------------------

.. include:: /_autogen/reference/short_ref/mgen_spec_short.txt

.. only:: browser

    Full Structure of a MGen Script
    -----------------------------------

    .. toctree::
        /_autogen/reference/mgen_spec__config
