Questions tagged [simevents]
16 questions
2
votes
1 answer
How to count discarded entities in a FIFO queue using Simulink?
I'm trying to model a single queue, single server simulation using Simulink in MATLAB, I've recently installed it and I'm pretty new.
I've created a Time-Based Entity Generator (with an exponential arrival time), a FIFO queue with capacity of 50…

Joaquín L. Robles
- 6,261
- 10
- 66
- 96
1
vote
0 answers
Simulink/Simevents entity time in system
I am trying to measure the time an entity is in a system using SimEvents. For this I have followed the exact same reasoning as in this mathworks documentation: https://nl.mathworks.com/help/simevents/ug/measure-point-to-point-delays.html
However, I…

Noud Erents
- 11
- 2
1
vote
0 answers
Simulation mode in Simulink
I cannot find my "simulation mode" to adjust my pace to run a simulation. How can I add this to my toolbar? My interface is like pics below...It does not show me how to change the "simulation mode."
Not at my toolbar
Not at my menu

Min-Bin Lin
- 21
- 4
1
vote
1 answer
How to create random seed to have different results at each simevents run???(random seed?)
I would like to generate different seed at each time to have various outcomes ... I have tried "shuffle," however it showed that "it is not supported!" Wish someone can help me!Thank you~
This is my settings:
.
It makes my simulation to end with…

Min-Bin Lin
- 21
- 4
1
vote
0 answers
Simevents Stochastic Replication
Consider a factory simulation. Y=how long does it take to produce 500 widgets. If we run the simulation once we would have the simulated observation Y1. If we wanted to understand Y1 is an outlier, what we would like to do is repeat the…

gatorback
- 1,351
- 4
- 19
- 44
1
vote
1 answer
Tracking and logging entities with timestamp and namestamping in Simulink SIMEVENTS
I am working on a project involving discrete event system in production engineering. I am new to Simevents (used to simulate discrete event systems) in SIMULINK.
The entities generate block generates entities for the system. For my project, it is…

Arun Kumar
- 61
- 7
1
vote
1 answer
How do I make simulation/optimization work in Matlab?
I am trying to link SimEvent and the optimization module of MATLAB. For that, I first need to define a function that runs the simulation then call it in an optimization function. I got the idea of the simulation/optimization code from the link…

Zara
- 11
- 2
0
votes
0 answers
Is there a way to generate unique random number using rand and randn in Simevents?
Is there a way to generate unique random number using rand and randn in Simevents? I need to generate random numbers for entity service time using rand and randn, but it seems like the numbers generated are repeated.
I have tried using…

jk0026
- 1
- 1
0
votes
1 answer
Simulink: Get Attribute in SimEvents
Recently, "get attribute" block has been obsoleted in SimEvents: https://se.mathworks.com/help/simevents/ref/getattributeobsolete.html
The question is: how can we get an attribute value in SimEvents (using Entity Generator)? I want to use the value…

Michel Gokan Khan
- 2,525
- 3
- 30
- 54
0
votes
0 answers
Simevents save and reload current state/status
I'm running some Simulink Simevents models. Every time I need to start from certain initial condition, such as certain number of entities in different queues and certain resource/server states. What I do currently is to let the model run for some…

user5425156
- 387
- 1
- 4
- 8
0
votes
1 answer
Data Logging of events along with Time using SimEvents 2016a
I am working with SimEvents 2016a to simulate an Manufacturing Assembly line which can handle multiple Variants (ex.: part 1 is for BMW 5-series, part 2 for BMW 3-series, something like that)
I would like to record data coming IN and going OUT of…

Arun Kumar
- 61
- 7
0
votes
1 answer
Stop entity generator block then release it upon condition in SimEvents
I am using "Time-Based Entity Generator" and I need to control the entities generation. For example, if Simulation Clock < 100 stop generation and else set interarrival time = 1.
I tried this:
if SimClk < 100
IntARR = inf;
else
IntARR =…

Ocean Blue
- 33
- 4
- 7
0
votes
1 answer
how to determine whether a queue is empty in Simevents and do some actions based on this observation?
I want to model a queue with vacations. When the queue is empty, the server will have a period of vacation with certain distribution.(I can use use gate to block the server ) So I need to get the data of the number of entity in queue block. Could…

Tianhao Guo
- 11
- 3
0
votes
1 answer
function matlab: array initialization for more entity
I need help about a simulink function:
I have n entities, in this example only 2.
Attribute entity 1: ID = 1 , VALORE = 5
Attribute entity 2: ID = 2 , VALORE = 3
I need to call a function only one time instead of looping and if exists a y = ...…

pabligno
- 3
- 4
0
votes
1 answer
How to prevent Simulink from storing every time step inside a data store block?
I have a data store block (let's say 20x5000 array), it is used for generating a schedule.
The simulation uses SimEvents blocks.
Every time step it's being updated.
The problem is that it generates a 3-D array (the third one is the time steps), and…

NoamG
- 137
- 9