You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
635 B

6 years ago
  1. SATISFIABLE = 0
  2. UNSATISFIABLE = 1
  3. FALSE_NEGATIVE = 2
  4. FALSE_POSITIVE = 3
  5. def getComparisonStatus(comparison):
  6. if (comparison["minisat_satisfiable"] and
  7. comparison["qubo_satisfiable"]):
  8. return SATISFIABLE
  9. elif (not comparison["minisat_satisfiable"] and
  10. not comparison["qubo_satisfiable"]):
  11. return UNSATISFIABLE
  12. elif (comparison["minisat_satisfiable"] and
  13. not comparison["qubo_satisfiable"]):
  14. return FALSE_NEGATIVE
  15. elif (not comparison["minisat_satisfiable"] and
  16. comparison["qubo_satisfiable"]):
  17. return FALSE_POSITIVE