Search found 3808 matches

by tomfid
Fri Aug 26, 2016 1:39 am
Forum: Vensim
Topic: Project within the Masterthesis
Replies: 7
Views: 3483

Re: Project within the Masterthesis

You might check the project model in the built-in help (User Guide, I think) for more ideas.
by tomfid
Fri Aug 26, 2016 1:37 am
Forum: Vensim
Topic: Maximum and average
Replies: 11
Views: 5568

Re: Maximum and average

You can use the Stats tool if you just need to report these values. If you need them for use in an equation, you can use SAMPLE IF TRUE for the max. You can compute the average with a stock, or use a SMOOTH for a moving average. If you tell us a little more about what you're trying to do, we can sug...
by tomfid
Tue Aug 23, 2016 5:11 pm
Forum: Vensim
Topic: how to map subscripts of different dimension
Replies: 5
Views: 3619

Re: how to map subscripts of different dimension

Great. This is an interesting problem. I started to build a version of the model in Ventity, but concluded that it didn't confer a big advantage over Vensim's arrays (or at least I didn't immediately discover one). However, it is much easier to build a version with individual buildings as entities i...
by tomfid
Tue Aug 23, 2016 2:02 pm
Forum: Vensim
Topic: Initialize from last run?
Replies: 7
Views: 4642

Re: Initialize from last run?

You could run from -3500 to 0, and then use the Based On and Resume At options to start the run from 0 to 100: https://www.vensim.com/documentation/23320.htm This won't work if you have pipeline delays in the model. If that's an issue, there might be other options, though the internal delay states m...
by tomfid
Tue Aug 23, 2016 3:49 am
Forum: Vensim
Topic: optimization in vensim based on time
Replies: 6
Views: 4494

Re: optimization in vensim based on time

You can make your decision rule a function of time, and search for the parameters, like: y = a + b*time + c*time^2 ... Or you can use VECTOR LOOKUP to search for an array of points over time. However, searching for a series of decisions over time is usually not a good strategy for realistic problems...
by tomfid
Mon Aug 22, 2016 6:01 pm
Forum: Vensim
Topic: Project within the Masterthesis
Replies: 7
Views: 3483

Re: Project within the Masterthesis

Since grinding is a destructive process, you may want to limit the number of times a part can pass through the rework stage. In that case, you might want something more like this:
part_grinding.png
part_grinding.png (15.99 KiB) Viewed 3474 times
by tomfid
Mon Aug 22, 2016 5:29 pm
Forum: Ventity
Topic: August - Beta 1254
Replies: 0
Views: 5199

August - Beta 1254

The latest beta is #1254. Get it at http://ventity.biz. We've simplified the download process a bit, too.
by tomfid
Mon Aug 22, 2016 3:36 pm
Forum: Vensim
Topic: how to map subscripts of different dimension
Replies: 5
Views: 3619

Re: how to map subscripts of different dimension

One question: why the 500-element AaR dimension? Seems very big.
by tomfid
Mon Aug 22, 2016 3:31 pm
Forum: Vensim
Topic: how to map subscripts of different dimension
Replies: 5
Views: 3619

Re: how to map subscripts of different dimension

Mapping works in two cases: 1. same size arrays range : (r1-r10) previous : (r1-r9) next : (r2:r10) -> previous y[r1] = x[r1] y[next] = y[previous] + x[next] 2. few-to-many cities : MTcities, COcities MTcities : bozeman, helena COcities : denver, boulder state : MT, CO -> (cities : MTcities, COcitie...
by tomfid
Thu Aug 18, 2016 10:45 pm
Forum: Vensim
Topic: question about sum and arrays
Replies: 7
Views: 3663

Re: question about sum and arrays

Also, this might be a good Ventity model. You'd make each breeding stock with N failures an entity, and create the N needed entities automatically via an action.
by tomfid
Thu Aug 18, 2016 10:25 pm
Forum: Vensim
Topic: question about sum and arrays
Replies: 7
Views: 3663

Re: question about sum and arrays

I might do this the old-fashioned way, with an explicit chain of stocks rather than arrays. It might be a little more work to set up, but it's more visible.
by tomfid
Thu Aug 18, 2016 3:27 pm
Forum: Vensim
Topic: question about sum and arrays
Replies: 7
Views: 3663

Re: question about sum and arrays

What is the syntax for taking a partial sum of an array? I would expect something like SUM(array[i!],min_index,max_index) I avoid this kind of for-loop logic as much as possible. If the partial sum is over some predictable subset, use a subrange, e.g. range : a,b,c,d,e,f subrange : a, d, f y = SUM(...
by tomfid
Thu Aug 18, 2016 3:04 pm
Forum: Vensim
Topic: Vensim seems to change my units
Replies: 3
Views: 2472

Re: Vensim seems to change my units

For extraction: (Barrels/Well)/Year is mathematically equivalent to Barrels/(Well*Year). I think the only thing you need to do is set up an equivalence between "well" and "wells". https://www.vensim.com/documentation/ref_units_equiv.htm For Petroleum Reserves & Wells: You don...
by tomfid
Wed Aug 17, 2016 1:59 pm
Forum: Vensim
Topic: System dynamics in Agile. Problem with work transfer
Replies: 3
Views: 2133

Re: System dynamics in Agile. Problem with work transfer

TIME STEP applies to the whole model. The typical rule of thumb is that it should be <= to 1/2 of the shortest delay in the model.

In a stock-flow chain structure, units are the same throughout. So all stocks will have units of task, and all flows have units of task/time.
by tomfid
Wed Aug 17, 2016 1:54 pm
Forum: Vensim
Topic: How to make custom bar graphs?
Replies: 1
Views: 1545

Re: How to make custom bar graphs?

That's another .vgd editing topic. The syntax is here:
https://www.vensim.com/documentation/24010.htm
Let us know if you need help with the details.
by tomfid
Sat Aug 13, 2016 11:56 pm
Forum: Vensim
Topic: Tutorials (Video + text)
Replies: 19
Views: 44055

Re: Tutorials (Video + text)

Good to hear it. The latest is a look at model critique skills:
http://vensim.com/model-analysis-world-dynamics/
by tomfid
Fri Aug 12, 2016 4:54 pm
Forum: Vensim
Topic: creating an array of functions
Replies: 1
Views: 1525

Re: creating an array of functions

You might look through Chapter 17 of the User Guide, which covers arrays (subscripts). https://www.vensim.com/documentation/usr17.htm For #1, you need to write a separate equation for each element. https://www.vensim.com/documentation/21265.htm This might look like: Liklihood_of_widget_failure[f1]= ...
by tomfid
Thu Aug 11, 2016 3:14 pm
Forum: Vensim
Topic: subranges turning into subscripts on their own
Replies: 2
Views: 1982

Re: subranges turning into subscripts on their own

Generally this occurs from a typo. For example, if you have: range : a,b,c subrange : a,b but accidentally type subrange : a,d it's no longer clear what to do when subrange is not a subset of range. However, what you're getting seems different. I've never seen it. Can you save a model + spreadsheet ...
by tomfid
Thu Aug 11, 2016 3:10 pm
Forum: Vensim
Topic: calibration comparing to var not data file
Replies: 1
Views: 1607

Re: calibration comparing to var not data file

The answer depends on the type of the comparison variable. If it's a data variable (i.e. a variable that references data directly, with no equation) or a data equation (defined with :=) you can use: modelvar|datavar/weight Currently payoffs don't support comparison between model variables, so you ca...
by tomfid
Thu Aug 11, 2016 1:21 pm
Forum: Vensim
Topic: "GET_XLS_SUBSCRIPT" query
Replies: 10
Views: 10648

Re: "GET_XLS_SUBSCRIPT" query

Unfortunately this can't be done dynamically. Published models are essentially precompiled, because the .dll can't do that itself, so the array dimensions have to be fixed. GET XLS only updates the structure when run from the application. A possible workaround, if you need to add dimensions on the f...
by tomfid
Thu Aug 11, 2016 1:17 pm
Forum: Vensim
Topic: more than 6 runs in one graph?
Replies: 5
Views: 2951

Re: more than 6 runs in one graph?

BTW, the charting is slated for an upgrade (in progress).
by tomfid
Thu Aug 11, 2016 1:10 pm
Forum: Vensim
Topic: how to make vensim update get xls constants?
Replies: 12
Views: 6015

Re: how to make vensim update get xls constants?

That does sound wrong. I'll test.
by tomfid
Wed Aug 10, 2016 2:53 pm
Forum: Vensim
Topic: Example of Vensim external function library in .NET
Replies: 5
Views: 2791

Re: Example of Vensim external function library in .NET

Understood. Presumably there's a way to wrap C# for calling from C, but I don't know it. Writing small numerical modules in C is pretty straightforward - much easier than doing and performance will likely be better than with an extra layer and .net.
by tomfid
Wed Aug 10, 2016 2:32 pm
Forum: Vensim
Topic: how to make vensim update get xls constants?
Replies: 12
Views: 6015

Re: how to make vensim update get xls constants?

This is a Mac limitation. GET XLS uses GET DIRECT on the Mac, so the file has to be saved for changes to propagate. On Win GET XLS passes live values.
by tomfid
Tue Aug 09, 2016 7:02 pm
Forum: Ventity
Topic: Videos
Replies: 3
Views: 9365

Videos

We've recently posted quite a few videos that introduce Ventity and work up to fairly complex models with dynamic creation of entities, cohorts and agents. See the links at http://ventity.biz/category/video/