On-Line Environment Adaptation for User Performance Optimization