Search found 50 matches

by kaveh.dianati
Mon Jan 27, 2020 3:00 pm
Forum: Vensim
Topic: Data import: Interpolate but not Extrapolate..?
Replies: 4
Views: 2331

Re: Data import: Interpolate but not Extrapolate..?

Apologies for the not-fully-clear question. I have attached an example now. My model starts in 1980, but my data starts in 2007. My time step is 0.125. How do I get the 'mortgages' variable to stay at zero when data in not available? I tried using the RAW setting for data import, but then it doesn't...
by kaveh.dianati
Mon Jan 27, 2020 1:14 pm
Forum: Vensim
Topic: Data import: Interpolate but not Extrapolate..?
Replies: 4
Views: 2331

Data import: Interpolate but not Extrapolate..?

Hi, I was wondering whether there is a way to import data and have it return NA for empty cells, but still let it interpolate in between the data points (when the TIME STEP is smaller than the interval between data points). I guess this would be something in between the RAW and INTERPOLATE options. ...
by kaveh.dianati
Thu Dec 05, 2019 2:41 pm
Forum: Vensim
Topic: Power function - problem with units
Replies: 7
Views: 3979

Re: Power function - problem with units

Hi Tom, Thanks very much for your response. I agree with your instinct - I played around with it a bit, and using the continuous exponential discounting you suggested, the simulation replicates data sufficiently well. Just as a final follow-up, do you know of any references to cite off the top of yo...
by kaveh.dianati
Tue Dec 03, 2019 1:24 pm
Forum: Vensim
Topic: Power function - problem with units
Replies: 7
Views: 3979

Re: Power function - problem with units

..In other words, in formulas for monthly mortgage repayments what is multiplied by the discounting coefficient is P (the principal). However, modelling it in SD, if we use the "Stock of outstanding debt" instead of P, this means that payments get smaller over time as the stock gets deplet...
by kaveh.dianati
Tue Dec 03, 2019 12:45 pm
Forum: Vensim
Topic: Power function - problem with units
Replies: 7
Views: 3979

Re: Power function - problem with units

Hello, I wonder if I could ask this question once more: Thinking about formulating mortgage repayments, my model is at an aggregate level for the city of London, and I don't need to match any exact accounting data. However, I am still unsure whether I should formulate mortgage repayments like this: ...
by kaveh.dianati
Tue Oct 22, 2019 5:05 pm
Forum: Vensim
Topic: Modeling an asymmetric effect
Replies: 2
Views: 1915

Modeling an asymmetric effect

Hi, I am building a model of London's long-term housing developments, and in part of my model I need to capture the effect of changes in house prices on new construction. Based on my review of the literature, an increase in house prices does not necessary lead to an increase in new construction, but...
by kaveh.dianati
Tue Sep 10, 2019 8:41 am
Forum: Vensim
Topic: Reference for Vensim's automatic calibration
Replies: 4
Views: 2573

Re: Reference for Vensim's automatic calibration

Excellent. Thank you very much Tom!
Kaveh.
by kaveh.dianati
Wed Sep 04, 2019 9:10 am
Forum: Vensim
Topic: Reference for Vensim's automatic calibration
Replies: 4
Views: 2573

Re: Reference for Vensim's automatic calibration

I think I am using Powell because the Optimizer is set to Powell by default and I am not changing it.
by kaveh.dianati
Sat Aug 31, 2019 10:42 am
Forum: Vensim
Topic: Reference for Vensim's automatic calibration
Replies: 4
Views: 2573

Reference for Vensim's automatic calibration

Hello, I am often using Vensim's automatic calibration for my PhD model. I am currently writing my Methodology chapter and I need a reference of some sort to cite when referring to the use of this automatic calibration function. Is there perhaps (if not a paper) an essay or a guide that I could cite...
by kaveh.dianati
Fri Nov 16, 2018 11:44 am
Forum: Vensim
Topic: Table/text output with all constants and their values
Replies: 2
Views: 1775

Re: Table/text output with all constants and their values

Brilliant. Thanks for the super-quick response!
by kaveh.dianati
Fri Nov 16, 2018 11:34 am
Forum: Vensim
Topic: Table/text output with all constants and their values
Replies: 2
Views: 1775

Table/text output with all constants and their values

Hi, I was wondering whether Vensim has an automatic feature to generate a table/text output with all model constants and their values for documentation purposes. In my several years of using Vensim, I haven't seen such function but I just wanted to double check and also ask that, if not, is there a ...
by kaveh.dianati
Fri Mar 16, 2018 3:25 pm
Forum: Vensim
Topic: Power function - problem with units
Replies: 7
Views: 3979

Re: Power function - problem with units

Thank you both very much for your replies! I hadn't thought of continuous compounding which neatly resolves the unit inconsistency problem. Just to check I am implementing it correctly, the formula for mortgage repayments would then be: principal * (r/(1-EXP(-rt))) . Is that right? And if I may foll...
by kaveh.dianati
Fri Mar 16, 2018 11:23 am
Forum: Vensim
Topic: Power function - problem with units
Replies: 7
Views: 3979

Power function - problem with units

Hi Tom/colleagues, I am developing a small mortgage amortization model and I keep getting a unit error regarding the formulation of the mortgage repayment variable. My small model is attached, where I am using the following formula for calculating "monthly mortgage repayments": M = P [r * ...
by kaveh.dianati
Mon Dec 04, 2017 4:15 pm
Forum: Vensim
Topic: Save sensitivity graph as .vgd
Replies: 2
Views: 1805

Re: Save sensitivity graph as .vgd

Thanks Tom, I think I got the hang of it now.
by kaveh.dianati
Mon Dec 04, 2017 2:38 pm
Forum: Vensim
Topic: Save sensitivity graph as .vgd
Replies: 2
Views: 1805

Save sensitivity graph as .vgd

Hi,

Is there any way to save a sensitivity graph as .vgd? (The reason I want to do this is to be able to edit it as text, in order to modify the x and y axis ranges)

Many thanks,
Kaveh.
by kaveh.dianati
Mon Oct 16, 2017 4:05 pm
Forum: System Dynamics Discussion
Topic: Standard deviation of time series
Replies: 0
Views: 6248

Standard deviation of time series

Hi, I have some time-series data for prices and I would like to obtain its standard deviation over time as a measure of market volatility. In the attached model, I first try to obtain the moving average of the data, which I then use to get the standard deviation. However, the results that I get don'...
by kaveh.dianati
Fri Oct 13, 2017 11:42 am
Forum: System Dynamics Discussion
Topic: Asymmetrical Smooth
Replies: 3
Views: 5094

Re: Asymmetrical Smooth

Hi,

Thanks very much for the reply.

The solution is simple and effective, thanks!
I think I could also use an IF THEN ELSE nested within the SMOOTH with two different delay times. Basically does the same.
by kaveh.dianati
Thu Oct 12, 2017 4:59 pm
Forum: System Dynamics Discussion
Topic: Asymmetrical Smooth
Replies: 3
Views: 5094

Asymmetrical Smooth

Hi Tom/Colleagues, I am modelling a situation where changes in the backlog of unmet demand is affecting changes in prices. In this particular case, it seems that negative changes in demand backlog has proportionally stronger impact on prices than positive changes (possibly due to market 'panicking')...
by kaveh.dianati
Sat Feb 25, 2017 12:12 pm
Forum: Vensim
Topic: MIN with more than two alternatives
Replies: 4
Views: 2647

Re: MIN with more than two alternatives

Thank you Tom!
by kaveh.dianati
Fri Feb 24, 2017 4:58 pm
Forum: Vensim
Topic: MIN with more than two alternatives
Replies: 4
Views: 2647

Re: MIN with more than two alternatives

Thanks a lot for the quick reply!
by kaveh.dianati
Fri Feb 24, 2017 4:49 pm
Forum: Vensim
Topic: MIN with more than two alternatives
Replies: 4
Views: 2647

MIN with more than two alternatives

Hi,

What is the best way to implement MIN (x, y, z) in Vensim. One can do MIN (x, MIN (y,z)), but this doesn't look very neat, especially if you have more than 3 alternatives.

Thank you.
by kaveh.dianati
Sat Jun 11, 2016 7:04 am
Forum: Vensim
Topic: Depths beyond 16
Replies: 2
Views: 1920

Re: Depths beyond 16

Thanks a lot, Tom, for your prompt and helpful reply!
by kaveh.dianati
Fri Jun 10, 2016 4:50 pm
Forum: Vensim
Topic: Depths beyond 16
Replies: 2
Views: 1920

Depths beyond 16

Hi,
Is it possible to have (add) more than 16 levels of depth?
I use the hide/unhide for presentation purposes, and for a sufficiently large sketch, 16 is not enough.
Thanks!
by kaveh.dianati
Wed Dec 16, 2015 2:03 pm
Forum: Vensim
Topic: Incorporate constant values from a CIN file
Replies: 2
Views: 2096

Re: Incorporate constant values from a CIN file

That's a good point. Unfortunately, our model is a huge one and this will not be an easy change. But something to think about...
Thanks anyway!
by kaveh.dianati
Tue Dec 15, 2015 1:57 pm
Forum: Vensim
Topic: Incorporate constant values from a CIN file
Replies: 2
Views: 2096

Incorporate constant values from a CIN file

I know how to export changes (constants) into a CIN file and then load it in Sim Control to run a simulation based on it. However, what I would like to do further, is to actually incorporate those constant values into my model, so that the constant values in my current model actually change to those...