Optimization involves adjusting the proportions and preparation conditions to achieve the best performance. This can be done through iterative testing and modification. Advanced methods like design of experiments (DOE) and machine learning can also be used to systematically explore the formulation space and identify optimal conditions.