Text this: Optimal selection of the forgetting matrix into an iterative learning control algorithm