Optimization with anti-optimization