How to include procedures from one Netlogo file to another? Basically, I want to separate the genetic algorithm code from my (rather complex) fitness function, but obviously I want the fitness reporter who will be in "fitness.nlogo" to be available in the genetic algorithm code, probably " gene.nlogo ".
If this can be done, how are the procedures imported and the code executed? Is it like Python, where importing a module pretty much does everything in the module, or like C / C ++, where the file is blindly "connected"?
This may be a stupid question, but I did not find anything on Google. Netlogo's documentation talks about __includes , an experimental keyword that can do the trick, but there isn't much to explain. There is no example.
Any clues? Should I go with __includes ? How it works?
source share