ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Experimenter: Performance Measures
I think I have the experimenter figured out for the most part. However, I’m having a problem setting it up to capture the correct data. I want to know how much time varies from scenario to scenario to move, say.... 45 flow items to a sink. So when I view results, I should see sim time varying across different scenarios. Do I make sense <crickets chirping>?
Thanks
__________________
"A bird is an instrument working according to mathematical law, which is within the capacity of man to reproduce." -Leonardo da Vinci, 1502 |
#2
|
|||
|
|||
Sure you make sense.
You're probably running into a problem when there are no more events to do, it stops running the model. To make the model run forever, execute code like this in an OnReset trigger somewhere (or Tools>Model Triggers>On Run Start): Code:
createevent(model(),2147483647,1,"run model forever",model()); |
#3
|
||||
|
||||
All,
The reason Alex is using 2147483647 as the number is that this is the highest signed value that an integer can have. So trying to set the value of an ingeter higher (say by adding 1) would result in getting a negative value as you wrapped around to the lowest value. Flexsim uses a double value for the event times so the largest value possible is 1.79769e+308. This should be more than is ever required. Brandon
__________________
thats not normal. |
The Following User Says Thank You to Brandon Peterson For This Useful Post: | ||
Alex Christensen (06-19-2008) |
#4
|
|||
|
|||
Yes, I know the upper bounds of the sim time for the model...no problem. Sim time will drop from the upper bounds after each senario is run. What do I put under the performance measure tab and what other steps do I need to do (say in the sink) to make this happen? Oh yes, nothing happens in the model once 45 items enter the sink (there are no other flow items).
__________________
"A bird is an instrument working according to mathematical law, which is within the capacity of man to reproduce." -Leonardo da Vinci, 1502 |
#5
|
|||
|
|||
For this specialized of a data capture, you'll have to write your own picklist option for the Performance Measure, something like this:
Code:
/**Last content change of an individual object:*/ /** \nObject Name: */ string objname = /**/"Sink1"/**strlistpath:MAIN:/project/model*/; treenode current = node(concat("/", objname), model()); //pt(getnodename(current));pr(); //pt(getnodename(node(">stats/content/stats_contentsince",current)));pr(); return getnodenum(node(">stats/content/stats_contentsince",current)); Last edited by Alex Christensen; 06-19-2008 at 01:29 PM. Reason: details |
The Following User Says Thank You to Alex Christensen For This Useful Post: | ||
Lars-Olof Leven (06-19-2008) |
#6
|
||||
|
||||
There is an OnEntry picklist option called "Stop the Model Run or Replication" that was intended for these types of situations.
|
#7
|
||||
|
||||
Performance Measures - Global Table
I am trying to get the mean value of a column of data in a global table using experimenter.
edit: I think I solved my problem. Thanks anyway. Last edited by Yasemin Vatandas; 09-04-2008 at 01:47 PM. |
#8
|
||||
|
||||
Run time and warm up time as experiment variables
Hello,
it's me again with a question about the experimenter. Is it possible to define simulation run-time and warm up time as experiment variables? I can select them in the tree view and assign values but it doesn't work properly, I can't make the simulation run for varying durations in each scenario. Has anyone tried something similar to that before? Thanks. |
#9
|
||||
|
||||
Hi Yasemin,
Here is a simple model to show how to do this. Check the code in the Start of Replication in Experimenter window.
__________________
Best, Alan |
The Following 4 Users Say Thank You to AlanZhang For This Useful Post: | ||
Yasemin Vatandas (09-10-2008) |
#10
|
|||
|
|||
Thanks for the code. Unfortunately, I got one error with this code. I want to use this to increase the warm up time successively while remaining the simulation time a the same. Therefore Iadd the same amount of time to both warm up time and simulation end time by the start of every scenario (not replication). The Output of every scenario stays about the same (slight differences comes due increased warm up time), but the processing state reduces with the longer warm up time. I guess that the output will correctly computed regarding the constant simualtion time, but the processing state is corresponds to the stoptime. And the longer the stoptime is, the lower will the processing time be.
Does anyone know the reason for this? Thanks |