simulation

Why am I getting “Entity port d does not match with type unsigned of component portParsing…” when I try to simulate this VHDL?

放肆的年华 提交于 2019-12-11 21:21:23
问题 The full error message is: ERROR:HDLCompiler:377 - "C:/Users/einar/Documents/Xilinx/ISE/Projects/EDA385/scale_clock_tb.vhd" Line 17: Entity port d does not match with type unsigned of component port I'm using ISE web pack and I have implemented the top module, the top module is scale_clock. Also, it simulates just fine when I do behavioral simulation. But for post-map or post-route I get the error message above. This is the code for the component: library IEEE; use IEEE.STD_LOGIC_1164.ALL;

opnet attribute name of opnet model is unrecognized

限于喜欢 提交于 2019-12-11 19:19:08
问题 I'm trying to simulate a network with opnet and I'm building all parts of it myself (like processors, nodes, links, ...). In my node models I use point-to-point transmitters and receivers and it all seems to be ok but when I try to run the simulation I get this error: <<< Recoverable Error >>> Attribute name (data rate) is unrecognized for object (0). T (0.0001), EV (14), MOD (top.Office Network.node_1.port_tx0), KP (op_ima_obj_attr_get) node_1 is a node and port_tx0 is its transmitter. I did

Trying to understand the inverse transform method for generating a Poisson random variable

别来无恙 提交于 2019-12-11 18:24:04
问题 The algorithm Wikipedia gives for generating Poisson-distributed random variables using the inverse transform method is: init: Let x ← 0, p ← e^−λ, s ← p. Generate uniform random number u in [0,1]. while u > s do: x ← x + 1. p ← p * λ / x. s ← s + p. return x. I implemented it in R: f<-function(lambda) { x<-0 p<-exp(-lambda) s<-p u<-runif(1) while (u>s ) { x<-x+1 p<-p*lambda/x s<-s+p } return(x) } but I don't understand how this generates values of this random variable, and I also think the

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

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

Knowing when and how to rotate object

徘徊边缘 提交于 2019-12-11 15:19:57
问题 The CSV below gives me the x,z coordinates of a car with id = 1 at a given time t in seconds. I am able to update the car gameobject's transform position at each second just fine. The issue is that when the car's direction changes, I need to be able to rotate (or realistically turn) the car to make it point in the direction it's going. I'm trying to do this with a simple Lerp rotation for now (and then use the standard asset CarController script to make a turn more realistic afterwards). The

Simulation to generate random numbers from a truncated logistic distribution in R

心不动则不痛 提交于 2019-12-11 14:35:22
问题 I have written a code to generate logistic random variables in R but with a truncation between 0.2 and 0.5. Can anyone there help write it properly especially with the if conditions. Thank you. <##The Logistic distribution## ns=10 for(i in 1:100){ rtruncl=function(u,a,b,alpha1,alpha2) #error: { qalpha1 = log(alpha1/(1-alpha1)) qalpha2 = log((1-alpha2)/alpha2) X=a+b*log(u/(1-u)) u=runif(ns) if((X >= qalpha1) && (X <= qalpha2)){ # error: } a=0; b=2 ##a is a location parameter and b is a scale

How to run several procedures simultaneously in NetLogo?

痞子三分冷 提交于 2019-12-11 13:54:41
问题 There are different colored turtles in my model each operating under different rules. I want procedures governing the movement of one turtle(say, red turtle) to run simultaneously with other procedures governing the movement of different colored turtles. 回答1: Alan's answer is the correct one. However, just FYI - each turtle (whether red or blue) will act in turn with the above procedure, and none with act "at the same time." That just doesn't happen in NetLogo, by default. However, you can

Scala/akka discrete event simulation

牧云@^-^@ 提交于 2019-12-11 13:52:54
问题 I am considering migrating a large code base to Scala and leveraging the Akka Actor model. I am running into the following conceptual issue almost immediately: In the existing code base, business logic is tested using a discrete event simulation (DES) like SimPy with deterministic results. While the real-time program runs for hous, the DES takes a few minutes. The real time system can be asynchronous and need not follow the exact ordering of the testing setup. I'd like to leverage the same