isischameleon / abm_commons_tragedy Goto Github PK
View Code? Open in Web Editor NEWABM on the tragedy of commons on influence of social networks
ABM on the tragedy of commons on influence of social networks
Note : I have put the patches in a separate issue since maybe we don't need to save all the patches, just the %good land slider ?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; S A V E && R E L O A D
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
to save-setup
; procedure to save all setup parameters
save-network ;; save network, ideally with strength value (initial version can be only links)
save-patches ;; save each patch initial configuration
save-parameters ;; to save turtles parameters like nb-villagers, turtle-visino, ....
end
to save-network
end
to save-patches
end
to save-parameters
end
Hi Jimena,
I think this one is for you :-)
The extreme scenarios of percent-best-land are very predictable.
We need to focus on a reasonable range in which both depletion and sustainability are possible outcomes. I obeserved that the percent-best-land range between 12 and 18% is where things are happening. We can try a broad range like 10-25%. (this is for discussing, maybe it is not important now, and the range could change when we add the network, but it will be important for the simulations in the final report).
Call this procedure during setup, and save the agentset for each turtle in the turtles-own variable.
to-report turtles-that-listen-to-me [ a-turtle radius ]
;; reports an agentset of turtles that are linked to a-turtle by "radius" nodes
;; e.g if radius is zero returns a-turtle
;; if radius is 1 returns all turtles that are linked directly to that turtle
;; if radius is 2 returns all turtles that are 1 or 2 links away from a-turtle
;; let _turtles ...
;; report _turtles
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.