Cancel
Showing results for 
Search instead for 
Did you mean: 

Betreff: Define output values ExperimentManager

Builder
Builder

Dear @AlexD_SimPlan,

 

Thanks for your reply!

 

That`s clear now. Nevertheless, "Product9" is not present in the ExperimentManager report after running the experiments, whereas it is present in the table file "DrainResults".

 

Please find attached my model.

 

Many thanks in advance!!

 

Kind regards.

Betreff: Define output values ExperimentManager

Gears Phenom Gears Phenom
Gears Phenom

Well it seems that the ExperimentManager will only calculate average values for entries in the table that were found in every observation. So "Product9" was not generated/produced in every observation in your case.

I have adjusted the method EndSim, so that you always have all products in the results table (if they were not produced, they are added with zero throughput):

DrainResults.Delete({1,1}..{*,*})
Drain.typeStatistics(DrainResults)

-- add missing products
for var i := 1 to SourceTable.YDim loop
	DrainResults.SetCursor(1,1)
	if NOT DrainResults.Find({1,*}, SourceTable["Name", i]) then
		DrainResults.AppendRow(SourceTable["Name", i], 0, 0, 0)
	end
next

DrainResults.Sort(1, "up")

In my test model, I had a "Product004" which was only produced once in one of three observations, so the average total throughput shown by the ExperimentManager is 0.33333, which is what I would expect.

___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Define output values ExperimentManager

Builder
Builder

Dear @AlexD_SimPlan,

 

Thanks for your reply! It works now!!

 

I`ve another issue concerning the storage of data in a table for an experiment. Please find attached my model and a picture of the method "StatisticsColl". I want to store all the throughput times for "Product11" for each observation. Nevertheless, after running the experiment, the table "FlowTimesDataWarmUp" is still empty.

 

Could you please check what`s going wrong?

 

Many thanks in advance.

 

Kind regards.

Betreff: Define output values ExperimentManager

Gears Phenom Gears Phenom
Gears Phenom

I don't think the table is empty; have you checked out column number 50? Because that's where you write your data:

grafik.png

What about your variables

  • Run
  • Experiment

They are both set to a fixed value and not changed. I don't think this makes sense...?

Since you are not using the distributed simulations (!!), you could try this:

  • Create a method called "Init" with this code:
    Run += 1
  • Define a configuration method in the ExperimentManager:
    grafik.png

 

___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Define output values ExperimentManager

Gears Phenom Gears Phenom
Gears Phenom

Although maybe I misunderstood your intention of Warmup Smiley Happy So you can ignore the last thing with the InitialValue Smiley Happy

___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Define output values ExperimentManager

Gears Phenom Gears Phenom
Gears Phenom

Then of course you have to delete this line from the Reset method:

FlowTimesDataWarmUp.delete

Else you clear this table after each run, so the next run has an empty table and you will only see the data for the last run. You should put that line of code into the ConfigurationMethod of the ExperimentManager I mentioned above:

    grafik.png

Then you will get the desired output (I think):

    grafik.png

___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Define output values ExperimentManager

Builder
Builder

Dear @AlexD_SimPlan,

 

Thanks for your reply!!

 

Unfortunately I can`t see your attached pictures (see below):

 

Capture2.JPGCapture1.JPG

Betreff: Define output values ExperimentManager

Gears Phenom Gears Phenom
Gears Phenom
  1. Screenshot of "old" FlowTimesDataWarmup: Just look in your table and scroll to column 50
  2. Screenshot of how to define a configuration method in the ExperimentManager: In the dialog, click TOOLS, then ADVANCED SETTINGS, then check the box "Use configuration method"
  3. Screenshot of the configuration method: See code below
  4. Screenshot of "new" FlowTimesDataWarmup: Just do it and look for yourself :-)

Code for configuration method:

param localExp:integer
root.Experiment := localExp
root.Run := 0
root.FlowTimesDataWarmup.Delete

Sorry, I was not gonna post or send the screenshots again (also I would have to take them again as I don't save them on my PC), in case you can't see them again... :-( But this should do the trick already (and remember to delete

FlowTimesDataWarmup.Delete

from your Reset method!

___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Define output values ExperimentManager

Builder
Builder

Dear @AlexD_SimPlan,

 

It works perfectly now!! Now I have the following issue, I store the data of a Workerchart in a table and I want to define this as output variable for my experiments. However, the data in the table doesn`t seem correct to me as in every row the same result is shown, which is not the case for the Workerchart itself.

 

Could you please check what is going wrong?

 

Many thanks in advance.

 

Kind regards.

Betreff: Define output values ExperimentManager

Gears Phenom Gears Phenom
Gears Phenom

I'm not exactly sure; AFTER executing the putValuesIntoTable, you will see that some rows were updated. So probably that method was not executed properly in your case. Anyway, everytime I re-run your model, the table is filled properly by the Endsim method. So I don't know how you generated the saved model state in the first place... 

Btw, the last 2 rows are PAUSE and UNPLANNED times, so those should always be the same for all workers of one workerpool.

 

___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!