money | index /home/gcallah/TandonDevOps/IndraABM/capital/money.py |
A model for implementing Carl Menger's Money Theory.
Places a groups of agents in the enviornment randomly
and moves them around randomly to trade with each other.
Modules | ||||||
|
Classes | ||||||||||||||||||
|
Functions | ||
|
Data | ||
ACCEPT = 1 AGE = 'age' AMT_AVAIL = 'amt_available' DEF_NUM_TRADERS = 4 DEF_TRADE_RANGE = 400 DIVISIBILITY = 'divisibility' DUR = 'durability' EQUILIBRIUM_DECLARED = 10 GEN_UTIL_FUNC = 'gen_util_func' GOODS = 'goods' HEIGHT = 100 INCR = 'incr' INIT_COUNT = 0 IS_ALLOC = 'is_allocated' MODEL_NAME = 'money' MONEY_MAX_UTIL = 100 START_GOOD_AMT = 20 TRADER1 = 0 TRADER2 = 1 TRADER_GRP = 0 TRADE_COUNT = 'trade_count' UTIL_FUNC = 'util_func' WIDTH = 100 eq_count = 0 money_grps = {'traders': {'mbr_action': <function trader_action>, 'mbr_creator': <function create_trader>, 'num_mbrs': 4, 'num_mbrs_prop': 'num_traders'}} natures_goods = {'avocado': {'age': 1, 'amt_available': 20, 'color': 'green', 'divisibility': 0.5, 'durability': 0.3, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 8, 'util_func': 'gen_util_func'}, 'banana': {'age': 1, 'amt_available': 20, 'color': 'limegreen', 'divisibility': 0.2, 'durability': 0.2, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 10, 'util_func': 'gen_util_func'}, 'cheese': {'age': 1, 'amt_available': 20, 'color': 'yellow', 'divisibility': 0.4, 'durability': 0.5, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 25, 'util_func': 'gen_util_func'}, 'cow': {'age': 1, 'amt_available': 20, 'color': 'tan', 'divisibility': 1.0, 'durability': 0.8, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 10, 'util_func': 'gen_util_func'}, 'diamond': {'age': 1, 'amt_available': 20, 'color': 'purple', 'divisibility': 0.8, 'durability': 1.0, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 100, 'util_func': 'gen_util_func'}, 'gold': {'age': 1, 'amt_available': 20, 'color': 'orange', 'divisibility': 0.05, 'durability': 1.0, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 100, 'util_func': 'gen_util_func'}, 'milk': {'age': 1, 'amt_available': 20, 'color': 'white', 'divisibility': 0.15, 'durability': 0.2, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 10, 'util_func': 'gen_util_func'}, 'stone': {'age': 1, 'amt_available': 20, 'color': 'gray', 'divisibility': 1.0, 'durability': 1.0, 'incr': 0, 'is_allocated': False, 'trade_count': 0, 'transportability': 5, 'util_func': 'gen_util_func'}} prev_trade = {'avocado': 0, 'banana': 0, 'cheese': 0, 'cow': 0, 'diamond': 0, 'gold': 0, 'milk': 0, 'stone': 0} |