Download NetLogo 3.0 User Manual
Transcript
NetLogo 3.0 User Manual Usage Can I run NetLogo from a CD? Yes. NetLogo runs fine on a read−only file system. How do I change how many patches there are? A quick method is to use the three sets of black arrows in the upper left corner of the 2D view. Another method is as follows. Select the 2D view by dragging a rectangle around it with the mouse. Click the "Edit" button in the Toolbar. A dialog will appear in which you may enter new values for "Screen Edge X" and "Screen Edge Y". (You can also right−click [Windows] or control−click [Mac] on the 2D view to edit it, or select it then double−click.) Can I use the mouse to "paint" in the view? NetLogo does not have a built−in set of painting tools for painting in the view. But with only a few lines of code, you can add painting capability to your model. To see how it's done, look at Mouse Example, in the Code Examples section of the Models Library. The same techniques can be used to let the user interact with your model using the mouse in other ways, too. Another possibility is to use a special drawing model such as the Drawing Tool model by James Steiner which is available from http://ccl.northwestern.edu/netlogo/models/community/. A third possibility is to create an image in another program and import it. See the answer to Can I import a graphic into NetLogo?. How big can my model be? How many turtles, patches, procedures, buttons, and so on can my model contain? We have tested NetLogo with models that use hundreds of megabytes of RAM and they work fine. We haven't tested models that use gigabytes of RAM, though. Theoretically it should work, but you might hit some limits that are inherent in the underlying Java VM and/or operating system (either designed−in limits, or bugs). The NetLogo engine has no fixed limits on size. On Macintosh and Windows operating systems, though, by default NetLogo ships with a 512 megabyte ceiling on how much total RAM it can use. (On other operating systems the ceiling is determined by your Java VM.) Here's how to raise the limit if you need to: • Windows: Edit this section of the "NetLogo.lax" file in the NetLogo folder: # LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.MAX # −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− # allow the heap to get huge lax.nl.java.option.java.heap.size.max=536870912 Note: this might not help on some Windows 98 or Windows ME systems. 156 FAQ (Frequently Asked Questions)