Encoding check.py

Name check.py
Class Tree
Submitter Martin Gebser
Author Martin Gebser and Roland Kaminski
Description This script invokes gringo/clasp to check (decision problems) or evaluate the quality (optimization problems) of solutions.

Example calls and outputs (for instance, correct solution, and verification/evaluation encoding):

$./check.py tsp_ins.lp tsp_sol.lp tsp_chk.lp 2> /dev/null
CORRECT

$./check.py tsp_ins.lp tsp_sol.lp tsp_opt.lp 2> /dev/null
CORRECT.564.OPTIMALITY-UNKNOWN

$ cat tsp_ins.lp tsp_sol.lp tsp_chk.lp | ./check.py 2> /dev/null
CORRECT

$ cat tsp_ins.lp tsp_sol.lp tsp_opt.lp | ./check.py 2> /dev/null
CORRECT.564.OPTIMALITY-UNKNOWN


In the case that no answer set is reported by clasp, we get output:

INCORRECT
Created 2009-03-13 21:23
Modified 2009-05-19 18:48
Languages
Language Features
Compatible Instance Classes
    Input Predicates
      Output Predicates
        Encoding Parameter
          Standalone Help No
          Attributes
          Content