Using String Invariants for Prediction Searching for Optimal Parameters