Search found 3811 matches

by tomfid
Tue Jan 10, 2017 3:03 pm
Forum: Vensim
Topic: how to set a target value for my model?
Replies: 5
Views: 2716

Re: how to set a target value for my model?

Assuming the latter, you could do the following: - Create a metric that is a function of the gap between your target and actual values, like error = (target-actual)^2 weight = {some negative value} - Create a payoff that minimizes the metric *p error/weight - Optimize For this to work, the model and...
by tomfid
Tue Jan 10, 2017 2:22 pm
Forum: Vensim
Topic: how to set a target value for my model?
Replies: 5
Views: 2716

Re: how to set a target value for my model?

Are you looking for a dynamic target that affects the behavior of decisions, or goal-seeking optimization?
by tomfid
Mon Jan 09, 2017 3:53 pm
Forum: Vensim
Topic: Obtain current state of intermediate steps in Dynamic functions
Replies: 2
Views: 2269

Re: Obtain current state of intermediate steps in Dynamic functions

Some dynamic variables are implemented as macros, and you can turn on visibility of their internals (Tools>Options>Settings). Check "Show" for "Macro Variables" (near the middle of the dialog pane). However, the discrete or infinite order delays are not among them. If you need th...
by tomfid
Thu Jan 05, 2017 3:52 am
Forum: Vensim
Topic: Bug Report: Options Window in Model Reader v6.4E is Blank
Replies: 3
Views: 2239

Re: Bug Report: Options Window in Model Reader v6.4E is Blank

We won't revert. This is probably something simple. Thanks for the report.
by tomfid
Fri Dec 30, 2016 3:47 pm
Forum: Vensim
Topic: cumulative value over specified time range
Replies: 2
Views: 1909

Re: cumulative value over specified time range

Something like:

Code: Select all

cumulative = INTEG( inflow, 0 ) ~ $
inflow = STEP(1,start time) * fund_flow ~ $/day
start time = 5 ~ days
by tomfid
Mon Dec 26, 2016 3:56 pm
Forum: Vensim
Topic: Random FINAL TIME
Replies: 2
Views: 1878

Re: Random FINAL TIME

The issue is that storage for results is allocated at the time of the first (ordinary) run, so if FINAL TIME is longer than that in a sensitivity instance, they get truncated. As a workaround, you could set things up such that an ordinary simulation is longer than your sensitivity range. You'd still...
by tomfid
Mon Dec 19, 2016 3:00 pm
Forum: Vensim
Topic: FIFO Function
Replies: 2
Views: 1937

Re: FIFO Function

The QUEUE functions aren't available in PLE (or if they are, it's a bug).
by tomfid
Thu Dec 15, 2016 3:18 pm
Forum: Vensim
Topic: open .VDF file and convert to EXCEL
Replies: 11
Views: 5946

Re: open .VDF file and convert to EXCEL

Definitely sounds like your version of the files may have been corrupted somehow.
by tomfid
Wed Dec 14, 2016 8:05 pm
Forum: Vensim
Topic: open .VDF file and convert to EXCEL
Replies: 11
Views: 5946

Re: open .VDF file and convert to EXCEL

It's not compatible with PLE because it uses macros.

It is compatible with the model reader, but you need to download the .vmf version (marked as for the Reader) from the author's page.
by tomfid
Wed Dec 14, 2016 6:48 pm
Forum: Vensim
Topic: Ordering Events
Replies: 4
Views: 2488

Re: Ordering Events

This could also be done in Ventity.
by tomfid
Wed Dec 14, 2016 6:46 pm
Forum: Vensim
Topic: open .VDF file and convert to EXCEL
Replies: 11
Views: 5946

Re: open .VDF file and convert to EXCEL

The model is probably incompatible with PLE. Try the Model Reader (also free).
by tomfid
Fri Dec 02, 2016 3:04 pm
Forum: Vensim
Topic: How to change from tex mode to sketc
Replies: 4
Views: 3067

Re: How to change from tex mode to sketc

I occasionally work in text mode for special circumstances - search & replace is convenient, for example - but I almost never build a model as text. Two exceptions: - we occasionally generate repetitive equations in Excel or a text processor of some king - translating models from DYNAMO or other...
by tomfid
Thu Dec 01, 2016 11:33 pm
Forum: Vensim
Topic: How to change from tex mode to sketc
Replies: 4
Views: 3067

Re: How to change from tex mode to sketc

If you have a working text model, all the variables are there, but they won't appear on the sketch until you place them. That's actually a reasonably quick process if you use the Sketch Varlist and toolbar tools for adding existing variables. See: https://www.vensim.com/documentation/22970.htm To tu...
by tomfid
Mon Nov 28, 2016 3:19 pm
Forum: Vensim
Topic: Tracking Purchase Price
Replies: 2
Views: 1799

Re: Tracking Purchase Price

You could potentially implement something using QUEUE ATTRIBUTE, but we'd have to know a little more about the specific situation to say for sure.
by tomfid
Mon Nov 28, 2016 2:29 am
Forum: Vensim
Topic: Time-Step Query
Replies: 5
Views: 2718

Re: Time-Step Query

I think you want to leave the stock units alone, and handle it a bit differently. Something like: Overdue calls = INTEG( ... ) ~ calls Desired call rate = new call arrival rate + overdue calls/time to catch up ~ calls/month Desired staff = Desired call rate / Productivity ~ people Productivity = ......
by tomfid
Tue Nov 22, 2016 3:00 pm
Forum: Vensim
Topic: "GET_XLS_SUBSCRIPT" query
Replies: 10
Views: 11426

Re: "GET_XLS_SUBSCRIPT" query

The GET_SUBSCRIPT functions can't dynamically recompile the model with different dimensions, unfortunately.
by tomfid
Sun Nov 20, 2016 1:39 am
Forum: Vensim
Topic: Stop When Reaching to Zero
Replies: 7
Views: 5287

Re: Stop When Reaching to Zero

Generally the constraint to impose is: Stock = INTEG( inflow - outflow, init stock) init stock = ... inflow = ... outflow = MIN( desired outflow, max outflow) desired outflow = ... max outflow = stock/min time to drain stock Often min time to drain stock is equal to time step for convenience, so you...
by tomfid
Wed Nov 16, 2016 11:54 pm
Forum: Vensim
Topic: Get total time
Replies: 1
Views: 1413

Re: Get total time

It's easy to count the 0s:

is zero = IF THEN ELSE( x = 0, 1, 0 )
then integrate is zero/TIME STEP to get the count.

If the max is fixed, you can use the same trick. But if the max is not known until the end of the simulation, there's no easy solution.
by tomfid
Fri Nov 11, 2016 3:22 pm
Forum: Vensim
Topic: "GET_XLS_SUBSCRIPT" query
Replies: 10
Views: 11426

Re: "GET_XLS_SUBSCRIPT" query

Again, I think your best bet would be to have some spare dimensions with a switch to activate/deactivate them. The switch could reside in a corresponding Excel column header, so it would be easy to access.

Ventity, OTOH, can do this easily.
by tomfid
Fri Nov 04, 2016 4:02 pm
Forum: Vensim
Topic: Vensim's confidence interval estimation (likelihood ratios)
Replies: 10
Views: 8518

Re: Vensim's confidence interval estimation (likelihood ratios)

If you have a long vector of "initial infected" parameters, I think it's likely that the data don't say much about them individually. One option would be to change your parameterization, so that you have a "total initial infected" combined with subscripted variables that determin...
by tomfid
Fri Nov 04, 2016 3:14 pm
Forum: Vensim
Topic: Vensim's confidence interval estimation (likelihood ratios)
Replies: 10
Views: 8518

Re: Vensim's confidence interval estimation (likelihood ratios)

The * means that the bounds on the variable in your control file are tighter than the CI. There could be three reasons for this: - the parameter only matters in conjunction with others (the principal axis problem raised in the Dogan paper) - the data don't supply much information about the parameter...
by tomfid
Thu Nov 03, 2016 2:09 pm
Forum: Vensim
Topic: IF THEN ELSE timestep
Replies: 3
Views: 2091

Re: IF THEN ELSE timestep

I think you'd need to create a stock or SAMPLE IF TRUE to record the time when the value is first exceeded, then compute the time elapsed since then.
by tomfid
Tue Nov 01, 2016 3:55 pm
Forum: Ventity
Topic: October - new beta E48
Replies: 4
Views: 4520

Re: October - new beta E48

The system is working. Do you get a success message on the form, like this?
success.png
success.png (10.99 KiB) Viewed 4480 times
by tomfid
Tue Nov 01, 2016 2:57 pm
Forum: Ventity
Topic: October - new beta E48
Replies: 4
Views: 4520

Re: October - new beta E48

I'll check ...