Learn R Programming

RMCriteria (version 0.2.0)

RPrometheeIV: RPrometheeIV

Description

Proposed by Brans and Vincke (1985), PROMETHEE II method aims to solve sorting problems. The PROMETHEE II method performs a total ordering of the alternatives set by calculating the net outranking flow (HENDRIKS et al., 1992), with the objective of solving the problem that no unambiguous solution can be given due to incomparability.

Usage

RPrometheeIV(RPrometheeArguments)

Arguments

RPrometheeArguments

An object with all RPromethee arguments. It's important that parms argument isn't compound of NA values. See RPrometheeConstructor for more information.

Value

  • PhiPlus The resulting PhiPlus from the alternatives for all criterias.

  • PhiMinus The resulting PhiMinus from the alternatives for all criterias

  • Index The index resulting from the lp solution.

  • 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, RPrometheeIII, RPrometheeII, RPrometheeIVKernel, 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(1.0, 1.3), byrow = TRUE, ncol = 1, nrow = 2)
vecWeights <- c(0.3, 0.7)
vecMaximiz <- c(FALSE, TRUE)
prefFunction <- c(0, 0)
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)

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

## There are two alternatives two plot a RPrometheeIV object:
plot(result)
PrometheeIVPlot(result)

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

## Updating any argument using UpdateRPrometheeArguments
newPrefFunction <- c(1, 1)
PromObj <- UpdateRPrometheeArguments(PromObj, "prefFunction", newPrefFunction)
(result <- RPrometheeIV(PromObj))
# }

Run the code above in your browser using DataLab