optimized inexact opt2