Write objectives to file, as binary