Abdolkarim Mohammadi
Python, MATLAB
Spoken Languages:
English
Statistics
RANK
230
of 258,149
REPUTATION
345
CONTRIBUTIONS
17 Questions
160 Answers
ANSWER ACCEPTANCE
58.82%
VOTES RECEIVED
41
RANK
6,794 of 17,790
REPUTATION
131
AVERAGE RATING
4.50
CONTRIBUTIONS
1 File
DOWNLOADS
36
ALL TIME DOWNLOADS
928
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Create entity type and define attributes in custom entity generator using Matlab discrete event system
You must set the attribute in the Generate event action. function [entity,events] = generate(obj,storage,entity,tag) enti...
2 months ago | 0
simevents entity generation with attributes
You must set the attribute in the Generate event action, using in1. function [entity,events] = generate(obj,storage,entity,tag...
2 months ago | 0
Speeding up Simulink simulations with event charts and random events
You should try parsim() with fast restart enabled. Read my answer here for further details about this methodology. https://www...
2 months ago | 1
How to make workspace variables referenced in simevents blocks tunable parameters?
Event actions cannot take tunable parameters. Instead, you can get the desired value from a Simulink function. The Simulink func...
2 months ago | 0
| accepted
Passing of entities to multiple destination
You should use an Entity Replicator block in order to create copies to be sent to multiple destinations. Replicate entities - ...
2 months ago | 0
parsim() with fast restart returns different results
Just installed R2021b, and the problem is solved, which was not until R2021a.
7 months ago | 0
| accepted
Random generator seed for parallel simulation using fast restart
I do not know the solution to your problem, but I just want to mention that I faced a problem with SimEvents and parsim() with f...
9 months ago | 1
Switching different batch names through a switch
Your description of the problem is a bit confusing for me. Are you talking about something like this?
9 months ago | 0
how to assign the service time value of the entity server to the entity attribute?
You can create a Simulink function, whose input port is connected to the output of the random number source. Then in the generat...
9 months ago | 1
| accepted
Contributors metainfo: reputation and more
I think it would be a great idea to identify prolific users in each toolbox. For example, I do not have enough leisure time, and...
9 months ago | 0
Some values in optimal solution are still violating the constraint limits in Matlab FMINCON
Try setting the MaxIterations in options to a higher number.
9 months ago | 0
Cut off new arrival of entites to server until server is completely empty again
The solution is to place two Hit crossing blocks to detect the state of the server. When the server is full, the gate closes, an...
9 months ago | 1
| accepted
Persistent variables from Simulink to Matlab
I think the best way to do this is to create a Simulink function that includes no blocks, but its output port is connected to a ...
9 months ago | 0
Setting block parameters programatically inside a simevents block's event actions
I do not have an exact solution for your problem, but I'm sure SimEvents' block parameters cannot be changed when the model is r...
9 months ago | 0
| accepted
Mimimize initializing time for SimEvent model
If you are doing a sensitivity analysis and you execute hundreds of simulations, the correct workflow is to use SimulationInput ...
9 months ago | 0
| accepted
SimEvents - inheritance & relative references & resource control
1. MATLAB Discrete-Event System (MDES) block allows you to share code between multiple instances of an object, where each block ...
11 months ago | 0
| accepted
How do i find out if a queue is not empty?
At such points, the next block to which the Compare blocks are connected, is a Hit crossing block.
11 months ago | 0
How I can specify more parameters to GA in order to speed up my code execution. with the help of (optimoptions function of ga).. opts = optimoptions(@ga,
Indeed vectorization helps a lot for non-simulation objective functions. You should use the UseVectorized option.
12 months ago | 0
Design Verifier compatibility with SimEvents blocks
I haven't used Design verifier with SimEvents blocks, but I think the error message is clear. The model containing SimEvents blo...
12 months ago | 0
Unable to perform assignment because the size of the left side is
The error is clearly saying that the size matrices do not match. data1 must be a 5x60522 matrix.
1 year ago | 1
| accepted
SimEvents - Setting Entity Attributes based on other entities
You can implement this in two ways. The first approach is easier, and can be implemented via existing SimEvents blocks, but can ...
1 year ago | 0
| accepted
Modelling a crane operation in Simulink
The model you are seeking for is not hard to create. And your question is too broad to fit in one post. You should start modelin...
1 year ago | 0
How to draw a specific figure
If you have the data for the edges of the curves, you can use patch(). If multiple curves belong to one or more surfaces, you ca...
1 year ago | 0
| accepted
Linear regression or confidence interval between two columns
I don't think regression would help you. Statistical tests like t-test with independent or paired samples would be much better. ...
1 year ago | 0
Calculate Travel time in Simulink
You need to create an attribute to stamp the generation time, and another to stamp the termination time. The difference between ...
1 year ago | 1
| accepted
how to handle entities group in Simulink(simevents)?
I suspect you are using random numbers for generating the intergeneration time of entities. You should use fixed time-intervals....
1 year ago | 0
| accepted
Simulation of an production system
If I have understood you well, you need to re-run the sorting algorithm in certain time intervals. If that is the case, you need...
1 year ago | 0
| accepted
Plotting multiple plots in for loop
You should not use the figure command inside a loop. Each call to command creates a new figure window. When you call the plot fu...
1 year ago | 0
| accepted
Submitted
Golden Eagle Optimizer Toolbox
Source code and user interface for Golden Eagle Optimizer (GEO) and Multi-Objective Golden Eagle Optimizer (MOGEO) metaheuristi...
1 year ago | 43 downloads |

Simulink: Output argument 'mot_trq_dem' is not assigned on some execution paths
Maybe adding an empty else to each if helps. For example: if ... ... else end
1 year ago | 0