Change the function to be optimized, but keep it indexed in terms of the a fixed listing of vertices.