Skip to content

Fix PSI, MOOSRA and benefit-only COPRAS - #69

Merged
jbytecode merged 1 commit into
jbytecode:mainfrom
akadal:fix-psi-moosra-copras
Nov 25, 2026
Merged

jbytecode merged 1 commit into
jbytecode:mainfrom
akadal:fix-psi-moosra-copras

Conversation

@akadal

@akadal akadal commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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: preference variation per criterion. PV, its deviation and the overall preference value are defined per criterion (Maniya & Bhatt 2010; restated as Eqs. 3–7 in Petković et al. 2017, doi:10.22190/FUME151120001P), and the psi values are the criterion weights. psi.jl computed 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.
  • MOOSRA: per-criterion vector normalization. The default dividebyallnormnormalization divides 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 now vectornormnormalization, for both moosra() and MoosraMethod(). Their Table 10 is now 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.

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

…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>
@jbytecode
jbytecode merged commit 235852e into jbytecode:main Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants