ADAPTIVE AND PREDICTIVE CONTROL OF A SIMULATED ROBOT ARM