rankAlternativesValues

Provider:RXMCDA
Version:1.1

Description

Calculates the rank of alternatives via their overall values. A parameter named maxMin allows to determine if the best value is the highest or the lowest one (by default, the lowest value is ranked first).

Inputs

(For outputs, see below)

alternatives

Description:

A list of alternatives. Alternatives can be activated or desactivated via the <active> tag (true or false). By default (no <active> tag), alternatives are considered as active.

alternativesValues

Description:

A list of <alternativeValue> in an <alternativesValues> containing the overall value of each alternative. The <value> should be a numeric value.

XMCDA related:

  • Tag: alternativesValues

maxMin

Description:

The parameter which says if the highest or lowest value is to be ranked first.

GUI information:

  • Parameter values can be defined via the GUI or the XMCDA file, by default via GUI.

  • Name: maxMin

    The parameter which says if the highest or lowest value is to be ranked first.

    • Type: drop-down list
    • Possible values:
      • The lowest value is ranked first (XMCDA label : min) (default)
      • The highest value is ranked first (XMCDA label : max)

XMCDA related:

  • Tag: programParameters

  • Code:

    <programParameters>
            <parameter name="maxMin"> <!-- REQUIRED  -->
                    <values>
                            <value>
                                    <label>%1</label>
                            </value>
                    </values>
            </parameter>
    </programParameters>
    

Outputs

alternativesRanks

Description:

A list of <alternativeValue> in an <alternativesValues> containing the rank of each alternative.

XMCDA related:

  • Tag: alternativesValues

  • Code:

    <alternativesValues mcdaConcept="alternativesRanks">
            <alternativeValue>
                    [...]
            </alternativeValue>
            [...]
    </alternativesValues>
    

messages

Description:

A list of messages generated by the algorithm.

XMCDA related:

  • Tag: programExecutionResult

For further technical details on the web service underlying this program, have a look at its documentation here.