code: public void writeToFileWithoutFactors(String filename) throws IOException {
          FileOutputStream fos = new FileOutputStream(filename);
          writeToStreamWithoutFactors(fos);
          fos.close();
      }
docs: Convenience function to write the current state of the modelBatch out to a file, without factors.
  
  @param filename the file to write the batch to
  @throws IOException