Tom, I believe a picture of how God's foreknowledge, election, and free will works together is shown in Judges 7 with Gideon.
Gideon was going to go against the Midianites with 32 thousand men. God said this was too many, lest the people think their "own hand" had "saved" them (only God saves). Gideon said any man who was afraid (faithless) could leave, 22 thousand men returned home leaving 10 thousand. God said this was still too many, and commanded Gideon to bring these men down to a body of water (the Word/Spirit).
Now here is where we see foreknowledge, election, and free will at once. God told Gideon to watch (foreknowledge) and note which men knelt down to drink, and which drank like dogs, and to choose (election) those that brought water to their mouth and lapped like a dog (humility). Those that lapped like a dog were 300 men, and this is who God chose to go into battle.
Did God predetermine who would be chosen? Yes. Did God know only 300 would lap like dogs? Yes. Did God compel or force those 300 men to lap like dogs? No.
If God had not brought them down to the water (the Word and Spirit) could they drink? No. And we cannot be saved unless God brings us to the living water, his Word and Spirit.
God already knows exactly which men will humble themselves like dogs and drink of this water, and he has chosen them before they actually drink. But he does not compel who will drink, and who will not.
Now, there it is if you can see it.