An agent model integrating an adaptive model for environmental dynamics. (16th May 2011)