0
votes

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.

This is what I have right now. The source creates the 20 jobs and I want that the exit blocks sent the jobs through their sequence. I made the 'nextmachine' function that I put in the On Exit section in each one of the exit blocks.

This is my 'nextmachine' function and the error I keep getting and don't know how to solve. Enterblocks is a collection of class ArrayList and element class Agent that have the 5 enter blocks and the col_machineSequence is a collection with each job machine sequence.

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.

-New Error:I have this error, I think it is related with collection col_machineSequence.I have that code onStartup section.

1
Can please you show the type of collection - agent.enterblocks? where is it in the model and how is it populated?Artem P.
I edited my question, thank youRodrigo Lemos
Cool I've added the answer.Artem P.

1 Answers

0
votes

Here the Elements class property of enterblocks collections needs to be changed to Enter. To do this, select 'Other' in the dropdown and type Enter into the field that will appear to the right of the dropdown.