Oops, I just read an old post about a "Calculate" button asking the exact same thing. Sorry for the double post!
Now I admit I don't have much experience in programming, but is it possible to write a script that chooses a random additive, adds 0.25g, then calculates the difference total and compares it to the previous difference total. If it's lower, it keeps the 0.25g, then chooses a different additive. If it's larger, it removes that 0.25g and chooses another additive. If it fails to find a lower difference after x amount of tries, it calls it good.