generate solver.prototxt, start to organize paths