multilevel method of optimization