How to combine two successive SimEvents entities?

2 views (last 30 days)
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?

Accepted Answer

Rick Rosson
Rick Rosson on 17 Jul 2014
  2 Comments
Tony
Tony on 17 Jul 2014
Thanks this is exactly what I was looking for.
Tony
Tony on 26 Jul 2014
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;

Sign in to comment.

More Answers (0)

Categories

Find more on Discrete-Event Simulation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!