+
Skip to content

Question about AHP module #62

@queueyong

Description

@queueyong

Hi, I am trying to apply AHP for my decision making problem. But it doesn't seem to work properly.

By looking at the implementation, the function "ahp()" seems to receive Vector-type as its first argument, but in the example code it seems not. Am I doing something wrong?

  • function ahp(comparisonMatrixList::Vector, criteriaComparisonMatrix::Matrix)::AHPResult

Thank you for your effort.

(below is a short sample data that I am trying to apply AHP)

using JMcDM

mat_criteria = [1 5 2 3; 1/5 1 1/4 1/2; 1/2 4 1 2; 1/3 2 1/2 1]
mat_alt_by_c1 = [1 1/3 1/6; 3 1 1/3; 6 3 1]
mat_alt_by_c2 = [1 2 4; 1/2 1 2; 1/4 1/2 1]
mat_alt_by_c3 = [1 2 5; 1/2 1 2; 1/5 1/2 1]
mat_alt_by_c4 = [1 1/2 1/5; 2 1 1/3; 5 3 1]

aug_mat = hcat(mat_alt_by_c1, mat_alt_by_c2, mat_alt_by_c3, mat_alt_by_c4)

result = ahp(aug_mat, mat_criteria)

화면 캡처 2024-09-02 211145

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载