21.07.2013 Views

The El Farol Bar Problem for next generation systems

The El Farol Bar Problem for next generation systems

The El Farol Bar Problem for next generation systems

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

54 APPENDIX A. C CODE FOR THE EL FAROL BAR PROBLEM<br />

/* Uncomment <strong>for</strong> up/down shuffle */<br />

// if (p_agent[i*M+k]>up) {p_agent[i*M+k]=down;}<br />

// if (p_agent[i*M+k]up)<br />

{p_agent[i*M+k]=(1.0/d)*p_agent[i*M+k];}<br />

if (p_agent[i*M+k]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!