learning based optimization works on simple example