Using Stability Conditions
Early in the optimization when parameter values are not so good it is often useful to set the driving force for precipitation of a phase (per mole of components) to make sure that it appears where it should. The DGM condition is very useful for making sure that phases appear where they should. It can be removed when the optimization becomes stable.
The DGM condition is also useful for suppressing phases that appear where they should not appear. Do this by setting the value and the uncertainty to something reasonable. For example, the driving force for precipitation of the BCC phase could be set as follows:
DGM(BCC)<-0.1:0.1
This produces an error even before BCC becomes stable and the weight of the experiment in question can be adjusted as needed. If you specify that the driving force for the BCC phase should be below 0 (DGM(BCC)<0:1E-4 for example), then the optimization converges extremely slowly (if at all). With such a sharp error condition, calculating the equilibrium is like finding the minimum point on a lawn that gently slopes towards a rock wall. The optimization keeps bouncing into the wall.
Another useful stability condition is the phase stability function, abbreviated QF. This can be used to specify that a phase is outside the miscibility gap for a solution phase. If QF(phase) is negative, then the phase is inside the miscibility gap; if QF(phase) is positive, then it is outside the miscibility gap.