# Simulation

**URL:** https://discourse.pumas.ai/c/simulation/6.md?page=1

[Latest](https://discourse.pumas.ai/latest.md) · [Categories](https://discourse.pumas.ai/categories.md)

**Page:** 2

---

## [MethodError: objects of type NamedTuple not callable](https://discourse.pumas.ai/t/methoderror-objects-of-type-namedtuple-not-callable/325)

<div class="topic-metadata">

**Author:** [@mjaber](https://discourse.pumas.ai/u/mjaber)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 3:37pm UTC](https://discourse.pumas.ai/t/methoderror-objects-of-type-namedtuple-not-callable/325 "2020-06-03T15:37:24Z")

</div>

Hello Pumas team; I guess I have a problem with the simulation. Most of the code is taken from the tutorial part, some additional parameters added. I have the issue as: MethodError: objects of type NamedTuple{(:Ka, :K2,…

---

## [Query regarding tv for two subjects with different param values](https://discourse.pumas.ai/t/query-regarding-tv-for-two-subjects-with-different-param-values/313)

<div class="topic-metadata">

**Author:** [@PriyaSharma](https://discourse.pumas.ai/u/PriyaSharma)\
**Replies:** 6\
**Last updated:** [April 1, 2020, 10:13am UTC](https://discourse.pumas.ai/t/query-regarding-tv-for-two-subjects-with-different-param-values/313 "2020-04-01T10:13:21Z")

</div>

Hi. Can somebody help me with this. I am unable to put typical value for single parameter (Cl)for two subjects with different values of that same parameter while simulating two subjects together to get a single plot.

---

## [Optimal dosage Regimen/probability of target attainment using monte carlo simulation](https://discourse.pumas.ai/t/optimal-dosage-regimen-probability-of-target-attainment-using-monte-carlo-simulation/297)

<div class="topic-metadata">

**Author:** [@abbasiyaseen](https://discourse.pumas.ai/u/abbasiyaseen)\
**Replies:** 2\
**Last updated:** [March 11, 2020, 6:46pm UTC](https://discourse.pumas.ai/t/optimal-dosage-regimen-probability-of-target-attainment-using-monte-carlo-simulation/297 "2020-03-11T18:46:01Z")

</div>

Hi everybody, I am working on population pharmacokinetic and estimated already V\_pop and Cl\_pop with one compartments model. I am willing to know, how can we go for PTA analysis using Pumas. Thank You. Mohammad

---

## [Alternative way of specifying dosage regimen](https://discourse.pumas.ai/t/alternative-way-of-specifying-dosage-regimen/218)

<div class="topic-metadata">

**Author:** [@Abhinav](https://discourse.pumas.ai/u/Abhinav)\
**Replies:** 4\
**Last updated:** [February 21, 2020, 7:14am UTC](https://discourse.pumas.ai/t/alternative-way-of-specifying-dosage-regimen/218 "2020-02-21T07:14:11Z")

</div>

I am trying the example specified on introduction to pumas tutorial webpage (https://tutorials.pumas.ai/html/introduction/introduction.html). When I specified the dosage regimen as “regimen = DosageRegimen(\[15,15,15,15\],…

---

## [Non Linear Model - Phenytoin](https://discourse.pumas.ai/t/non-linear-model-phenytoin/184)

<div class="topic-metadata">

**Author:** [@parssh.mehta](https://discourse.pumas.ai/u/parssh.mehta)\
**Replies:** 3\
**Last updated:** [February 18, 2020, 2:27am UTC](https://discourse.pumas.ai/t/non-linear-model-phenytoin/184 "2020-02-18T02:27:08Z")

</div>

Hi guys, Just learning to simulate with Julia codes and build model libraries. I have written a Non linear model for Phenytoin, Can someone verify if this is modeled correctly? A doubt I have is with entering Vmax values…

---

## [Different plots on same code](https://discourse.pumas.ai/t/different-plots-on-same-code/140)

<div class="topic-metadata">

**Author:** [@Aishwarya](https://discourse.pumas.ai/u/Aishwarya)\
**Replies:** 4\
**Last updated:** [February 10, 2020, 9:47am UTC](https://discourse.pumas.ai/t/different-plots-on-same-code/140 "2020-02-10T09:47:25Z")

</div>

On copying the same codes and running the simulation in another window, I tend to get different outputs. using Pumas using Plots myfirstmodelinpumas = @model begin @param begin tvka ∈ RealDomain(lower=0) …

---

## [I almost run same codes but got two different plots while simulating , may i know how it happen](https://discourse.pumas.ai/t/i-almost-run-same-codes-but-got-two-different-plots-while-simulating-may-i-know-how-it-happen/65)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.pumas.ai/u/sai_matcha)\
**Replies:** 3\
**Last updated:** [November 13, 2019, 12:43pm UTC](https://discourse.pumas.ai/t/i-almost-run-same-codes-but-got-two-different-plots-while-simulating-may-i-know-how-it-happen/65 "2019-11-13T12:43:54Z")

</div>

1 st run mymodel = @model begin @param begin tvcl ∈ RealDomain(lower=0, init = 1) tvv1 ∈ RealDomain(lower=0, init = 40) tvv2 ∈ RealDomain(lower=0, init= 100) tvq ∈ RealDomain(lower=0, init=3)…

---

## [Simulate population with varying parameters](https://discourse.pumas.ai/t/simulate-population-with-varying-parameters/45)

<div class="topic-metadata">

**Author:** [@alewolf](https://discourse.pumas.ai/u/alewolf)\
**Replies:** 5\
**Last updated:** [October 9, 2019, 5:30pm UTC](https://discourse.pumas.ai/t/simulate-population-with-varying-parameters/45 "2019-10-09T17:30:57Z")

</div>

I would like to simulate a population, by only changing the parameters of the model not a covariate like Wt, but every parameter- When I do pop = Population(map(i -\> Subject(id=i,evs=regimen),1:10)) obs = simobs(model,…

[Previous page](https://discourse.pumas.ai/c/simulation/6.md)
