This illustrates a basic main loop for optimization and searching for the best scoring conformation.