Programmed the solver to find the best starting point