Description Usage Arguments Value Examples
View source: R/inconsistencies.R
This function finds sets of pieces of preference information that make problem inconsistent.
1 | findInconsistencies(problem)
|
problem |
Problem to investigate. |
List of ordered by cardinality sets of indices of preference
information that makes problem inconsistent. Use getRestrictions
on sets to find out related preference information.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | perf <- matrix(c(1, 2, 2, 1), ncol = 2)
problem <- buildProblem(perf, 3, TRUE, c('g', 'g'), c(0, 0))
problem <- addAssignmentsUB(problem, c(1, 1))
problem <- addAssignmentsLB(problem, c(2, 2))
checkConsistency(problem) # TRUE
problem <- addAssignmentsLB(problem, c(1, 3)) # added inconsistency
checkConsistency(problem) # FALSE
inconsistencies <- findInconsistencies(problem)
setsOfprefInfo <- lapply(inconsistencies,
function(x) { getRestrictions(problem, x) })
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.