Please state the general framework of local optimization methods. Point out a potential problem of this framework and suggest a way to fix it.