r.mcda.topsis
Generates a MCDA map based on TOPSIS algorthm.
r.mcda.topsis criteria=name [,name,...] preferences=character weights=float [,float,...] topsismap=string [--verbose] [--quiet] [--qq] [--ui]
Example:
r.mcda.topsis criteria=name preferences=character weights=0.0 topsismap=string
grass.script.run_command("r.mcda.topsis", criteria, preferences, weights, topsismap, verbose=None, quiet=None, superquiet=None)
Example:
gs.run_command("r.mcda.topsis", criteria="name", preferences="character", weights=0.0, topsismap="string")
grass.tools.Tools.r_mcda_topsis(criteria, preferences, weights, topsismap, verbose=None, quiet=None, superquiet=None)
Example:
tools = Tools()
tools.r_mcda_topsis(criteria="name", preferences="character", weights=0.0, topsismap="string")
This grass.tools API is experimental in version 8.5 and expected to be stable in version 8.6.
Parameters
criteria=name [,name,...] [required]
Name of criteria raster maps
preferences=character [required]
preference (gain,cost)
weights=float [,float,...] [required]
weights (w1,w2,...,wn)
topsismap=string [required]
Ranked raster map
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
criteria : str | list[str], required
Name of criteria raster maps
Used as: input, raster, name
preferences : str, required
preference (gain,cost)
Used as: character
weights : float | list[float] | str, required
weights (w1,w2,...,wn)
topsismap : str, required
Ranked raster map
Used as: output
verbose : bool, optional
Verbose module output
Default: None
quiet : bool, optional
Quiet module output
Default: None
superquiet : bool, optional
Very quiet module output
Default: None
criteria : str | list[str], required
Name of criteria raster maps
Used as: input, raster, name
preferences : str, required
preference (gain,cost)
Used as: character
weights : float | list[float] | str, required
weights (w1,w2,...,wn)
topsismap : str | type(np.ndarray) | type(np.array) | type(gs.array.array), required
Ranked raster map
Used as: output
verbose : bool, optional
Verbose module output
Default: None
quiet : bool, optional
Quiet module output
Default: None
superquiet : bool, optional
Very quiet module output
Default: None
Returns:
result : grass.tools.support.ToolResult | np.ndarray | tuple[np.ndarray] | None
If the tool produces text as standard output, a ToolResult object will be returned. Otherwise, None
will be returned. If an array type (e.g., np.ndarray) is used for one of the raster outputs, the result will be an array and will have the shape corresponding to the computational region. If an array type is used for more than one raster output, the result will be a tuple of arrays.
DESCRIPTION
r.mcda.topsis implements the ideal point algorithms based on TOPSIS model and returns a raster map shown the ranking geospatial alternatives. The user has to provide the weight values and preference (gain or cost) directly
NOTES
For bug please contact Gianluca Massei (g_mass@libero.it)
REFERENCE
- Hwang C. L. and Yoon K. Multiple Objective Decision Making Methods and Applications, A State-of-the-Art Survey.Springer - Verlag , 1981.
SEE ALSO
r.mcda.input, r.mcda.electre, r.mcda.roughset, r.mcda.output
AUTHORS
Antonio Boggia - Gianluca Massei
Department of Economics and Appraisal - University of Perugia - Italy
SOURCE CODE
Available at: r.mcda.topsis source code
(history)
Latest change: Thursday Feb 20 20:36:19 2025 in commit 158e314