<< ProcessGraph | index | Promethee >>

DECIDE reference

DECIDE__PreProcess

short DECIDE_PreProcess(

    * double *DecisionMatrix,
    * const short * DecisionMatrixSize,
    * const short * RowsCount,
    * const short * ColumnsCount,
    * const short * Mode)

Apply a variety of algorithms to a decison matrix :

    * mode 1 : DECIDE__Normalize() the criteria values for each action, using mode 1
    * mode 2 : DECIDE__Normalize() the criteria values for each action, using mode 2
    * mode 3 : DECIDE__Normalize() the criteria values for each action, using mode 3
    * mode 4 : DECIDE__Normalize() the criteria values for each action, using mode 4
    * mode 5 : DECIDE__CentreReduce() the criteria values for each action
    * mode 6 : DECIDE__Rank() the criteria values for each action, using mode 1
    * mode 7 : DECIDE__Rank() the criteria values for each action, using mode 2
    * mode 8 : DECIDE__Rank() the criteria values for each action, using mode 3
    * mode 9 : computes the distance to zenith
    * mode 10 : computes the distance to nadir

Note : Some criteria values can lead some of the algorithms to divide by 0. These errors are trapped and cause a 901, 902 or 903 error.

return value :

    * 0 : completed successfully
    * 1 : null pointer in first parameter
    * 2 : null pointer in second parameter
    * 3 : null pointer in third parameter
    * 4 : null pointer in fourth parameter
    * 5 : null pointer in fifth parameter
    * 101 : *RowsCount < 1
    * 102 : *ColumnsCount < 1
    * 103 : *DecisionMatrixSize < ((*ColumnsCount) * (*RowsCount) * sizeof(double))
    * 104 : invalid Mode
    * 900 : malloc() failed
    * 901 : internal call to DECIDE__Normalize failed
    * 902 : internal call to DECIDE__CentreReduce failed
    * 903 : internal call to DECIDE__Rank failed
    * 904 : internal call to DECIDE__Zenith_Nadir failed

<< ProcessGraph | index | Promethee >>


printer friendly view

Google

 

Web

www.christophedavid.org