What parameters do you use to find the order in which elements will leave a solution during electrolysis?

I am looking to perform electrolysis on a molten solution of many elements, specifically a mix of iron, sodium, potassium, silicon, aluminum, and titanium oxides and chlorides. What I'm trying to figure out is how to determine what order the elements will be reduced in, and how this is determined. Some ideas I have are to base it off of the electronegativities or the Gibbs energies, but I'm not sure how feasible calculating the Gibbs energies even is in such a messy solution.


What parameters or formulas would be used to determine this?


