Learn R Programming

RMCriteria (version 0.2.0)

RPrometheeIII: RPrometheeIII

Description

PROMETHEE III method includes a tolerance region in the preordering of alternatives. That is, an indifference region is created, different from PROMETHEE I and II, where indifference only occurs when the performance of two alternatives is exactly the same.

Usage

RPrometheeIII(RPrometheeArguments)

Arguments

RPrometheeArguments

an object with all RPromethee arguments. In this method, the object must have the argument alphaVector to indicate the size of the interval for each alternative. See RPrometheeConstructor for more information.

Value

  • limInf The inferior limit for the interval defined for each flow.

  • limSup The superior limit for the interval defined for each flow.

  • Phi The resulting net Phi from the alternatives for all criterias.

  • alternatives The alternatives names.

  • criterias The criterias names.

  • datMat The data used corresponding to criterias and alternatives.

References

See Also

Other RPromethee methods: PrometheeIIIPlot, PrometheeIIPlot, PrometheeIPlot, PrometheeIVPlot, RPrometheeConstructor, RPrometheeII, RPrometheeIVKernel, RPrometheeIV, RPrometheeI, RPrometheeV, SensitivityAnalysis, UpdateRPrometheeAlternatives, UpdateRPrometheeArguments, WalkingWeightsPlot, plot,RPrometheeI-method

Examples

Run this code
# NOT RUN {
## Create objects for each argument
data <-matrix(c(5.2, -3.5,
                4.3, -1.2,
                6.7, -2.0), byrow = TRUE, ncol = 2, nrow = 3)

parms <- matrix(c(NA, NA), byrow = TRUE, ncol = 1, nrow = 2)
vecWeights <- c(0.3, 0.7)
vecMaximiz <- c(FALSE, TRUE)
prefFunction <- c(0,0)
alphaVector <- c(1, 2, 1)
normalize <- FALSE
alternatives <- c("Alt 1", "Alt 2", "Alt 3")

## Create RPrometheeArguments object
PromObj <- RPrometheeConstructor(datMat = data, vecWeights = vecWeights,
vecMaximiz = vecMaximiz, prefFunction = prefFunction, parms = parms,
normalize = normalize, alternatives = alternatives, alphaVector = alphaVector)

## Run RPrometheeIII
(result <- RPrometheeIII(PromObj))

## There are two alternatives two plot a RPrometheeIII object:
plot(result)
PrometheeIIIPlot(result)

## Updating alternatives name using UpdateRPrometheeAlternatives
newAlternatives <- c("A", "B", "C")
result <- UpdateRPrometheeAlternatives(result, newAlternatives)

## Updating any argument using UpdateRPrometheeArguments
newAlphaVector <- c(1, 1, 1)
PromObj <- UpdateRPrometheeArguments(PromObj, "alphaVector", newAlphaVector)
result <- RPrometheeIII(PromObj)
# }

Run the code above in your browser using DataLab