The optimization of non-linear systems using a new two level method