I am new with anylogic an I didn't know how to solve the problem. Please help me.
Asked
Active
Viewed 86 times
1

Ocaso Protal
- 19,362
- 8
- 76
- 83

Leiel Bahri
- 11
- 1
-
It just means that there's no variable called depot in main. – Felipe Feb 24 '21 at 09:46
-
How come the error says "depot" but your code says "depots" with an s? – Emile Zankoul Feb 24 '21 at 10:19
1 Answers
0
The error simply means that there is no variable called depot in main.
I would suggest using the code auto-complete feature, alt+space
on Mac and ctrl+space
on Windows.
Then you will be able to see if the variable you are trying to access is available?
The first question would be: Do you have a variable or populate on main called depots? Or maybe you called it something else. It is hard to know without seeing your main, or having the main agent expanded fully in the project explorer window 9(See my screenshot)
If you do it will be available for you to use in the vehicle agent

Jaco-Ben Vosloo
- 3,770
- 2
- 16
- 33