This repository has been archived on 2025-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
Files_for_MM/AHPMethod.py
2025-01-26 17:26:49 +08:00

14 lines
211 B
Python

from AHP import AHP
import numpy as np
criteria=np.array([
[],
[],
[]
])
max_eigen,CR,criteria_eigen=AHP(criteria,np.array([[0]])).cal_weights(criteria)
print()
print(max_eigen,CR,criteria_eigen)