tools/smaz: add selection of the scoring method in optimization