1

I am new with anylogic an I didn't know how to solve the problem. Please help me.

Screenshot

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

1 Answers1

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?

Example of code auto-complete functionality

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