# Gen Script

Generates example synthetic observations from a PopPK/PD model.

Note that running PoPy on a Gen Script creates similar outputs to running it on a Sim Script. However, a Gen Script also generates the time point and dose data to simulate the entire data file not just the observations.

## Main Sections of a Gen Script

- METHOD_OPTIONS
- PARALLEL
- DESCRIPTION
- FILE_PATHS
- DATA_FIELDS
- EFFECTS
- PREPROCESS
- MODEL_PARAMS
- STATES
- DERIVATIVES
- PREDICTIONS
- POSTPROCESS
- ODE_SOLVER
- OUTPUT_SCRIPTS

## Full Structure of a Gen Script

- METHOD_OPTIONS
  - py_module
  - rand_seed
  - float_format
- PARALLEL
  - SINGLE
  - MPI_WORKERS
    - n_workers
- DESCRIPTION
  - name
  - title
  - author
  - abstract
  - keywords
- FILE_PATHS
  - output_folder
  - temp_folder
  - log_folder
  - output_file_ext
  - delete_old_files_flag
- DATA_FIELDS
  - type_field
  - id_field
  - time_field
- EFFECTS
- PREPROCESS
- MODEL_PARAMS
- STATES
- DERIVATIVES
- PREDICTIONS
- POSTPROCESS
- ODE_SOLVER
  - NO_SOLVER
  - ANALYTIC
    - use_supersections
    - use_sens
  - SCIPY_ODEINT
    - atol
    - rtol
    - max_nsteps
    - use_supersections
    - use_jacobian
    - use_sens
    - use_tcrit
  - CPPODE
    - atol
    - rtol
    - max_nsteps
    - use_supersections
    - use_sens
  - CPPLSODA
    - atol
    - rtol
    - max_nsteps
    - use_supersections
    - use_sens
    - hmin
- OUTPUT_SCRIPTS
  - GRPH
    - output_mode
    - share_axes
    - y_scale
  - SIM
    - output_mode
    - sim_time_step
    - share_axes
    - comb_grph_flag
    - y_scale
  - GENSUM
    - output_mode