The Sovereignty of God and Prayer

If we believe that God works all things according to His will (Ephesians 1:11), and if we believe that His knowledge of all things is perfect, then what is the point of prayer? Or: If God has determined some to be His sons and has chosen them before the foundation of the world (Ephesians 1:4,5), is there then any point in praying for anyone's conversion?