removed some unusused variables from MLNOptimizer's optimize() method