Skip to content

Instantly share code, notes, and snippets.

@AlexP11223
Last active April 14, 2019 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexP11223/939152c378f4735f45bc8e9279def5a4 to your computer and use it in GitHub Desktop.
Save AlexP11223/939152c378f4735f45bc8e9279def5a4 to your computer and use it in GitHub Desktop.
int num = 0;
for (Object[] permutation : permutations) {
double score = runInstance.accept(permutation); // can take lots of time
System.out.println(String.format("%d/%d %s -> %.4f", ++num, permutations.size(), params, score));
results.put(score, permutation);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment