Error loading truck with pallets on a certain dock - anylogic

I would like to load my trucks on certain docks (for example truck A on dock 50) to a certain time. So I create a dbase which gives the different docks an id and connect it with my truck arrival dbase. So in my example my trucks should all arrive at dock 6 to different times. After that I load the dbase to my population loadDocks. Since I implemented this I get the attached error.
dock_dbase
agent_dock
error
population_loadDocks
arrivaltime_dbase

Related

removing a specific number of pallets from a pallet rack

i would like to pick a certain amount of pallets from my racks but I have no idea how to actually do that. For example, I would like to deliver 5 pallets but i have 25 stored, if i use a wait or a queue that I release all agents get picked up.
to release 5 agents from the wait block so they can be delivered you have to do the following
List <MyAgent> deliverables=findAll(waitBlock,w->true).subList(0,5);
for(MyAgent x : deliverables){
waitBlock.free(x);
}

How to create an hourly arrival rate schedule based on route costs and agent choices?

I am building a model in Anylogic where customers order containers at terminals with a starting hourly rate (which differs per hour), which I load from database to a schedule and then let the customers order at every terminal with the rate of the schedule. When they have ordered, a truck will bring the container from terminal to customer.
However, I want to give each possible route for the trucks (directly or via a hub that is open at night) some costs (depends on time of day and travel time). Depending on these costs, the agents choose which route to take and (as the hub route is partly done at night) at what time to travel. The choices are:
Travel directly (arrive at the terminal at day time)
Travel via hub (arrive at the terminal at night time)
Thus, I want to let the hourly arrival rate schedule change based on the choices agents make after calculations. Does anybody know how to let the arrival rate schedule (different per hour) change depending on agent choices (based on route costs)?
Based on your answers, you don't really need to change the hourly order rate schedule, rather you need to choose when to deliver the containers to the customers. For this, place the arrived orders in a queue and process them with FIFO principle (or LIFO, whichever priority you assign them).
But if you insist on having different hourly order rates, you can use the following approach. So, if you want to distribute 10 arrivals during an hour, you can use exponential(10) as the interarrival distribution. Please see the screenshot below. I update the variable trucks1 dynamically during the simulation to have different number of arrivals for different hours.

Limit the number of resources (forklifts) used in tasks

I have pallets shipments arrive at a warehouse. Once the arrive, forklifts are used to unload then and move the shipments to storage units. The current capacity of the forklift pool is 50. What happens now that when pallets arrive with a number of shipments to be unloaded and stored, let's say 10 shipments, then ten forklifts go to the pallets and unload the 10 shipments at once. Since the flowchart a pallet arrives and a forklift is seized consequently. I want to have one of two forklifts to be associated with a pallet at until all shipments are unloaded. I tried to use restricted Area Start and End between the forklift seize block and the shipment moveTo block but that limited the number of forklifts assigned to all pallets not only the one at the time.
Thank you
This is a lot, so i will just give you the hints necessary to do what you want
step 1. You need for each pallet to have a variable associated with that shipment. This varaiable can be an id integer, or maybe a variable of type Shipment.
step 2. Then on the on seize block, you have to specify a custom resource selection that defines the forklift you can use for that pallet. It would be either a forklift that is already assigned to that shipment, or a forklift that is free and no other forklift is connected to that shipment... here the logic depends on your own case and on how many forklifts should be used per shipment
step 3. When the resource is chosen, You connect that resource to your shipment through a variable or through a link to agents, if that resource was not previously connected to it.
step 4. When there are no more pallets available, you disconnect the forklift from the shipment so you have a new forklift free for any new shipment coming through

Moving pallet between racks Anylogic

Is it possible to move pallet between two different racks directly, without adding intermediate point node? For example I have two racks one at the receiving dock and one a the storage, after unloading all pallets to Receiving rack I need to send it to storage rack. So I understand I need to add two blocks Rack Pick and Rack store. Is it possible to combine those two?
You can always combine any number of blocks and make your own composite block. Select them, right-click and choose "create flowchart block".
This tutorial (phase 7) shows you how to do it and how to make it as flexible/reusable as you want.

Create a database with an arrival time and access to it in the process flow

I would like to create a database with different arrival times that my forklifts pick the pallets (rack pick) to the certain times. How could I do this? Which process blocks could I use to access to a database with arrival times?
For example at 10am on May 20 45 pallets should pick out of the pallet rack. I tested it with a delay block and it works but only with different hours where the pallets get picked and not an specific date. The important thing is the date which I get from a database.
process
Probably the easiest way is to have your in-rack agents (after your RackStore block) sit in a Wait block, and be freed from there (using the Wait block's free function) --- to then carry on to a RackPick block --- via AnyLogic dynamic events whose timings come from a database table.
(Your model as-is will just have your agents immediately exiting the rack and going to the Sink because the Queue does not stop them leaving.)
Your model startup would loop through the rows in the table and create dynamic event instances with the appropriate timeouts (delays from model start), and with a dynamic event parameter which specified the number of pallets to pick (and thus the number to free from the Wait block).