답변 있음
trying to use a neural network in a genetic optimiser
If I have understood you well, you want ga() to train your feedforward ANN. If so, you can read about it here: https://www.mat...

8달 전 | 0

답변 있음
Resource pool, average utilization statistic
SimEvents blocks' statistics are updated not continuously, but rather when an event is triggerred. The system state between the ...

8달 전 | 0

답변 있음
Elevators with Sim Events
The model described in the tutorial you mentioned exhibits only one person, but it can be used for any capacity of the elevator ...

8달 전 | 0

답변 있음
How to split a product unevenly and create more subproducts from its remainder using SimEvents?
SimEvent's standard block library only includes blocks with one storage. What you want requires more than one storage, thus, in ...

9달 전 | 0

답변 있음
Release entity from server based on event...
SimEvent's standard block library only includes blocks that contain only one storage. What you need requires more than one stora...

9달 전 | 0

답변 있음
How to change Probability Vectors from workspace/file
You can pass the probability vectors as a variable, using SimulationInput objects. More to read: https://www.mathworks.com/h...

9달 전 | 0

답변 있음
can I see the matlab code generated by simevents model
Simulink blocks are compiled into C, and not MATLAB.

9달 전 | 0

답변 있음
How can I set attribute age in simevents
For each entity, you should first select an interval based on probabilities using a discrete probability function, and then, gen...

9달 전 | 0

답변 있음
Modelling two activities that start at the same time on a common entity in SimEvents
You need a Resource Acquirer block, two Entity Server blocks, and two Resource Release blocks. When the entity enters the Resour...

9달 전 | 0

답변 있음
How to perform Aggregation in simevents
My answer from here: Simevents is based on entity-storage system notion, and its standard block library only includes blocks t...

9달 전 | 0

답변 있음
SimEvents: route using on attribute
You can create a scalar attribute, whose value is equal to the first element of the vector. entity.Attribute2 = out_package (1...

9달 전 | 0

답변 있음
Vectorize multiple t tests across matrices
ttest cannot be vectorized. I think the only speed boost left for you is to use parfor instead of for, as long as you have Paral...

9달 전 | 0

답변 있음
How do I implement simulannealbnd function in simulink?
You can declare the functions that are not compatible with code generation using coder.extrinsic() as extrinsic functions. Simpl...

9달 전 | 0

| 수락됨

답변 있음
Making a bunch of entity generators to generate variants in a simevents DES system
The best approach for you is as follows: Generate a random number for every variant. Use the minimum value of the array as t...

9달 전 | 0

답변 있음
how to assign the service time value of the first entity server to the second entity server?
You can add an attribute to the entities, so that when the entity arrives in the first server, the assigned service time is reco...

9달 전 | 0

답변 있음
Grouping entities in SimEvents
Simevents is based on entity-storage system notion, and its standard block library only includes blocks that include only one st...

9달 전 | 0

| 수락됨

답변 있음
Get parallel simulations in objective function of optimization Tool (GA,PSO)
Hi Marcus. I haven't used that File Exchange submission for PSO, but the general workflow in such situations is to: Pass the...

10달 전 | 0

| 수락됨

답변 있음
Simevents: Changing resources in pool
One way is to create a Gate, and not to let entities when the resource is not sufficient. The other way, which is the better but...

10달 전 | 0

질문


How to train a deep or shallow network embedded into another system?
I need to embed a deep or shallow network into another algorithm to do certain jobs. How can I calculate the loss function and p...

11달 전 | 답변 수: 0 | 0

0

답변

답변 있음
structure variable with double vectors in a field using in a SIMEVENT block is not working
One way to achieve what you want is composite entities. It enables you to use a structure-like dot notation in event actions. Se...

12달 전 | 0

답변 있음
Fit a power model to the set of data
Type cftool in the command window to open Curve Fitting toolbox. Then you can import your data and fit the power function.

12달 전 | 0

답변 있음
Eject entity from server when failure occurs
Generally speaking, failures are preempted entities that does not consume resources. They are generated from another entity gene...

약 1년 전 | 0

| 수락됨

답변 있음
How to concatenate string cell arrays?
What you need is the Cartesian product of the two sets. MATLAB does not have built-in function, but there are several functions ...

약 1년 전 | 0

답변 있음
Is there a way to call Continue in a loop less script ?
Instead of calling continue directly, you can set a flag in the inner script. The outer script, which contains the loop, uses th...

약 1년 전 | 0

| 수락됨

답변 있음
Enlarging y-Axis because text description of two points is overlapping
A simple solution is to add horizontal and vertical offset so that you can better control the position of the labels. x = [6...

약 1년 전 | 0

| 수락됨

답변 있음
Infinite Loop with conditional statement if
The for loop can be broken using break statement. for if break end end https://www.mathworks.com/help/mat...

약 1년 전 | 0

답변 있음
Z must be a matrix, not scalar or vector - surface plot
You use surf when you have z value for each combination of x and y vectors. Here, you have x, y, and z vectors, so you should dr...

약 1년 전 | 0

| 수락됨

답변 있음
Hi everyone, How do I call functions in simevents for selected queues to halt entities blocking them from departing whenever entities with specific attributes are injected into the system (by a deliberate event).
I think you must implement this complex system with MATLAB Discrete-Event System (MDES) only, since you need to iterate over que...

약 1년 전 | 0

답변 있음
How do you model transfer batching in simevents if you use orders as entities and order quantity as an attribute?
You should use an Entity replicator block, which replicates entities based on the order size. Replicas are production batches af...

약 1년 전 | 0

| 수락됨

답변 있음
How can I bring 5 variable at 5 different axis angles and plot the correlation coefficient with respect to a base variable.
MATLAB does not have built-in spider plot, AFAIK. The nearest built-in is polarhistogram(). https://www.mathworks.com/help/matl...

약 1년 전 | 0

더로드