I am trying to do a job shop scheduling resorting to anylogic. I have 20 jobs(Agent 'jobs') that have to go through 5 machines(each one a unit capacity resource). I have two database tables, one having the specific order of each job through the machines and the other one has the processing times of the jobs in the respectives machines.
The 'nextmachine' code was based in this post How to store routings in job shop production in Anylogic.
I made a question previously Routing agents through specific resources in anylogic. Here you can see some of my previous doubts and some of the suggestions.
Thank you in advance
The enterblocks collection is in the jobs agent, and is defined in this way.