Learn R Programming

rorutadis (version 0.4.2)

findRepresentativeFunction: Find representative utility function

Description

This function finds a representative utility function for a problem.

Usage

findRepresentativeFunction(problem, mode, relation = NULL)

Arguments

problem
Problem to investigate.
mode
An integer that represents a method of a computing representative utility function:
  • 0 - iterative mode,
  • 1 - compromise mode.
relation
A matrix of assignment pairwise comparisons (see compareAssignments). If the parameter is NULL, the relation will be computed.

Value

List with named elements:
  • vf - list of 2-column matrices with marginal value functions (characteristic point in rows),
  • thresholds,
  • assignments,
  • alternativeValues,
  • epsilon.
NULL is returned if representative function cannot be found.

See Also

plotVF plotComprehensiveValue findSimpleFunction

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

representativeFunction <- findRepresentativeFunction(problem, 0)
assignments <- representativeFunction$assignments

Run the code above in your browser using DataLab