Questions tagged [simulation]

Simulation is the imitation of some real thing, state of affairs, or process. The act of simulating something generally entails representing certain key characteristics or behaviours of a selected physical or abstract system.

5194 questions
1
vote
1 answer

How to send a reply to root node and at the same time a message to child nodes?

In Omnet++, I have created a network in which a root node sent a message to child nodes. The child node sends an acknowledgment to the root node and sends another message to its child nodes but my code also sends the message to the root node. I want…
hzeb
  • 11
  • 3
1
vote
1 answer

PyFMI multiple inputs in Master simulation

I am trying to simulate two FMUs with the one having inputs as CSV files by using the Master. What I have tried is the following: from pyfmi import load_fmu from pyfmi import Master import pandas as pd electricity_network =…
Kosmylo
  • 436
  • 1
  • 6
  • 20
1
vote
0 answers

Different step size for different FMUs

I have 3 FMUs that I want to simulate with the pyFMI Master. The two of them work with a resolution of seconds, but the third with a resolution of hours. Specifically, if I want to simulate for one day, namely 86400 seconds with a step size of 15…
Kosmylo
  • 436
  • 1
  • 6
  • 20
1
vote
0 answers

Why is the A* algorithm considered the industry standard among the shortest path algorithms?

I have seen in a lot of places that people refer to the A* algorithm as the 'best' algorithm when it comes to finding the shortest path. Are there any situations where other algorithms might be more efficient? How can I go about designing a…
1
vote
2 answers

Make an idle resource help out a unit already being served

So, the problem I'm facing is the following. I have a simple arcitechture where I simulate an unloading process where 2 cranes unload incoming docked ships. Using a seize-delay-release design, one incoming ship binds up one capcity point from the…
Telso
  • 131
  • 8
1
vote
1 answer

Anylogic - restrict access for pedestrian with a specific parameter

I am an Engineering Student and as part of my diploma thesis, I am simulating the passenger changeover process in metros using the Anylogic Pedestrian Library. In the simulation, it often happens that standing passengers "leave" the standing area…
1
vote
1 answer

Dynamic Resource Set Assignment Anylogic

I am trying to seize a given number of resources dynamically, but I can't figure out the syntax. In the Resource Sets Dynamic Assignment, each unit is represented by the name of the resource set it belongs to. In the picture, the seize block will…
1
vote
1 answer

Issue with portion size of valves

I am having an issue with setting the portion size of a valve during run time. It appears to always take the values placed in the 'Properties' input boxes as its first/initial portion size. I want to have this value read in from a database during…
bluechimp
  • 59
  • 5
1
vote
1 answer

How to simulate a pickup process happening in the parking lot in AnyLogic?

I am modeling a warehouse yard where trucks arrive, get loaded/offloaded and leave the site. The complexity arises when modeling the drop trailers. Those vehicles consist of two parts: tractor and trailer. Tractor and trailer enter the yard as one…
Yashar Ahmadov
  • 1,616
  • 2
  • 10
  • 21
1
vote
1 answer

Allow hold block to unblock more than one agent type

So, I'm currently sending two different agents (each from their own source blocks) to a common queue. In that queue I use agent comparison in order to prioritize one agent over another. View descriptive Image here: However, in an upcoming…
Telso
  • 131
  • 8
1
vote
2 answers

struggling to create a smooth-moving snake in p5 js - tail catching up to head

I'm putting together a p5 sketch with little wiggling snakes that move randomly across the screen. Unfortunately, the tail keeps catching up to the head every time it does a sharpish turn. Here is the function I'm using to calculate the move, I've…
1
vote
1 answer

A simple way to simulate "survey data" with a specified mean and range, or two samples of whole numbers with a standardised mean difference

I want to simulate survey data- think of a survey where people respond on a scale from 1(strongly disagree) to 7(strongly agree). I want to be able to specify the mean of the simulated sample, as well. For example, I want to simulate 100 numbers…
1
vote
1 answer

AnyLogic: Populate Time Color Plot with one row per agent

In AnyLogic 8, how do I create a Time Color Plot which has one row for each agent in a pool of agents? As explained in an answer to this question, I can create a separate dataset for each row, and then have the Time Color Plot display one row for…
JRose
  • 35
  • 6
1
vote
1 answer

How do i recreate a loading truck case with a limited number of trucks?

I have a warehouse with many palletrack which contains raw materials that have to be loaded on trucks and moved to a second warehouse. The loading zones (where trucks are loaded) are the green rectangular nodes (see image). The problem is that I…
1
vote
1 answer

Append simulation data using HDF5

I currently run a simulation several times and want to save the results of these simulations so that they can be used for visualizations. The simulation is run 100 times and each of these simulations generates about 1 million data points (i.e. 1…
jey-ronimo
  • 71
  • 7