Search found 3808 matches

by tomfid
Tue Apr 23, 2013 12:20 am
Forum: Vensim
Topic: How can i replace the optimization algorithm?
Replies: 27
Views: 10302

Re: How can i replace the optimization algorithm?

You can run your own algorithm via the .dll, but there's quite a bit of overhead involved in setting it up, and you'll lose at least a factor of 2 in speed per iteration. The Powell optimizer initially searches directions one at a time, but the search is iterative, so that sequential updating of a,b...
by tomfid
Mon Apr 22, 2013 2:24 pm
Forum: Vensim
Topic: Variation in time step giving undesirable results
Replies: 1
Views: 1731

Re: Variation in time step giving undesirable results

This is inherent to continuous time simulation. There's an example of an alternative with the SHIFT IF TRUE function in the help system. http://www.vensim.com/documentation/fn_shift_if_true.htm See also Eberlein, Robert with James Thompson Chronological Aging in Continuous Time http://www.systemdyna...
by tomfid
Mon Apr 22, 2013 2:19 pm
Forum: Vensim
Topic: equation of vensim
Replies: 12
Views: 7131

Re: equation of vensim

If you have a stock of installed items, and an outflow of failures proportional to the stock, the flow is the expected value of an exponential distribution. Might look like this: installed base = INTEG(selling - failing, init installed base) selling = ... failing = installed base/mean lifetime You c...
by tomfid
Mon Apr 22, 2013 1:56 am
Forum: Vensim
Topic: Discrete or Continuous Simulation
Replies: 1
Views: 2762

Re: Discrete or Continuous Simulation

It really depends on what question about the supply chain you're trying to answer. If it's something very detailed, like how many of a given type of machine to use, a discrete event simulation might be in order. But if it's strategic, like how to combine pricing and marketing with production schedul...
by tomfid
Tue Apr 16, 2013 5:33 pm
Forum: Vensim
Topic: equation of vensim
Replies: 12
Views: 7131

Re: equation of vensim

It might help us help you if you state what you're trying to accomplish here.
by tomfid
Tue Apr 16, 2013 3:32 am
Forum: Vensim
Topic: refining model of rainwater tank w overflow
Replies: 3
Views: 2677

Re: refining model of rainwater tank w overflow

1. TIME STEP should definitely be as short or shorter than the sampling interval of your data. Stability is easy to verify empirically - just cut your time step in half and see if the behavior changes (it shouldn't, unless there are stochastic elements in your model). A general rule of thumb is that...
by tomfid
Mon Apr 15, 2013 2:41 pm
Forum: Vensim
Topic: refining model of rainwater tank w overflow
Replies: 3
Views: 2677

Re: refining model of rainwater tank w overflow

Here's a refinement. It's not simpler, but conceptually cleaner in a few respects. - parameters embedded in equations converted to explicit variables with units (tank capacity) - variable names indicate a quantity that can vary (water in tank) - water use limited to water available (a term could be ...
by tomfid
Fri Apr 12, 2013 4:24 pm
Forum: Vensim
Topic: equation of vensim
Replies: 12
Views: 7131

Re: equation of vensim

Optimization: http://www.vensim.com/documentation/usr18.htm The purpose of the optimizer is for calibrating dynamic models and optimizing policies. You can use it to fit simple curves, but it's not the most efficient tool for that job. A lookup won't help you to fit a distribution, though you could ...
by tomfid
Thu Apr 11, 2013 10:10 pm
Forum: Vensim
Topic: missing arrows
Replies: 5
Views: 3641

Re: missing arrows

They are hidden by default because they don't affect the dynamic structure of the model. I actually prefer things the other way, so I generally use the Model>Settings to turn them on, then manually hide any arrows that cause visual clutter. Then you can show/hide them as needed by hitting the H key ...
by tomfid
Thu Apr 11, 2013 4:45 pm
Forum: Vensim
Topic: equation of vensim
Replies: 12
Views: 7131

Re: equation of vensim

Check the Help system for the Random functions - there are examples for RANDOM UNIFORM and RANDOM NORMAL that should do what you need.
by tomfid
Thu Apr 11, 2013 12:55 pm
Forum: Vensim
Topic: equation of vensim
Replies: 12
Views: 7131

Re: equation of vensim

You can use the optimizer for curve fitting, but for simple, non-dynamic tasks like fitting a distribution, you're probably better off using some other tool.
by tomfid
Thu Apr 11, 2013 12:53 pm
Forum: Vensim
Topic: X-Y plot not X-t
Replies: 9
Views: 8062

Re: X-Y plot not X-t

Another possibility is to create reporting variables that suppress a portion of a variable's history. For example:

reported x = IF THEN ELSE( Time >= threshold, x, :NA: )
by tomfid
Thu Apr 11, 2013 12:50 pm
Forum: Vensim
Topic: Using dataset in PLE
Replies: 3
Views: 2980

Re: Using dataset in PLE

PLE allows import of data for comparison, but not data variables for driving the model. You can put your data in a lookup instead.
by tomfid
Thu Apr 11, 2013 12:48 pm
Forum: Vensim
Topic: pulse
Replies: 2
Views: 2117

Re: pulse

Almost all built-in functions have a sample model linked to the function's page in the Help system.
by tomfid
Wed Apr 03, 2013 5:11 pm
Forum: Vensim
Topic: Reliability and validity along with reality check option
Replies: 29
Views: 40077

Re: Reliability and validity along with reality check option

I think it's important, but the quality of the model is of greater importance. I can make sensitivity runs with your model without any problems on 6.0b on a Windows 7 machine, so I'm not sure what the problem is. Also, I don't get any warnings about integration errors, because the integration method...
by tomfid
Tue Apr 02, 2013 2:11 pm
Forum: Vensim
Topic: Reliability and validity along with reality check option
Replies: 29
Views: 40077

Re: Reliability and validity along with reality check option

I still can't replicate any problems - this works fine for me. What Vensim version and operating system are you running?
by tomfid
Tue Apr 02, 2013 3:57 am
Forum: Vensim
Topic: Reliability and validity along with reality check option
Replies: 29
Views: 40077

Re: Reliability and validity along with reality check option

Hmm ... this runs fine for me. Can you post one more file - the savelist (.lst)? Thanks.
by tomfid
Mon Apr 01, 2013 5:59 pm
Forum: Vensim
Topic: Reliability and validity along with reality check option
Replies: 29
Views: 40077

Re: Reliability and validity along with reality check option

Also, we'll need any input data that the model requires to run - either a .vdf or .xls, per usage.
by tomfid
Mon Apr 01, 2013 2:09 pm
Forum: Vensim
Topic: Reliability and validity along with reality check option
Replies: 29
Views: 40077

Re: Reliability and validity along with reality check option

I think we can't debug the DCC43327 error without a copy of the model and sensitivity files - you can email them to us, vensim at vensim.com if you can't post them publicly.

Set your warnings to "Display" to debug the data first time and integration errors.
by tomfid
Mon Apr 01, 2013 3:52 am
Forum: Vensim
Topic: Reliability and validity along with reality check option
Replies: 29
Views: 40077

Re: Reliability and validity along with reality check option

The "before first time" error just means that your model starts before the first data point for some data variable. Check to be sure that you have Tools>Options>Settings>Warnings set to "Display." I'll look into the other.
by tomfid
Mon Apr 01, 2013 2:36 am
Forum: Vensim
Topic: Reliability and validity along with reality check option
Replies: 29
Views: 40077

Re: Reliability and validity along with reality check option

The first errors are warnings from RK2 or RK4 auto integration. They may not be important. Do you get any of these warnings in an ordinary simulation? If not, you may have to try some parameter variations matching your sensitivity file in order to recreate the problem. The "before first time......
by tomfid
Tue Mar 19, 2013 1:17 am
Forum: Vensim
Topic: Create A Look Up Variable during simulation?
Replies: 2
Views: 1839

Re: Create A Look Up Variable during simulation?

Example:
SampleLookup.mdl
(3.75 KiB) Downloaded 256 times
by tomfid
Mon Mar 18, 2013 11:55 pm
Forum: Vensim
Topic: Create A Look Up Variable during simulation?
Replies: 2
Views: 1839

Re: Create A Look Up Variable during simulation?

Yes - you could do this with a combination of SAMPLE IF TRUE and VECTOR LOOKUP.

I'm also working on an external function library that might help with this.

Tom
by tomfid
Mon Mar 18, 2013 4:54 pm
Forum: Vensim
Topic: 1 Gig-VDF
Replies: 17
Views: 6656

Re: 1 Gig-VDF

It would be interesting to see your vdi and vdo too - especially the first.