optimize eqlist