Search found 3811 matches

by tomfid
Tue Oct 29, 2013 2:20 pm
Forum: Vensim
Topic: DATA variable name
Replies: 2
Views: 2225

Re: DATA variable name

It's probably not what you're looking for, but data sources for variables in calibrations are listed in the payoff report (runname.rep).
by tomfid
Tue Oct 29, 2013 1:33 am
Forum: Vensim
Topic: Problems when reordering vectors
Replies: 5
Views: 3112

Re: Problems when reordering vectors

Here's your problem: when i use direction=0, the result is wrong (2,0,1;2,0,1). It is cleat that the correct answer should be 1,2,0;1,2,0 This is true if 1,2,0 represents the positions of each element in the sorted array. So, if the input is 3,2,4, the 0 in the third element would indicate that the ...
by tomfid
Tue Oct 29, 2013 12:38 am
Forum: Vensim
Topic: Problems when reordering vectors
Replies: 5
Views: 3112

Re: Problems when reordering vectors

When I use 0 in the version that I posted, I get

Code: Select all

Array output format	
"sorted price[HOUR,TECH]"  at time 5 Runs:	Current	
sorted price[HOUR,TECH]	P1	P2	P3	
H1	4	3	2	
H2	7	6	5	
... which looks OK. Am I missing something?
by tomfid
Mon Oct 28, 2013 10:16 pm
Forum: Vensim
Topic: Problems when reordering vectors
Replies: 5
Views: 3112

Re: Problems when reordering vectors

You have: price min to max[HOUR,TECH]=vector sort order(price x tech[HOUR,TECH],1) price order max to min[HOUR,TECH]=2-price min to max[HOUR,TECH] In the second operation, you're attempting to do pointer arithmetic on the sort order. But this is incorrect. The fact that an element i is in first posi...
by tomfid
Thu Oct 24, 2013 2:09 am
Forum: Vensim
Topic: function to retain another variable at time T-1
Replies: 9
Views: 5319

Re: function to retain another variable at time T-1

The other possibility is to just put minus signs in all your integrations, and run the whole model backwards. :mrgreen:
by tomfid
Tue Oct 22, 2013 8:38 pm
Forum: Vensim
Topic: function to retain another variable at time T-1
Replies: 9
Views: 5319

Re: function to retain another variable at time T-1

There is a trick you could do though - cumbersome in general, but feasible in a simple model. Create an auxiliary that calculates the value of the stocks ahead a unit of time (assuming Euler integration): future bad code = bad code + roc*TIME STEP Then use can use the "future" stocks to ca...
by tomfid
Mon Oct 21, 2013 3:19 pm
Forum: Vensim
Topic: function to retain another variable at time T-1
Replies: 9
Views: 5319

Re: function to retain another variable at time T-1

Vensim (and reality) is causal - that is, no variable can use information about the future.

Can you say more about the reason for this approach?
by tomfid
Fri Oct 18, 2013 2:55 pm
Forum: Vensim
Topic: error message
Replies: 4
Views: 3427

Re: error message

Also, you can use the table tool (or other analysis tools) to examine the inputs to the variable in question. Most likely you will find a division by zero, an exponential overflowing, or something like that. You can prevent division by zero with ZIDZ or XIDZ or an IF THEN ELSE statement, but general...
by tomfid
Thu Oct 17, 2013 9:11 pm
Forum: Vensim
Topic: RHS units error
Replies: 2
Views: 4451

Re: RHS units error

"RHS" is shorthand for "right hand side" of an equation.

What this probably means is that not all the inputs (causes) in your rate equation are defined, so that Vensim can't evaluate the units for the left hand side.
by tomfid
Wed Oct 16, 2013 8:34 pm
Forum: Vensim
Topic: Subscripts Not Displaying in Subscripts Panel
Replies: 4
Views: 3406

Re: Subscripts Not Displaying in Subscripts Panel

Another constraint is that members of subranges need to appear in a master range somewhere. For example: spread : hummus, peanut butter, jam sweets : honey, jam, molasses requires something like food : hummus, peanut butter, honey, jam, molasses However, for energy, it might make sense to keep the p...
by tomfid
Wed Oct 16, 2013 8:06 pm
Forum: Vensim
Topic: Subscripts Not Displaying in Subscripts Panel
Replies: 4
Views: 3406

Re: Subscripts Not Displaying in Subscripts Panel

You'll find a button in the bottom right corner of the subscript control panel that toggles between "simple" and "full" view of dimensions. That may do the trick. For example, if you have, cheese : cheddar, velveeta, brie, limburger, gruyere and add gross cheese : velveeta, limbu...
by tomfid
Sun Oct 13, 2013 2:15 am
Forum: Vensim
Topic: Suggestions for support of multiple Vensim versions?
Replies: 4
Views: 2909

Re: Suggestions for support of multiple Vensim versions?

In terms of installation, they should coexist just fine. What problems do you see?
by tomfid
Wed Oct 09, 2013 1:24 pm
Forum: Vensim
Topic: how to make limits (mathematics) on vensim
Replies: 2
Views: 2167

Re: how to make limits (mathematics) on vensim

I think the context is compressible fluid flow in 3D space. You can't take a limit in the analytic sense. Generally, the way to handle a partial differential equation problem like this is to discretize space using array dimensions, just as we approximate continuous time with TIME STEP. There's an il...
by tomfid
Fri Sep 20, 2013 3:12 pm
Forum: Vensim
Topic: What PLE could do with cummulative values???
Replies: 5
Views: 3915

Re: What PLE could do with cummulative values???

For an aquifer, it would be more typical to model it continuously, e.g.

water in aquifer = INTEG( recharge rate - withdrawal rate, initial water in aquifer )
by tomfid
Mon Sep 16, 2013 9:37 pm
Forum: Vensim
Topic: Sensitivity Graph (how to label?)
Replies: 4
Views: 2693

Re: Sensitivity Graph (how to label?)

Another option (also not optimal) is to export the graph to a drawing program or powerpoint, ungroup the elements, and edit the line style there.
by tomfid
Mon Sep 16, 2013 9:36 pm
Forum: Vensim
Topic: What PLE could do with cummulative values???
Replies: 5
Views: 3915

Re: What PLE could do with cummulative values???

Typically you want to avoid this kind of discrete time formulation though. Much better to free yourself of the limits of Excel and rethink your model in continuous terms.
by tomfid
Thu Sep 12, 2013 9:00 pm
Forum: Vensim
Topic: Vensim Pro
Replies: 2
Views: 2040

Re: Vensim Pro

Depending on your problem space, there's a huge amount that can be accomplished with PLE/+, but logistics is the kind of area where you fairly quickly want arrays to handle detail.
by tomfid
Mon Sep 09, 2013 2:35 pm
Forum: Vensim
Topic: Input data for sensitivity analysis
Replies: 15
Views: 7805

Re: Input data for sensitivity analysis

Correct. Sensitivity analysis is expecting a list of constant values, not a time series. Glad it works!
by tomfid
Fri Aug 30, 2013 2:19 pm
Forum: Vensim
Topic: compiler limit reached
Replies: 16
Views: 8071

Re: compiler limit reached

This sounds like a 32/64 bit issue. On 32-bit Win systems, there is only Program Files. On 64 systems, 64 bit apps go in Program Files, and 32 bit apps are in Program Files (x86). If you remove the (x86) from the path to the vcvars32 call in mdl.bat, that should take care of things.
by tomfid
Fri Aug 30, 2013 3:39 am
Forum: Vensim
Topic: compiler limit reached
Replies: 16
Views: 8071

Re: compiler limit reached

There won't be any particular hardware limitations, though more memory will help with huge models, particularly because double precision will be the default. All you'll really need is a 64bit operating system.
by tomfid
Thu Aug 22, 2013 10:02 pm
Forum: Vensim
Topic: Where is the "double precision" in Vensim DSS?
Replies: 7
Views: 5813

Re: Where is the "double precision" in Vensim DSS?

Bob Eberlein's objection to nonnegativity constraints in ithink, which I share, was always that they created invisible feedback structure. I think a good solution would be to permit the convenience of the constraint, but to make it visually explicit. In the case of the delay structure, the problem i...
by tomfid
Wed Aug 21, 2013 2:00 pm
Forum: Vensim
Topic: compiler not working
Replies: 8
Views: 4886

Re: compiler not working

vcvars32.bat is fairly incomprehensible to me, but it looks like it makes a registry query (starting from the call at line 3) to determine the location of common tools, and this is failing. I guess this must be some kind of installation error with Visual Studio, but since it works, I wouldn't worry ...
by tomfid
Wed Aug 21, 2013 1:54 pm
Forum: Vensim
Topic: summing input rates
Replies: 2
Views: 1850

Re: summing input rates

Summing inflows/outflows to get the net total is the way to go. If arrow spaghetti is an issue, you can hide the arrows, or use shadow variables or a separate sketch to make the summation away from the main stock/flow structure.
by tomfid
Tue Aug 20, 2013 4:58 pm
Forum: Vensim
Topic: Where is the "double precision" in Vensim DSS?
Replies: 7
Views: 5813

Re: Where is the "double precision" in Vensim DSS?

I'll look into the precision issue here.
by tomfid
Tue Aug 20, 2013 4:52 pm
Forum: Vensim
Topic: compiler not working
Replies: 8
Views: 4886

Re: compiler not working

A good test might be to open a command window and see whether you can run vcvars32.bat directly. There's no real benefit to using a 64 bit compiler at the moment, though there will be when Vensim 6.4 (64 bit beta) is released next month. The relevant difference at the moment is whether vcvars32 is l...