anylogic

What is Engine.mc() and why is it slowing down my model?

不想你离开。 提交于 2019-12-12 04:12:30
问题 I recently hit a severe performance wall in an AnyLogic model and decided to do some method profiling. The top-level culprit was com.anylogic.engine.Engine.mc() , but what does it do, and how do we speed it up? 回答1: Ideally, never use conditional transitions, only message-based, timeout-based and agent-arrival-based ones. Otherwise, your condition-based transition keeps checking all the time if it's condition has been met yet. 回答2: It was explained to me that com.anylogic.engine.Engine.mc()

Anylogic: Dropoff given quantity using parameters

早过忘川 提交于 2019-12-11 18:27:16
问题 I have a train running in my model with different agents in it. At one of the stops I would like to dropoff a portion of each agent. My agents in the train are: children, teenagers, adults and golden_oldies. At a given stop, I would like to drop off: 20% of children 40% of teenagers In the Drop-off agent I changed the following inputs: Dropoff : Given quantity (if available) Quantity : children.size(0.2) + teenagers.size(0.4) click HERE to view the dropoff properties 回答1: To achieve this, you

difficult to find the current location of agents in Anylogic simulation

£可爱£侵袭症+ 提交于 2019-12-11 17:35:09
问题 i built a simple model for pedestrian movement from start line towards target line, I want to find the number of moving agents in some area using the XY-coordinates (from X=150 to X=350, Y is the same ) The action for the event is to get the count of agents in that area and set the value for the variable crowd1: crowd1=count(agents(), p-> p.getX()>150 && p.getX()<350) the problem is that it's always 0 , even though the gents are moving in the simulation. 回答1: There are no agents in your

Pick front item from a two deep pallet rack

拟墨画扇 提交于 2019-12-11 17:13:11
问题 I'm am storing agents two deep in a single pallet rack with a rackStore block. When I take items out of the rack with rackStore it tries the take the agents at the back first and I get the error below saying it couldn't be picked as there are other agents in front of it. Anyone know how I can pick from the front instead? 回答1: This is big fail in the AnyLogic Software and it is something they have to fix urgently. Since when it comes to deep positions, you have to control everything manually.

How to associate a probability distribution to Agents - Anylogic

大憨熊 提交于 2019-12-11 16:42:34
问题 I'm simulating a model on Anylogic, in which Agents flow from a Queue block to a Service block. I need to define the time spent by the angents in the service with a probability distribution like this: -the 70% of them spent in the service a lapse of time between 15 and 30 minutes (it should be an uniform distribution like: uniform( 15, 30 )) -the 20% of them between 30 and 45 minutes -the 10% of them between 45 and 60 minutes I've already associated to the agents a parameter called

How to Create an Agent with Multiple Attributes and Characteristic?

↘锁芯ラ 提交于 2019-12-11 16:22:27
问题 I'm developing a simple simulation model. However I'm facing some problem. Below is the example of my model; example model image Description; Fairy Bakery have a regular order of 30 Cake A and 20 Cake B daily. Each type of cake have their own specific time in making. You may refer database table below of the each process and respective process time. database table image Meanwhile, below is how I define each column type. define column type image My question is, using single agent; 1) Is it

Anylogic statechart with loops to set 3 suites as idle or scheduled

寵の児 提交于 2019-12-11 04:33:59
问题 (Main.java:935)__(NPE Error Image) I have 3 identical suites represented as an agent type ProductionOrder. A button on main sends a call to inject to the source on main. The source creates a ProductionOrder agent and has the following code in its On exit action that triggers a statechart transition in the ProductionSuite agent type. The statechart starts at 'idle' and has a message transition that connects to 'scheduled'. When I run the model and hit the button, the source receives a call to

Failure to Read Updated AnyLogic DB Values

馋奶兔 提交于 2019-12-04 17:04:33
I am currently using an AnyLogic database to store used parking capacity. I have written a function that reads the database and assigns an id to each container or trailer that is stored. Afterward, an UPDATE query is used to update the array. The database read is performed using selectfrom() as specified by the database query tool. The UPDATE query is as follows: update(storage) .where(storage.id.eq(ret%1000/10)) .set(storage.trailer, 1) .execute(); This is based off of the example given in the AnyLogic help. storage is the database, id is the indexed column, trailer is the column with the

Systems Dynamics in AnyLogic - Fibonacci sequence

三世轮回 提交于 2019-12-02 03:50:55
I have a systems dynamics model in AnyLogic in which I'm trying to model the Fibonacci sequence. Yet, for some reason, my results differ from the expected ones: Instead of 1,1,2,3,5,8,13... I get 1, 2.137954153, 4.021788196, 7.471205823, 13.86070806... I followed these (spanish) instructions to build my simple model. I suppose this is not common to all software because in VenSim this example seems to work perfectly... Can somebody explain to me why this happens in my AnyLogic program? The reason why this happens is because of the way differential equations are handled in each Software. The

Systems Dynamics in AnyLogic - Fibonacci sequence

邮差的信 提交于 2019-12-02 01:45:14
问题 I have a systems dynamics model in AnyLogic in which I'm trying to model the Fibonacci sequence. Yet, for some reason, my results differ from the expected ones: Instead of 1,1,2,3,5,8,13... I get 1, 2.137954153, 4.021788196, 7.471205823, 13.86070806... I followed these (spanish) instructions to build my simple model. I suppose this is not common to all software because in VenSim this example seems to work perfectly... Can somebody explain to me why this happens in my AnyLogic program? 回答1: