Updates the solution structure.