fixed solver constructor in train_net.cpp