Repository navigation
Fix PSI, MOOSRA and benefit-only COPRAS - #69
Merged
Merged
Conversation
…y COPRAS PSI: the preference variation (PV), its deviation and the overall preference value are defined per criterion (Maniya and Bhatt 2010; restated as Eqs. 3-7 in Petkovic et al. 2017), and the psi values are the criterion weights. The code computed them per alternative. Both published examples of Petkovic et al. (2017, doi:10.22190/FUME151120001P) are now reproduced to four decimals (tests added); before, the best alternative differed in both. MOOSRA: the default normalization divided by the norm of the whole matrix, which cancels in the benefit/cost ratio. MOOSRA normalizes per criterion like MOORA; the default is now vectornormnormalization. Table 10 of Adali and Isik (2017, doi:10.1007/s40092-016-0175-5) is reproduced to three decimals (test added). COPRAS: with benefit criteria only, the cost term was 0/0 and every score NaN. Without cost criteria Q = S+ (Podvezko 2011, doi:10.5755/j01.ee.22.2.310). Test added. Expected values in the PSI, MOOSRA and grey-number tests are updated to the corrected results; they agree with pyDecision 5.1.8 and with the same fixes in mcdm-scalajs (PR jbytecode#1 there). Pkg.test(): all tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One commit on top of
main(3775f9d).Pkg.test(): all tests pass.These are the same corrections that were merged into mcdm-scalajs (jbytecode/mcdm-scalajs#1), which shares the method definitions with JMcDM.
What and why
psi.jlcomputed them per alternative. Both published examples of Petković et al. are now reproduced to four decimals (tests added); before the change, the best alternative differed in both.dividebyallnormnormalizationdivides by the norm of the whole matrix, which cancels in the benefit/cost ratio. MOOSRA normalizes per criterion like MOORA (Adalı & Işık 2017, Eq. 2, doi:10.1007/s40092-016-0175-5); the default is nowvectornormnormalization, for bothmoosra()andMoosraMethod(). Their Table 10 is now reproduced to three decimals (test added).The expected values of the existing PSI and MOOSRA tests (crisp and grey-number) are updated to the corrected results. They agree with pyDecision 5.1.8 and, to the last digit, with the corrected mcdm-scalajs. The PSI docstring example and the normalization docstrings are updated accordingly.
🤖 Generated with Claude Code