Optimization toolkit