I'm new with AnyLogic and I need some help. I'm trying to simulate the service process at the airport.
Model
I have 2 agents - Flight
Flight
and Passenger
Passenger
Flight is a entity of table:
FlightDb
What I would like to do?
I'd like to generate Passengers for all flights from table FlightDb. The number of passengers for each flight is set in column pax_number.
Every passenger should appear in random time in period 1.5-0.5 hour before the departure_time.
Once/During generated, every Passenger agent should have related Flight instance filled in.
Anyone has some idea for this problem?
Related
Could someone please help with the following issue that I have?
I have dataset which collect data from next process:
Manager_start started process with unique uuid (job_id not unique, because if status don't change to 'finish_pass' it's not close. After Manager_start finished (close) his job - it's automatically assigned on Manager_finish. If status 'finish_decline' - Manager_finish field stay 'blanc'
I need prepare visualization (table and bar chart)
which will show amount of processes by manager_finish amount. It should look same like this. (For table it should be grouped by Number of processes and for chart on X axis should be amount of processes and for Y axis should be amount of manager_finish who finished process.
Also should be able to filter visualizations by next filters: uuid, job_id, status, date_finish_working, manager_name_start, manager_name_finish
I have dataset in table with such columns:
uuid (uuid of process) identifier
job_id (id of job which need to be done))
status - status of process (everytime begins from 'start' and could finish with 'finish_pass' or 'finish_decline')
date_start_working - date when job start get in work
date_finish_working - date when process finished
manager_id_start - id of manager, who start process
I found same case with solution (https://community.powerbi.com/t5/DAX-Commands-and-Tips/distribution-of-calculated-measure/m-p/1047781), but it's not working to my case, because I need to have ability filtering data by different fields and have diffent data structure
Data sample example available by link (upload it to file storage)
https://fex.net/s/drxzbeo
I am creating a chatbot for students. I am facing a problem in one of my
use cases. Students need to get the subjects in a particular year (Bot give the
subjects only semester wise). But the problem is I have two entity #year
and #semester.
My entity values for #year and #semester is given below. Also I gave some
synonyms for that.
#year values are : 1,2,3
#semester values are :1,2
When the user mention as first year the values of #year:1 and #semester
is also set as 1, but here actually need to take the input from the user
for semester.I already done for ask the semester based on #semester in a
slot, but the value set int #semester is not invoking that.
How can I solve this conflict?
My expected conversation is below
Student -Get me the list of subjects in first year.
Bot - Tell me the course name? `enter code here
student - A
Bot - Tell me the semester?
Student - give semester number
Bot - The subjects in first year first semester of A are "Listing Subjects"
But the output is like this
Student - Get me the list of subjects in first year.
Bot - Tell me the course name?
student - A
Bot - The subjects in first year first semester of A are Listing Subjects
I would recommend to check these tips for working with slots, including those on avoiding slot filling confusion.
You would need to add conditions or clarifications when capturing the data. Another option is to break up the conversation in two dialog steps. First, get the year and course name, next, in a separate dialog node, capture the semester and look up the actual information to respond.
new_Screenshot
Questions revised:
In my model, I have 10000 "Persons" as a type of agents at "Main" level. As shown new_Screenshot, there is a process like the statechart. "variable1" is determined by the process. For example, Person 1 will have 10 for the value of "variable1" while Person 2 will have 100 through the process. My question is how to obtain the values (e.g. Person 1: 10, Person 2: 100,.....Person 10000: 10) in AnyLogic.
Thank you.
previous version: My model has 10000 "Persons" as a type of agents. "Persons" have a statechart and a variable ("variable1" in the Screenshot) obtains a set of different values from the statechart. I am trying to collect all those values from a variable for all 10000 "Persons". How can I do this? I have tried to use traceln but it didn't work because I need the values and not the min, max, average, etc.
Thank you!
Screenshot
So the answer is the following:
If your agent is defined as an agent type, then you can't create a population of 10,000... to create a population of 10,000 you need to create an agent population, so I assume that's what you did, even though you say the opposite.
An element of a population of agents can be accessed the same way as any collection using:
persons.get(N); where N is any integer between 0 and 9999.
If you want to access a variable in that particular agent:
persons.get(N).variable1
I have created one data set for Bus station, Incident type & no incident.
I want to generate a report in a tableau which represent the total no incident occurred at a particular station.
How can I get this result in Tableau?
First of all, I would recommend that you go through basic tableau learning which is available for free on https://www.tableau.com/learn/training/
If you do that, what I am about to say next will make a lot more sense.
Make sure incident # is discrete, now right-click drag the incident # to rows or columns section and selection count distinct. You can segment it by bus station or incident type depending on what you want to do.
The only scenario this solution would work seemlessly, is when incident # is a unique variable.
I am having my course project now,
and I am planing to create an application for soccer league,
but I am facing a problem.
I want to create new league
and there I want to create groups and teams in this way:
So, I want to create number of tables based on the (No. of Group) that will be entered by the user, for computing results among the teams inside each group.
And to set a (No. of teams /group), so based on that number rows in each group tables will be available.
I hope you got understand my problem.