Model of interaction between learning and evolution. Computer simulation and analytical results