Search found 20 matches

by japrap
Fri Aug 28, 2015 6:27 pm
Forum: Vensim
Topic: How can I fix this problem ?
Replies: 12
Views: 8753

Re: How can I fix this problem ?

Dear Tom you've been a great help to me, many many thanks.

sorry man can I ask you a favor again? would you please run the attached models in DSS double precision version and give me back their results so I can figure out what to do in the complex model?


Best Regards
A.m
by japrap
Sun Aug 23, 2015 6:48 am
Forum: Vensim
Topic: How can I fix this problem ?
Replies: 12
Views: 8753

Re: How can I fix this problem ?

Dear Tom many many thanks for your reply as I told you before in the complex model it's very important for me that the aggregate variables ,such as "3" in the sample model , come exactly into equilibrium.so can I ask you a favor ? is it possible for you to run my model in a DSS version and...
by japrap
Thu Aug 20, 2015 8:34 pm
Forum: Vensim
Topic: How can I fix this problem ?
Replies: 12
Views: 8753

Re: How can I fix this problem ?

the problem is that while the vensim doesn't consider the differences between the arrival and discharge rates of variables "1" and "2" in their values how can I balance the variable "3" , which its arrival rate = arrival rate of variable "1" + arrival rate of ...
by japrap
Thu Aug 20, 2015 4:03 pm
Forum: Vensim
Topic: How can I fix this problem ?
Replies: 12
Views: 8753

Re: How can I fix this problem ?

Dear Tom thanks for your reply.
you know I'm just a MS student and I just use the Vensim for academical purposes . so I would be appreciate if you tell me that is there a way to solve this problem in Vensim PLE ??

Best Regards
by japrap
Thu Aug 20, 2015 10:23 am
Forum: Vensim
Topic: How can I fix this problem ?
Replies: 12
Views: 8753

Re: How can I fix this problem ?

I suggest you start by adding units to all your variables and make sure the model passes the unit check. It may be that you have an error, this basic check can often uncover these. you know everything is fine and I checked the complex model three times before. I just made this simple model to tell ...
by japrap
Thu Aug 20, 2015 10:03 am
Forum: Vensim
Topic: How can I fix this problem ?
Replies: 12
Views: 8753

Re: How can I fix this problem ?

thanks for your reply for me it is very important that variable "3" return back to a balanced state. as you can see while both the variable "1" and "2" return back to balanced states , variable "3" never gets balanced and that's why I want to figure out what i...
by japrap
Wed Aug 19, 2015 7:08 pm
Forum: Vensim
Topic: How can I fix this problem ?
Replies: 12
Views: 8753

How can I fix this problem ?

Hi, I want to balance a complex model but I think there is a problem in my vensim. in fact,Apparently Vensim doesn't consider little differences between the arrival rate and departure rate from a box variable. for a better understanding I attached the sample model. please look at the image below and...
by japrap
Sat May 09, 2015 7:11 pm
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

Re: plz help

Dear JJ

I really thank you and I really appreciate you for the time you spend for me .
what you said is completely right .


Best Regards
A.M
by japrap
Sat May 09, 2015 6:21 pm
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

Re: plz help

Dear JJ Thank you very very much. you are completely right and I was wrong because I didn't consider the role of the "One hour" variable in the model .but as I mentioned above , normally patients are held in a department until a bed get available ( for example they are boarded in ED until ...
by japrap
Sat May 09, 2015 1:43 pm
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

Re: plz help

Hi The original model does not verify the mass balance check. There is a mistake in the calculation of the 'potential GW admitting'. You must take into consideration the discharging. In fact one must first discharge, first priority, than admit trauma, second priority, than admit others pt third pri...
by japrap
Fri May 08, 2015 3:45 pm
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

Re: plz help

Dear Tom At first let me say that I'm indebted to you for your help and I really appreciate you for the time you spend for me . I use the Vensim PLE and it seems that there are just two integration types 1-Euler 2-RK4 Auto and there is no Diff integration type in PLE version.In addition, when we con...
by japrap
Fri May 08, 2015 5:47 am
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

Re: plz help

Dear Tom Many many thanks for helping me, that was just what I need. there are still some little problems that i cannot fix them : 1- after simulating, the values of "trauma patients waiting" and "other patients waiting" are incorrect only at day 1. 2- the value of the "GW p...
by japrap
Thu May 07, 2015 3:31 pm
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

Re: plz help

i'm very thankful for your reply. 1-suppose that we have 2 categories of patients who want to be admitted in a General Ward(GW) 1- Trauma patients 2-other patients .normally , if GW isn't at full capacity ,at first Trauma patients are admitted and then according to the remain beds, other patients ar...
by japrap
Thu May 07, 2015 8:02 am
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

Re: plz help

Many thanks for the prompt reply suppose that variable1 and variable2 both are box variables. consider variable2 equation = IF THEN ELSE(arrival-discharge+8+ variable1 <=capacity,0, arrival-discharge+8+ variable1 -capacity) suppose that we are at time 5 now. we know that for computing the present va...
by japrap
Thu May 07, 2015 6:35 am
Forum: Vensim
Topic: plz help
Replies: 14
Views: 11424

plz help

hi is there any function which operate in the opposite way that DELAY FIXED( {in} , {1} , {init} ) operate? ex)I mean a function that gets variable1( var1 ) and returns variable2 ( var2 ) time 0 -----1------2-----3-----4 var1 0 ----- 2 ----- 5 ------ 7 ----- 16 var2 2 ----- 5 ----- 7 ------- 16 --...
by japrap
Fri Jan 30, 2015 1:51 pm
Forum: Vensim
Topic: calculating waiting time for a person in a box variable
Replies: 1
Views: 2016

calculating waiting time for a person in a box variable

hi everybody i want to know how much time a person wait in a box variable ? for example in the attached model i want to know how much time a person wait in box2 before enter to box3 ( i want that if a person waits more than 4 hours he doesn't enter to box3) 1.mdl link : http://s000.tinyupload.com/in...
by japrap
Thu Jan 15, 2015 6:06 am
Forum: Vensim
Topic: need some help about delays
Replies: 6
Views: 6641

Re: need some help about delays

Administrator wrote:Can you use a lookup table?
my friend , I thank you very much too .


i find another solution : 3 + pulse ( 2 , 2 )
by japrap
Thu Jan 15, 2015 6:02 am
Forum: Vensim
Topic: need some help about delays
Replies: 6
Views: 6641

Re: need some help about delays

bppro wrote:Maybe the STEP function is what you're looking for. Please take a look at my model.

Have a nice day,
BP

that's what i need . very very tnx my friend . :P
by japrap
Wed Jan 14, 2015 7:46 pm
Forum: Vensim
Topic: need some help about delays
Replies: 6
Views: 6641

Re: need some help about delays

I don't really understand your question, it would really help if you posted what you have tried. Can you just use an auxiliary that has IF THEN ELSE in it? For example, A TEMP = DELAY FIXED (b,c,d) A = IF THEN ELSE ( time > start time , A TEMP , 0 ) first tnx for your response second : the question...
by japrap
Wed Jan 14, 2015 2:05 pm
Forum: Vensim
Topic: need some help about delays
Replies: 6
Views: 6641

need some help about delays

hi guys as you know in DELAY FIXED( {in} , {dtime} , {init} ) we can't start delay from a particular day but how can i use a function like this that has a start time for delay ? i want that delay starts from time T . for instance {in} = 1 , {dtime} = 3 , {init} = 4 but delay starts from day 2 . for ...