+ GeneSorter::ActionList al = so.sort(go,model);
+
+ //Print the result
+ double score = 0;
+
+ GeneOrder temp(go);
+ for (GeneSorter::ActionList::iterator sa = al.begin(); sa != al.end(); ++sa){
+ cout << "Action: " << sa->toString() << " model score: " << model.score(*sa,temp) << endl;
+ (*sa)(temp);
+ score += model.score(*sa,temp);
+
+ if (printPerm){
+ copy(temp.begin(), temp.end(), ostream_iterator<int>(cout, " "));
+ cout << endl;
+ }
+ }
+ cout << "Avg score: " << score / al.size() << endl;
+