Saving objective function in output net files.
Merge branch 'devel'