# Bug reported on 6/1/2022 by Bruno

The issue detected was that the transfer function changed on repeated calculations.

# Preliminaries


```python
!pip -q install controlSBML
import controlSBML as ctl
import control
from controlSBML.util import makeSimulationTimes
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import sympy as sy
import tellurium as te
import sympy
```

## Closed Loop Transfer Functions



**Transfer Functions**
\begin{eqnarray}
H_{RY}(s) & = & \frac{Y(s)}{R(s)} & = & \frac{C(s) G(s)}{1 + C(s) G(s) F(s)} \\
H_{RE}(s) & = & \frac{E(s)}{R(s)} & = & \frac{1}{1 + C(s) G(s) F(s)} \\
H_{NY}(s) & = & \frac{Y(s)}{N(s)} & = & -\frac{ F(s)}{1 + C(s) G(s) F(s)} \\
H_{DY}(s) & = & \frac{Y(s)}{D(s)} & = & \frac{ C(s)}{1 + C(s) G(s) F(s)} \\
\end{eqnarray}

PLACEHOLDER: Control the amount of thrombin through an anticoagulant input so that clotting behavior can be controlled as needed.


```python
BIOMD366 = "https://www.ebi.ac.uk/biomodels/model/download/BIOMD0000000366.2?filename=BIOMD0000000366_url.xml"
ctlsb = ctl.ControlSBML(BIOMD366, input_names=["Xa"], output_names=["IIa"])
ctlsb.plotTrueModel()
```


```python
ctlsb = ctl.ControlSBML(BIOMD366, input_names=["Xa"], output_names=["IIa"])
ctlsb.makeTransferFunction(time=1)
```




$$\frac{11.88}{s + 0.9621}$$




```python
TF = ctlsb.makeTransferFunction(time=1)
TF
```




$$\frac{11.88}{s + 0.9621}$$



36e2afe7359241d921378cf3c3ca8dc340f349a0
ipynb
Jupyter Notebook
notebooks/bug_reports/Bruno-Bug.ipynb
ModelEngineering/controlSBML
64587a7b22961a52aaf2b4e4a04fd1a0e3bc7a6b
MIT
notebooks/bug_reports/Bruno-Bug.ipynb
ModelEngineering/controlSBML
64587a7b22961a52aaf2b4e4a04fd1a0e3bc7a6b
MIT
notebooks/bug_reports/Bruno-Bug.ipynb
ModelEngineering/controlSBML
64587a7b22961a52aaf2b4e4a04fd1a0e3bc7a6b
MIT
Qwen/Qwen-72B
1. YES
2. YES