Ok. Was very helpful.
Thanks a lot.
Search found 34 matches
- Mon Sep 12, 2016 9:17 pm
- Forum: Vensim
- Topic: Long vector reordering
- Replies: 3
- Views: 2137
- Mon Sep 12, 2016 9:08 pm
- Forum: Vensim
- Topic: Reordering a matrix
- Replies: 3
- Views: 2596
Re: Reordering a matrix
Yes. I was confused here and not taking into account that VECTOR SORT ORDER works on the last subscript range. My question now is how I can reorder a 2-dimension (10 x 50) matrix by its 1st subscript range. I was thinking of transposing, reordering and transposing it again but I don´t see an easy wa...
- Mon Sep 12, 2016 5:46 am
- Forum: Vensim
- Topic: Long vector reordering
- Replies: 3
- Views: 2137
Long vector reordering
I am having trouble for reordering long vectors (50 elements). Please see an example below (model attached): INITIAL VECTOR 1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,0.04,0,0 SORTING VECTOR 0,1,2,3,4,5,6,19,20,21, 35,36,24,25,26,15,16,42,45,49,...
- Sun Sep 11, 2016 1:20 am
- Forum: Vensim
- Topic: Reordering a matrix
- Replies: 3
- Views: 2596
Reordering a matrix
I am trying to reorder a matrix by rows the following way: INITAL MATRIX [1,2,3; 1,2,3; 1,2,3] REORDER VECTOR [2,1,0] EXPECTED RESULT[/b] [3,2,1; 3,2,1; 3,2,1] I am using the model attached but I am not getting the expected result. Why is the model not working? Is there a better way for reordering a...
- Fri Apr 29, 2016 10:23 pm
- Forum: Vensim
- Topic: Table view of the results of Montecarlo simulations
- Replies: 4
- Views: 2834
Re: Table view of the results of Montecarlo simulations
Hi,
Can you please advice regarding how I can export the Montecarlo simulation results to an Excel file? I don't see how I can edit the .lst file.
Thank you very much,
Santiago
Can you please advice regarding how I can export the Montecarlo simulation results to an Excel file? I don't see how I can edit the .lst file.
Thank you very much,
Santiago
- Fri Apr 29, 2016 2:58 pm
- Forum: Vensim
- Topic: Table view of the results of Montecarlo simulations
- Replies: 4
- Views: 2834
Table view of the results of Montecarlo simulations
Hi,
Is there any way to view the results of Montecarlo simulations in table format?
I´m able to get sensitivity charts and histograms of the target variable but don´t see any way to get the actual data, which I need for further processing.
Thank you very much
Santiago
Is there any way to view the results of Montecarlo simulations in table format?
I´m able to get sensitivity charts and histograms of the target variable but don´t see any way to get the actual data, which I need for further processing.
Thank you very much
Santiago
- Sat Mar 12, 2016 8:06 am
- Forum: Vensim
- Topic: How to find the position of an element in a vector
- Replies: 1
- Views: 1849
How to find the position of an element in a vector
Hi,
I would like to know how can I find the position of an specific within a vector. For example:
Vector = [3, 6, 7, 1, 0, 8]
Is there any straightforward way to get the position of '1' (= 4)?
Thank you
Santiago
I would like to know how can I find the position of an specific within a vector. For example:
Vector = [3, 6, 7, 1, 0, 8]
Is there any straightforward way to get the position of '1' (= 4)?
Thank you
Santiago
- Mon Dec 14, 2015 8:06 pm
- Forum: Vensim
- Topic: How to force a value in a level variable?
- Replies: 6
- Views: 6185
Re: How to force a value in a level variable?
Hi,
Great hints. Very useful, as usual
Thanks a lot!
Santiago
Great hints. Very useful, as usual
Thanks a lot!
Santiago
- Mon Dec 14, 2015 8:13 am
- Forum: Vensim
- Topic: How to force a value in a level variable?
- Replies: 6
- Views: 6185
How to force a value in a level variable?
Hi, I need a level variable to not go below zero and so I am using an IF THEN condition in the 'emptying' rate so that if the level is greater than zero, the 'emptying' rate is non-zero and when the level is equal or less than zero, the 'emptying' rate becomes zero (see simple example attached). The...
- Fri Dec 04, 2015 10:20 pm
- Forum: Vensim
- Topic: Combining variables with subscripts into a new variable
- Replies: 3
- Views: 2836
Combining variables with subscripts into a new variable
Hi, I need to combine n variables with m subscripts each into one single variable with [ n x m ] subscripts. For example ( n = 3, m = 5) I need to combine these variables - Var 1 [Sub1, Sub2, Sub3, Sub4, Sub5] - Var 2 [Sub1, Sub2, Sub3, Sub4, Sub5] - Var 3 [Sub1, Sub2, Sub3, Sub4, Sub5] Into the fol...
- Mon Nov 09, 2015 3:30 pm
- Forum: Vensim
- Topic: Variable delay depending on the trend direction
- Replies: 1
- Views: 1650
Variable delay depending on the trend direction
Hi, I am implementing an information delay by means of the SMOOTH function. The information delay should work in a way that the output should be delayed with a specific value when the input is increasing and with a different value when the input is decreasing. Specifically I I need the delay to have...
- Mon Nov 09, 2015 3:22 pm
- Forum: Vensim
- Topic: Forcing a value when there is no convergence
- Replies: 3
- Views: 2463
Re: Forcing a value when there is no convergence
Ok. Thank you very much.
How can we know when the addition is implemented? Is it posted anywhere?
Thanks.
Santiago
How can we know when the addition is implemented? Is it posted anywhere?
Thanks.
Santiago
- Mon Nov 09, 2015 7:45 am
- Forum: Vensim
- Topic: Forcing a value when there is no convergence
- Replies: 3
- Views: 2463
Forcing a value when there is no convergence
Hi, I am calculating the Internal Rate of Return (IRR) of investments by using the FIND ZERO function applied to the Net Present Value (NPV). A solution for the IRR does not always exist (for example in the case where all future cash flows are negative) so that, in these cases, the FIND ZERO functio...
- Mon Sep 14, 2015 2:55 pm
- Forum: Vensim
- Topic: Increasing an auxiliary variable by a constant %
- Replies: 3
- Views: 2892
Re: Increasing an auxiliary variable by a constant %
Hi, Well, I was trying to keep it as simple as possible. Also, can you please help me to implement it with level variables? I haven't figured out how to do it yet. Please have a look at the model attached: I need the 'Result' variable to be equal to 'Sin initial' while Time <=10 and after to increas...
- Mon Sep 14, 2015 5:59 am
- Forum: Vensim
- Topic: Increasing an auxiliary variable by a constant %
- Replies: 3
- Views: 2892
Increasing an auxiliary variable by a constant %
Hi, I need an auxiliary variable (Aux) to be driven by Excel data until a specific time (e.g. Time = 100). After, I need it to change by a specific % (e.g. 5%) of the last value taken from the Excel spreadsheet. Is there any way I can do this without having to introduce level variables? I was trying...
- Thu Sep 10, 2015 7:29 pm
- Forum: Vensim
- Topic: Question on GET XLS DATA
- Replies: 4
- Views: 2785
Re: Question on GET XLS DATA
Ok. Got it now.
Thank you very much again!
Thank you very much again!
- Tue Sep 08, 2015 11:40 pm
- Forum: Vensim
- Topic: How to store and retrieve past variable values
- Replies: 2
- Views: 2051
- Tue Sep 08, 2015 11:34 pm
- Forum: Vensim
- Topic: Question on GET XLS DATA
- Replies: 4
- Views: 2785
Re: Question on GET XLS DATA
Can you please have a look at the model and Excel attached? I don't know what I'm doing wrong but if I table the 'Read data' variable I can only get the data at the specific years (2000. 2001. 2002. etc.) There is no data at the intermediate values (2000.25, 2000,50, 2000.75, etc.) in case I use any...
- Tue Sep 08, 2015 8:07 pm
- Forum: Vensim
- Topic: Question on GET XLS DATA
- Replies: 4
- Views: 2785
Question on GET XLS DATA
Hi again, I am using a set of annual data in order to drive a model. I am using a time step equal to 0.0625 so that the model calculates 16 values per year/variable. The point is that when I use the GET XLS DATA function with a set of data such as the one below: Year Value 2000 5 2001 6 2002 7 Vensi...
- Tue Sep 08, 2015 7:59 pm
- Forum: Vensim
- Topic: How to store and retrieve past variable values
- Replies: 2
- Views: 2051
How to store and retrieve past variable values
Hi, I am trying to calculate the expected profitability of a specific project by taking the averages of the last 3 years profits and extrapolating them 2 years in the future (when the project is expected to be online) My question is: how can I store and retrieve the profitability data corresponding ...
- Wed Aug 19, 2015 3:27 pm
- Forum: Vensim
- Topic: VECTOR LOOKUP with variable X intervals
- Replies: 4
- Views: 2864
Re: VECTOR LOOKUP with variable X intervals
Not really. As far as I understand it VECTOR LOOKUP allows me to build a lookup function with equally spaced X values while I need unequally spaced X values. For example, I can build the following lookup table: x=[0 1 2 3 4 5] y=[2 2 2 3 3 3] but I can't build a lookup table like the one below: x=[0...
- Wed Aug 19, 2015 12:56 pm
- Forum: Vensim
- Topic: VECTOR LOOKUP with variable X intervals
- Replies: 4
- Views: 2864
VECTOR LOOKUP with variable X intervals
Hi, I need to define variable (across time) lookup functions. As far as I've seen I can achieve this only by using the VECTOR LOOKUP function as it seems that lookup tables can be used only with constant values and not variables (please correct me if I am wrong). The problem is that the VECTOR LOOKU...
- Tue Aug 04, 2015 4:04 am
- Forum: Vensim
- Topic: FIND ZERO convergence issues with subscripts
- Replies: 4
- Views: 4786
FIND ZERO convergence issues with subscripts
Hi again, I am developing a model which calculated the IRR (Internal Rate of Return) of specific assets as an intermediate variable. I am sending attached a simplified piece of the model as an example. PROBLEM DEFINITION - There are 5 different asset classes (subscripted): W, SPV, SH, STE and GCC - ...
- Tue Aug 04, 2015 3:05 am
- Forum: Vensim
- Topic: Simulating specific subscripts
- Replies: 3
- Views: 2476
Re: Simulating specific subscripts
Thanks for you answers. I am trying to do it because I am having convergence problems with the FIND ZERO function but only with specific subscripts. While some subscripts converge when I add a new one, it does not converge (and makes sense) but the problem is that this fact makes some of the subscri...
- Sun Aug 02, 2015 4:43 pm
- Forum: Vensim
- Topic: Look up table with subscripts and exceptions
- Replies: 1
- Views: 1582
Look up table with subscripts and exceptions
Hi, Vensim PRO6.3D Windows XP I'm trying to include exceptions for specific subscripts in a Lookup table. I am sending attached a sample simplify model: - Subscript elements for [Class] are: a, b, c, d - I need the general Lookup table (which should return a constant value equal to 5) for all subscr...