Package 'TopSisWM'

Title: Multi-Criteria Method for Decision (TOPSIS)
Description: Assists in the TOPSIS analysis process, designed to return at the end of the answer of the TOPSIS multicriteria analysis, a ranking table with the best option as the analysis proposes. TOPSIS is basically a technique developed by Hwang and Yoon in 1981, starting from the point that the best alternative should be closest to the positive ideal solution and farthest from the negative one, based on several criteria to result in the best benefit. (LIU, H. et al., 2019) <doi:10.1016/j.agwat.2019.105787>.
Authors: Wagner Martins dos Santos [aut, cre]
Maintainer: Wagner Martins dos Santos <[email protected]>
License: GPL-3
Version: 1.0.2
Built: 2024-11-01 11:31:15 UTC
Source: https://github.com/cran/TopSisWM

Help Index


Topex1 - TopSisWM

Description

Example Data

Usage

Topex1

Format

Matrix

Source

Topex1


Multi-Criteria Method for Decision (TOPSIS)

Description

Assists in the TOPSIS analysis process, designed to return at the end of the answer of the TOPSIS multicriteria analysis, a ranking table with the best option as the analysis proposes. TOPSIS is basically a technique developed by Hwang and Yoon in 1981, starting from the point that the best alternative should be closest to the positive ideal solution and farthest from the negative one, based on several criteria to result in the best benefit. (LIU, H. et al., 2019) doi:10.1016/j.agwat.2019.105787.

Usage

TopSisWM(TabTo,P.Pesos,solpo)

Arguments

TabTo

A table or matrix containing row and column names, containing only numeric values.

P.Pesos

A vector containing the weights assigned to each criterion, where there must be a weight for each column of the table and the sum of the weights must be equal to 1.

solpo

A vector containing the information if the respective criterion must be ideal, a maximum or minimum value, with ("+") for maximum and ("-") for minimum, must have a definition for each column.

Value

returns a table with the results of TOPSIS.

Author(s)

Wagner Martins dos Santos

References

LIU, H. et al.(2019). Optimizing irrigation frequency and amount to balance yield, fruit quality and water use efficiency of greenhouse tomato. Agricultural Water Management, v. 226, 1-11.

Examples

data(Topex1)
Tabela <- Topex1
Pesos <- c(0.5,0.3,0.2)
solucao <- c("-","-","+")
TopSisWM(Tabela,Pesos,solucao)

#Important to use the parameter row.names = 1 when importing local data
#Tabela <- read.csv("file.csv",sep=";", h=T,row.names=1)
#Tabela <- read.table("Tabela.txt", h=T,row.names=1)
#row.names = 1 ensures import of data with row names as fact names.