findInconsistencies: Find inconsistencies in preference information

Description Usage Arguments Value Examples

Description

This function finds sets of pieces of preference information that make problem inconsistent.

Usage

1

Arguments

problem

Problem to investigate.

Value

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.

Examples

 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) })

kciomek/rorutadis documentation built on May 20, 2019, 8:16 a.m.