Swarm Sugar S cape as a Starting PointPaul E . J ohnsonDept o f Political Sc ienceU niversity o f K ansasPrepared fo r Ecological So ciety of Am erica, 2004Plan fo r SSS Tutorial• Modified Suzuk i m ethod:– Run/Study exa mples– Tinker w ith exa mples– Ho pe th eory/f ramework w ill p ercolate up• Go al is to de velop a ppreciation fo r m odel building fro m the “b ottom up ”.• Defer di scussion o f Sw arm installation to smaller p latform-specific g roupsPresentation linked to Handoutsfile-line n umbered h andouts a re cited i n this •presentation• Av ailable o nline a s: sss-2.2-Handouts.tar.g z• Original Sug arscape m odel p resented i n famous b ook by Epstein & Ax tell, Growing Artificial S ocieties (MIT Press, 1996)Begin w ith Swarm Sugarscape • St ep by step [0-sss-shell1 .txt]–Download a “tarball” [0 -001]–U npack it w ith ta r and gz ip [0 -013]–C ompile w ith: [0 -046]make–Run w ith: ./sss [0-127]–see “ screenshots” sss-1.png, sss-2.pngStudy File La yout• Paired “*h ” a nd “*m ” files• “h” is a “h eader fi le” containing:–A class declaration–A list o f variables (aka: instance va riables, IV ARS)–A list o f methods• “m” is the “i mplementation file”, where the methods a re fully w ritten o ut.Study File Lay out #2Makefile [1 1]•–used by “make” program to ...
Voir