How to combine two successive SimEvents entities?

조회 수: 3 (최근 30일)
Tony
Tony 2014년 7월 16일
댓글: Tony 2014년 7월 26일
I'm trying to model a manufacturing process that creates new entities on a specific cycle. For one step in the process I need to fill a basket with two entities before allowing the basket to leave the process. Does anyone have a suggestion for how to accomplish this task?

채택된 답변

Rick Rosson
Rick Rosson 2014년 7월 17일
  댓글 수: 2
Tony
Tony 2014년 7월 17일
Thanks this is exactly what I was looking for.
Tony
Tony 2014년 7월 26일
Rick, Do happen to have an idea of how to accumulate attributes associated with the collected entities that make up the batch? I've tried to use the following Matlab function script:
function y=fnc(u)
persistent accum
persistent n
if n==0
accum=0;
end
if n< Q %Q is the batch size
accum=accum+u;
n=n+1
else
accum=accum+u;
n=0;
end
y=accum;

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by