Learn R Programming

rorutadis (version 0.4.2)

investigateUtility: Post factum analysis: check how much utility is missing

Description

This function calculates missing value of an alternative utility for that alternative to be possibly (or necessarily) assigned to at least some specific class.

Usage

investigateUtility(alternative, atLeastToClass, necessary, problem)

Arguments

alternative
An alternative index.
atLeastToClass
An assignment to investigate.
necessary
Whether necessary or possible assignment is considered.
problem
Problem for investigation.

Value

List with named elements: NULL is returned if given assignment is not possible.

See Also

getMarginalUtilities getCharacteristicPoints getThresholds improveAssignment

Examples

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

result <- investigateUtility(4, 3, FALSE, problem)

Run the code above in your browser using DataLab