Consistency Check
Check the transitive consistency of a pairwise judgment matrix, identify inconsistent entries, and suggest corrections.
HARD-GATE
Pipeline
- Precondition check: verify the matrix is square; check the diagonal and reciprocal properties; if violated, report the specific location
- Compute judgment matrix: confirm the input matrix is valid
- Compute consistency ratio: column normalize → row means (weight vector) → weighted-sum vector → λ_max → CI → CR (look up the Saaty RI table)
- Identify inconsistent entries: for each triple (i, j, k), test transitivity a[i][k] ≈ a[i][j] × a[j][k]; the pair with the largest deviation is the inconsistent entry
- Suggest corrections: for each inconsistent entry, suggest adjusting a[i][j] to the value that makes transitivity hold
- Output: return the ConsistencyReport object
Output Format
{
"labels": ["gap_001", "gap_002", "gap_003"],
"n": 3,
"lambda_max": 3.05,
"ci": 0.025,
"ri": 0.58,
"cr": 0.043,
"cr_acceptable": true,
"inconsistent_pairs": [],
"revision_suggestions": [],
"matrix_issues": []
}
