[GRASS-SVN] r66130 - grass-addons/grass7/raster/r.mcda.promethee

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 6 10:54:45 PDT 2015


Author: gianluca
Date: 2015-09-06 10:54:45 -0700 (Sun, 06 Sep 2015)
New Revision: 66130

Modified:
   grass-addons/grass7/raster/r.mcda.promethee/main.c
   grass-addons/grass7/raster/r.mcda.promethee/promethee.c
   grass-addons/grass7/raster/r.mcda.promethee/r.mcda.promethee.html
Log:
first usable version 0.1

Modified: grass-addons/grass7/raster/r.mcda.promethee/main.c
===================================================================
--- grass-addons/grass7/raster/r.mcda.promethee/main.c	2015-09-06 15:32:02 UTC (rev 66129)
+++ grass-addons/grass7/raster/r.mcda.promethee/main.c	2015-09-06 17:54:45 UTC (rev 66130)
@@ -3,10 +3,11 @@
  * MODULE:   r.mcda.promethee
  * AUTHORS:  Gianluca Massei (g_massa at libero.it) - Antonio Boggia (boggia at unipg.it)
  *
- * PURPOSE:      Make a multicriteria decision analysis based on PROMETHEE algorithm.
+ * PURPOSE:  Make a multicriteria decision analysis based on PROMETHEE algorithm.
+ *           J.P. Brans and P. Vincke (1985). "A preference ranking organisation method: 
+ *           The PROMETHEE method for MCDM". Management Science.
  *               
- * COPYRIGHT:    (C) GRASS Development Team (2015)
- *
+ * COPYRIGHT:   Gianluca Massei (g_massa at libero.it) and (C) GRASS Development Team (2015)
  *              This program is free software under the GNU General Public
  *              License (>=v2). Read the file COPYING that comes with GRASS
  *              for details.

Modified: grass-addons/grass7/raster/r.mcda.promethee/promethee.c
===================================================================
--- grass-addons/grass7/raster/r.mcda.promethee/promethee.c	2015-09-06 15:32:02 UTC (rev 66129)
+++ grass-addons/grass7/raster/r.mcda.promethee/promethee.c	2015-09-06 17:54:45 UTC (rev 66130)
@@ -70,21 +70,16 @@
 					for (col2 = 0; col2 < ncols; col2++)
 					{
 						threshold = (decision_vol[row1][col1][i] - decision_vol[row2][col2][i]);
-						//G_message("thersold:%f;r1:%d;c1:%d // r2:%d;c2:%d ",threshold,row1,col1,row2,col2);
-						if (threshold>0)
+						if (threshold>0) /* if therehold is positive, it fill the positive flow*/
 							{
-							//positive_flow_vol[row1][col1][i]=threshold*weight_vect[i];
-							//negative_flow_vol[row1][col1][i]=0;
 							positive_flow_vol[row1][col1]=positive_flow_vol[row1][col1]+(threshold*weight_vect[i]);
 							negative_flow_vol[row1][col1]=negative_flow_vol[row1][col1];
 
 							}
-						else
+						else /* if thershold is negative, it  fill the negative flow*/
 							{
-							negative_flow_vol[row1][col1]=negative_flow_vol[row1][col1]+(threshold*weight_vect[i]);
+							negative_flow_vol[row1][col1]=negative_flow_vol[row1][col1]+(-threshold*weight_vect[i]);
 							positive_flow_vol[row1][col1]=positive_flow_vol[row1][col1];
-							//positive_flow_vol[row1][col1][i]=0;
-							//negative_flow_vol[row1][col1][i]=threshold*weight_vect[i];
 							}
 					}
 				}

Modified: grass-addons/grass7/raster/r.mcda.promethee/r.mcda.promethee.html
===================================================================
--- grass-addons/grass7/raster/r.mcda.promethee/r.mcda.promethee.html	2015-09-06 15:32:02 UTC (rev 66129)
+++ grass-addons/grass7/raster/r.mcda.promethee/r.mcda.promethee.html	2015-09-06 17:54:45 UTC (rev 66130)
@@ -1,13 +1,10 @@
 <h2>DESCRIPTION</h2>
 
-<em>r.mcda.electre</em> is the implementation of the ELECTRE multicriteria
-algorithm in GRASS GIS environment. It is one of the available tools in the
-r.mcda suite. It requires as an input the list of raster representing the
-criteria to be assessed in the multicriteria evaluation and the vector of
-weights to be assigned. Every single cell of the GRASS region is considered
-as one of the possible alternatives to evaluate and it is described with
+<em>r.mcda.promethee</em> is the implementation of the a multicriteria decision analysis based on PROMETHEE algorithm (J.P. Brans and P. Vincke (1985). "A preference ranking organisation method:The PROMETHEE method for MCDM". Management Science) in GRASS GIS environment. 
+It is one of the available tools in the r.mcda suite. It requires as an input the list of raster representing the criteria to be assessed in the multicriteria evaluation and the vector of weights to be assigned. 
+Every single cell of the GRASS region is considered as one of the possible alternatives to evaluate and it is described with
 the value assumed for the same cell by the raster used as criteria. There
-are two output files. One represents the spatial distribution of the
+are three output files. One represents the spatial distribution of the
 concordance index, the other one of the discordance index. The optimal
 solution is the one presenting the maximum concordance value and the minimum
 discordance value at the same time.
@@ -27,16 +24,11 @@
 
 
 <h2>REFERENCE</h2>
-<p>Roy, B. (1971) Problem and methods with multiple objective functions
- Mathematical programming 1, 239-266.</P>
-<p>Roy, B. (1990): The outranking approach and the foundations of Electre
- methods , Document du LAMSADE, Paris.</P>
-<p>Janssen R. (1994) - Multiobjective decision support for environmental
- management, Kluwer Academic Publishers.</P>
+<p>J.P. Brans and P. Vincke (1985). "A preference ranking organisation method:The PROMETHEE method for MCDM". Management Science.</P>
 <p>GRASS Development Team (2015)</P>
 
 <h2>SEE ALSO</h2>
-<em>r.mcda.fuzzy, r.mcda.regime, r.mcda.roughet, r.mapcalc</em>
+<em>r.mcda.ahp, r.mcda.electre, r.mcda.roughet, r.mapcalc</em>
 
 <h2>AUTHORS</h2>
 Antonio Boggia - Gianluca Massei<br>



More information about the grass-commit mailing list