For example, the language of God 'repenting' or 'changing' in any way is anthropopathic language—figurative expressions that communicate to man on His level of understanding about changes of dispositions or actions. Thus, God's perceived 'changes' are always in the context of His eternal omniscience and will, so they are never because God is surprised and has to adjust. They are done in harmony with His truth and faithfulness (see 1 Sam. 15:29). All His acts that might be perceived as changes are eternally foreknown and predetermined.
John MacArthur