Published June 6, 2026 | Version v1.0.0

oleimar/habits3: C++ code for evolutionary simulation of habit forming and breaking

Authors/Creators

Description

This repository contains C++ code and example data. The executable programs EvoLearn, built from this code, will run evolutionary simulations of a population of several groups of individuals that explore and form and break habits. The programs were used to produce results for the paper "Evolution of behavioral flexibility and the forming and breaking of habits" by Olof Leimar, Sasha R. X. Dall, Peter Hammerstein, Alasdair I. Houston, Bram Kuijper, and John M. McNamara.

This repository contains code for two programs, one using an optimistic exploration approach (subdirectory OE) and another using Thompson sampling (subdirectory TS).

Files

oleimar/habits3-v1.0.0.zip

Files (396.0 kB)

Name Size Download all
md5:ab520bac0817c8eef0881e504791cecb
396.0 kB Preview Download

Additional details

Related works

Is supplement to
Software: https://github.com/oleimar/habits3/tree/v1.0.0 (URL)

Software