Search found 14 matches

by salman_psh
Mon May 07, 2018 9:53 am
Forum: Vensim
Topic: .VDF optimisation file
Replies: 2
Views: 1867

.VDF optimisation file

Hi, I optimized my model parameters. I copied file with data folder. Now when I run the model I get this message "ERROR: Unable to open the file BASERUN.vdf. " why is this error message coming while I can see the model out put in graphs. Is the output incorrect if this message comes? Or th...
by salman_psh
Tue Apr 10, 2018 6:38 am
Forum: Vensim
Topic: Venapp
Replies: 2
Views: 2014

Venapp

Is there any help available for building a Venapp- a management flight simulator. I have a model which I need to present to client. Aim is to play and experiment with the model without getting to know the equations. Unfortunately, publishing with Forio Systems is not possible as client has quite a l...
by salman_psh
Wed Feb 14, 2018 1:05 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

Thanks for your feedback and suggestions.
by salman_psh
Tue Feb 13, 2018 9:42 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

Model behave a bit better now. I have made aging of BP equal to zero.
by salman_psh
Tue Feb 13, 2018 1:55 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

I replicated the structure for BP. For age 25 to 35 the BP attribute vale remain constant but for age 36 till 65 with each step of simulation the BP value changes. My requirement is to keep these values constant for each age cohort for entire simulation run. As there is no inflow or outflow exept ag...
by salman_psh
Tue Feb 06, 2018 1:39 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

Thanks once again.

I will implement BP as a co-flow structure. I see that you have corrected equations too.

You added recruitment inflow to model, I can understand the logic, but in my case the population doesn't change, it only ages. So, I made it equal to zero.
by salman_psh
Mon Feb 05, 2018 1:12 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

yes, SBP is blood pressure. And it is an attribute of a patient. Each age cohort has different SBP. To me Array was the only option I could apply. Nevertheless,
I will be waiting for your guidelines.
Thank you
by salman_psh
Fri Feb 02, 2018 8:29 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

The EXCEL file is the one I want to input as in BASELINE POPULATION in the model.
there are no births or deaths, population is fixed.

My aim is to have for each age cohort with number of patients (male and female) and their respective SBP in the BASELINE POPULATION.
by salman_psh
Fri Feb 02, 2018 4:23 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

Hi Tom, Thanks once again for your reply. I feel quite embarrassed that despite your so much input I am not able to get what I require. I tried GET XLS SUBSCRIPT its works. Then I put that subscript in equation for stock and aging. But as before, problem is from giving initial value for population s...
by salman_psh
Thu Feb 01, 2018 8:58 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

I tried GET XLS data. But I am not been able to get what I want; for each age cohort, number of patients and their blood pressure.

I would really appreciate of there is some some vensim code for this.
by salman_psh
Thu Feb 01, 2018 4:00 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

Thanks Tom for your reply. It was quite helpful. I tried with GET DIRECT CONSTANTS. It dint't work :cry: I added a subscript of SBP, but when I ran the model it gave me dimensional inconsistency. For each age and gender it is mapping for each element of SBP group. AGE24 MALE SBPAGE24 AGE24 MALE SBPA...
by salman_psh
Wed Jan 31, 2018 4:50 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

Re: multi dimensioal array

Ok I figured it out.

For example, set Age subscript for BMI. In equation editor add vale vertically followed by a , and last value no comma and hot enter.
Watch out for array dimension. You must enter same number of values for BMI as Age, other wise error will generated.
by salman_psh
Wed Jan 31, 2018 2:31 am
Forum: Vensim
Topic: multi dimensioal array
Replies: 19
Views: 7147

multi dimensioal array

Hi, I am building a population level model with aging and population having attributes. The data I have looks like this Age # of Patients SBP (average) HbA1c (average) BMI (average) TotaltoHDL (average)[/b] 25 1 109.8082 10.2271 31.6328 4.2518 26 1 97.0217 7.2728 30.2394 4.1116 27 1 131.4675 6.3382 ...
by salman_psh
Wed Jul 19, 2017 4:03 am
Forum: Vensim
Topic: Splitting a rate variable
Replies: 2
Views: 1620

Splitting a rate variable

i am trying to learn the logic behind age.mdl file available in the Sample/Extra in Vensim help.
can anyone show me how the aging variable is split?