Automatically mixes and measures optimized dilutions