Learn R Programming

rorutadis (version 0.4.2)

compareAssignments: Compare assignments

Description

This function compares assignments.

Usage

compareAssignments(problem, necessary = TRUE)

Arguments

problem
Problem for which assignments will be compared.
necessary
Whether necessary or possible assignments.

Value

n x n logical matrix, where n is a number of alternatives. Cell [i, j] is TRUE if a_i is assigned to class at least as good as class of a_j for all compatible value functions.

Examples

Run this code
perf <- matrix(c(5, 2, 1, 7, 0.5, 0.9, 0.4, 0.4), ncol = 2)
problem <- buildProblem(perf, 3, FALSE, c('g', 'g'), c(0, 0))
problem <- addAssignmentsLB(problem, c(1, 2), c(2, 3))

resultOfComparison <- compareAssignments(problem)

Run the code above in your browser using DataLab