:orphan: 





.. _flip_flop_bad_tut:



Flip Flop tutorial with inaccurate starting values
##################################################

[Generated automatically as a Tutorial summary]

Model Description
*****************


:Name: flip_flop_bad

:Title: Flip Flop tutorial with inaccurate starting values

:Author: PoPy for PK/PD

:Abstract: 

| One compartment model with a depot leading into a central compartment.
| Here initial values of KE, KA, V are close to the flipped values, so we get a bad fit in the false minima.

:Keywords: flip flop; dep_one_cmp_k; one compartment model; poor start values

:Input Script: :download:`flip_flop_bad_tut.pyml <flip_flop_bad_tut.pyml>`

:Diagram: 


.. thumbnail:: compartment_diagram.svg
    :width: 200px


Comparison
**********



True objective value
====================


.. code-block:: pyml

    86.0288



Final fitted objective value
============================


.. code-block:: pyml

    83.4768



Compare Main f[X]
=================



.. csv-table:: 
    :file: fx_comp_main.csv
    :header-rows: 1


Compare Noise f[X]
==================



.. csv-table:: 
    :file: fx_comp_noise.csv
    :header-rows: 1


Compare Variance f[X]
=====================


No Variance f[X] values to compare.

Outputs
*******



Fitted f[X] values (after fitting)
==================================


.. code-block:: pyml

    f[KA] = 0.1526
    f[KE] = 0.3014
    f[ANOISE_STD] = 0.9207



Generated data .csv file
========================


:Synthetic Data: :download:`synthetic_data.csv <synthetic_data.csv>`


Gen and Fit Summaries
=====================


* Gen: :ref:`flip_flop_bad_gen` (gen)
* Fit: :ref:`flip_flop_bad_fit` (fit)

Inputs
******



True f[X] values (for simulation)
=================================

.. code-block:: pyml

    f[KA] = 0.1500
    f[KE] = 0.3000
    f[ANOISE_STD] = 1.0000



Starting f[X] values (before fitting)
=====================================

.. code-block:: pyml

    f[KA] = 0.1000
    f[KE] = 1.0000
    f[ANOISE_STD] = 5.0000

