This page was automatically generated by NetLogo 1.2beta2 (Rev B). Questions, problems? Contact feedback@ccl.northwestern.edu.

In order for this to work, this file, your model file (Voting modified.nlogo), and the file nLogoLite.jar must all be in the same directory. (You can copy nLogoLite.jar from the directory where you installed NetLogo.)

On some systems, you can test the applet locally on your computer before uploading it to a web server. It doesn't work on all systems, though, so if it doesn't work from your hard drive, please try uploading it to a web server.

You don't need to include everything in this file in your page. If you want, you can just take the HTML code beginning with <applet> and ending with </applet>, and paste it into any HTML file you want. It's even OK to put multiple <applet> tags on a single page.

If nLogoLite.jar and your model are in different directories, you must modify the archive= and value= lines in the HTML code to point to their actual locations. (For example, if you have multiple applets in different directories on the same web server, you may want to put a single copy of nLogoLite.jar in one central place and change the archive= lines of all the HTML files to point to that one central copy. This will save disk space for you and download time for your user.)

created with NetLogo

view/download model file: Voting modified.nlogo

WHAT IS IT?
-----------
This model is a simple cellular automaton that simulates voting distribution by having each patch take a "vote" of its eight surrounding neighbors, then perhaps change its own vote according to the outcome. This is an enhanced model which incorporates multiple colors and multiple votes. Different colors represent the degree of a patch's opinion about an issue: strongly against (red), against (orange), favor (green), and strongly favor (blue). Instead of the original two choices, the modified model allows the patches to have 4 different votes and weights the votes accordingly.


HOW TO USE IT
-------------
Click the SETUP button to create an approximately equal but random distribution of blue, red, orange, and green patches. Click GO to run the simulation.

When both switches are off, the central patch changes its color to match the majority vote, but if there is a 4-4 tie, then it does not change.

If the CHANGE-VOTE-IF-TIED? switch is on, then in the case of a tie, the central patch will always change its vote.

If the AWARD-CLOSE-CALLS-TO-CLOSER? switch is on, then if the result is 5-3, the central patch votes with the losing side instead of the winning side.


THINGS TO NOTICE
----------------
Watch how any setup quickly settles to a static state when both switches are off.

Watch what happens when only the CHANGE-VOTE-IF-TIED? switch is on. How is the result different?

Watch what happens when only the AWARD-CLOSE-CALLS-TO-LOSER? switch is on. How is the result different?

What happens when both switches are on?


CREDITS AND REFERENCES
----------------------
This model is described in Rudy Rucker's "Artificial Life Lab", published in 1993 by Waite Group Press.

To refer to this model in academic publications, please use: Wilensky, U. (1998). NetLogo Voting model. http://ccl.northwestern.edu/netlogo/models/Voting. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.