Why agent-based modelling is useful for economists -- Introduction -- A very brief history of economic modelling -- What is ABM? -- The three themes of this book -- Details of chapters -- References -- Starting agent-based modelling -- Introduction -- A simple market: the basic model -- The basic framework -- Enhancing the basic model: adding prices -- Enhancing the model: selecting traders -- Final enhancement: more economically rational agents -- Running experiments -- Discussion -- The example model: full version -- References -- Heterogeneous demand -- Introduction -- Modelling basic consumer demand theory -- Practical demand modelling -- Discussion -- How to do it -- References -- Social demand -- Introduction -- Social networks -- Threshold models -- Adoption of innovative products -- Case study: household adoption of fixed-line phones in Britain -- Discussion -- How to do it -- References -- Benefits of barter -- Introduction -- One-to-one barter -- Red Cross parcels -- Discussion -- How to do it -- References -- The market -- Introduction -- Cournot-Nash model -- Market model -- Digital world model -- Discussion -- How to do it -- References -- Labour market -- Introduction -- A simple labour market model -- Discussion -- How to do it -- References -- International trade -- Introduction -- Models -- Discussion -- How to do it -- References -- Banking -- Introduction -- The banking model -- Discussion -- How to do it -- References -- Tragedy of the commons -- Introduction -- Model -- Discussion -- How to do it -- References -- Summary and conclusions -- Introduction -- The models -- What makes a good model? -- Pros and cons of ABM