public void append(ResultEntry entry) throws IOException {
  numberOfEntries++;
  List<Solution> feasibleSolutions=new ArrayList<Solution>();
  for (  Solution solution : entry.getPopulation()) {
    if (!solution.violatesConstraints()) {
      feasibleSolutions.add(solution);
    }
  }
  Properties properties=entry.getProperties();
  if (feasibleSolutions.isEmpty() && ((properties == null) || (properties.isEmpty()))) {
    writer.println("//");
  }
  if ((properties != null) && !properties.isEmpty()) {
    printProperties(properties);
  }
  if (!feasibleSolutions.isEmpty()) {
    for (    Solution solution : feasibleSolutions) {
      printSolution(solution);
    }
  }
  writer.println('#');
}

public void append ( ResultEntry entry ) throws IOException { numberOfEntries ++ ; List < Solution > feasibleSolutions = new ArrayList < Solution > ( ) ; for ( Solution solution : entry . getPopulation ( ) ) { if ( ! solution . violatesConstraints ( ) ) { feasibleSolutions . add ( solution ) ; } } Properties properties = entry . getProperties ( ) ; if ( feasibleSolutions . isEmpty ( ) && ( ( properties == null ) || ( properties . isEmpty ( ) ) ) ) { writer . println ( "//" ) ; } if ( ( properties != null ) && ! properties . isEmpty ( ) ) { printProperties ( properties ) ; } if ( ! feasibleSolutions . isEmpty ( ) ) { for ( Solution solution : feasibleSolutions ) { printSolution ( solution ) ; } } writer . println ( '#' ) ; }
appends the decision variables , objectives and optional properties to the output file . constraint violating solutions are not recorded .
