question

mark zhen avatar image
0 Likes"
mark zhen asked Jason Lightfoot commented

Reading of evaluation indicators

@Felix Möhlmann I have used this code in other models to complete the task before, but when I copied it to a new model, there was an error message. I don't know what happened. There are some performances in the model that I want to know but I don't. Find relevant performance (such as the average utilization rate of the machine), I will mark it in English!!0127.fsm1706289245599.png

FlexSim 23.0.0
preformance
1706289245599.png (7.6 KiB)
0127.fsm (63.9 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @mark zhen , was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @mark zhen ,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

The code is trying to set the parameter "obs", but the actual name is "obs1". Also remember to adjust the lower and upper bound of the parameters to allow for the values that the PFM might take on.

1706290989239.png

"avg m1-m15":

To get the average utilization, add a "Composite State Bar" chart and add all processors to it. Then use the "reference" sampling tool of the performance meausure, point it at the chart and select the average utilization as the value to extract.

"average arrival time of object":

I'm not sure what this value is supposed to be. The average of the creation time of the items?

"Number of jobs remaining":

I added custom code here that sums up all arrivals in the source's schedule table and subtracts the output of the IN queue. This results in the number of items that still have to leave the IN queue.

0127_1.fsm


1706290989239.png (54.3 KiB)
0127-1.fsm (67.5 KiB)
· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

mark zhen avatar image mark zhen commented ·

Thank you very much!! But there is one last question left. I want to know how to set it to 0 if I have null?0127-1_autosave.fsm

0 Likes 0 ·
0127-1-autosave.fsm (70.3 KiB)
Felix Möhlmann avatar image Felix Möhlmann mark zhen commented ·

The PFMs that return NULL when the model is not running contain the section below to prevent a division by 0.

1706342750383.png

Just replace "nullvar" with "0".

0 Likes 0 ·
1706342750383.png (3.6 KiB)
mark zhen avatar image mark zhen Felix Möhlmann commented ·

127.fsm i dont know why!!! 1706439836430.png

0 Likes 0 ·
1706439836430.png (58.6 KiB)
127.fsm (70.8 KiB)
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.