Search found 14 matches

by chester riddalls
Fri Oct 10, 2003 1:08 pm
Forum: Vensim
Topic: ordering vectors
Replies: 6
Views: 6685

Ahhh I see
thanks
by chester riddalls
Fri Oct 10, 2003 1:03 pm
Forum: Vensim
Topic: ordering vectors
Replies: 6
Views: 6685

thanks tony
that works.
odd about the other function though
regards
chester
by chester riddalls
Thu Oct 09, 2003 1:51 pm
Forum: Vensim
Topic: ordering vectors
Replies: 6
Views: 6685

Hi Tony
One problem: the function "vector sort order" does not give the expected results.
I've defined var1[day]=1,4,2,3,5,7,6
Then sorted var=Vector sort order(var1[day],1)
This gives
sorted var[day]=0,2,3,1,4,6,5
Not
sorted var[day]=0,3,1,2,4,6,5
as I would expect. Can you explain please?
by chester riddalls
Wed Oct 08, 2003 10:47 am
Forum: Vensim
Topic: ordering vectors
Replies: 6
Views: 6685

ordering vectors

Hello I'm looking for a way to add 2 subscripted variables (var1 and var2) together so that the largest element of var2 is added to the first element of var1, the second largest element of var2 is added to the second element of var1... and so on. I have seen the functions vector reorder and vector s...
by chester riddalls
Mon Apr 14, 2003 12:33 pm
Forum: Vensim
Topic: Data Export question
Replies: 2
Views: 4608

Thanks alot for that. Will give it a go
by chester riddalls
Wed Apr 09, 2003 10:53 am
Forum: Vensim
Topic: Data Export question
Replies: 2
Views: 4608

venapp command

Is there a way when using the venapp command:
menu>vdfxls|vdffile|tabfile|savelist|+*!number,
to only read out the data for the final time?
by chester riddalls
Mon Apr 07, 2003 1:26 pm
Forum: Vensim
Topic: Last in First out Queues
Replies: 2
Views: 4690

Thanks for your thoughts. Unfortunately, I've opted against an SD approach for this problem for a number of reasons: I am looking to get recommendations for individual SKUs and so the model tracks the flow of 1 product rather than a group of products. Therefore the delays are discrete rather than di...
by chester riddalls
Fri Apr 04, 2003 2:06 pm
Forum: Vensim
Topic: Last in First out Queues
Replies: 2
Views: 4690

Last in First out Queues

Are there any plans to provide a queue function that operates on a last in first out principle? This would be very useful for modelling date life waste in inventory stocks: Customers tend to look for the youngest goods on a supermarket shelf. This is hard to replicate using the standard vensim queue.
by chester riddalls
Thu Mar 27, 2003 1:23 pm
Forum: Vensim
Topic: time shifted data
Replies: 3
Views: 5461

That's as i expected. Essentially I need to look ahead from the current day (the model time step) in some data read in from excel. The trouble is the look ahead shift is dependent (a function of) on another variable which is read in from excel. Incidentally, I have found that that using an element f...
by chester riddalls
Thu Mar 27, 2003 10:46 am
Forum: Vensim
Topic: time shifted data
Replies: 3
Views: 5461

time shifted data

I have found that using the function 'time shift' to look ahead along a data series, often returns an error if the shift parameter is not a constant. For example if the time series is shifted by a variable shift and shift=constant +1, where 1 is a constant, the error is returned even if shift is des...
by chester riddalls
Tue Mar 25, 2003 5:18 pm
Forum: Vensim
Topic: summing over subscript ranges
Replies: 5
Views: 5896

Have figured it out. Need to define: sub element[sub] = sub. Then insert this (with an exclamation mark) instead of the sub on its own. Thanks
by chester riddalls
Tue Mar 25, 2003 4:50 pm
Forum: Vensim
Topic: summing over subscript ranges
Replies: 5
Views: 5896

Have just actually tried this: it does not quite do it. It actually sums over all the subscripts for the first m-1 elements of sum variable, and puts zero in the rest. The sub without the exclamation mark is not summed over. Any thoughts?
by chester riddalls
Tue Mar 25, 2003 4:12 pm
Forum: Vensim
Topic: summing over subscript ranges
Replies: 5
Views: 5896

thank you.
easy when you know how!
by chester riddalls
Tue Mar 25, 2003 9:27 am
Forum: Vensim
Topic: summing over subscript ranges
Replies: 5
Views: 5896

summing over subscript ranges

Summing over the entire subscript range is easy using sum(!). My question is: Is there a way to sum over the first (or last) n elements in an m element range (m>n)?:(