updating latest code to loop through parameters to find best parameters to use with rhc/sa/ga