AnyLogic-- custom resource allocation and conditional waiting in queue, parameters read from DB -
i'd use dynamic resource allocation based on parameter read db. is, have multiple team of resources (i.e. technicians, welders, etc.) , each job requires amount of resource pools based on parameter written in db. job generated db's date column value arrives , seize amount of workers different teams stated relevant column (say "workers") in db. how can implement this? tried "customize resource choice" couldn't find relevant example select amount of worker each pool according db's relevant column.. it's same seizing amount of tools tool set, resource pool.
my agent parameters follows:
- job id (string)
- job detail (string)
- job arrival date (date)
- job duration (int)
- workers set (i.e. 2 mechanics, 3 technicians etc. pools)
- tools set (i.e. 2 screwdriver, 3 filters etc.)
- vehicle set (i.e. 1 forklift, 2 trailer etc.)
- equipment location (where job being implemented)
- predecessors (the jobs must finished before incoming job implemented)
here i'd implement in general:
a job arrives, check predecessors; if of them not finished yet, waits in system (?), when predecessors finished, in system , seize relevant resources according resource parameter stated in db, go equipment location, being implement duration stated in db, release resources , exits system (sink)...
i can push jobs db start date column , make them delay amount of time stated db duration column.. rest mystery now... couldn't figure out conditional waiting in queue , custom resource allocation pools quantities..
could please me that? in advance,
best regards,
Comments
Post a Comment