Skip to content

Commit

Permalink
pump v0.7.16
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytecode committed May 15, 2024
1 parent a42b055 commit e184def
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 45 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
### 0.7.16 (Upcoming Release)
### 0.7.17 (Upcoming release)


### 0.7.16

- Remove legacy normalization in Waspas
- Add documentation for Grey Numbers
- Add citations to operations on Grey Numbers
- Binary comparison operators are redefined as in the citation given
- Add tests for center() and radius() of grey numbers


### 0.7.15
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JMcDM"
uuid = "358108f5-d052-4d0a-8344-d5384e00c0e5"
authors = ["Mehmet Hakan Satman (jbytecode) <[email protected]>", "Bahadir Fatih Yildirim <[email protected]>", "Ersagun Kuruca"]
version = "0.7.15"
version = "0.7.16"

[deps]
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Expand Down
51 changes: 18 additions & 33 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,23 @@ const testLPBasedFunctions = true
const testGreyMCDMFunctions = true
const testSummary = true

if testGreyNumbers
@info "Grey Numbers tests ..."
include("./testgreynumber.jl")
end

if testUtilityFunctions
@info "Utility tests ..."
include("./testutility.jl")
end

if testSCDMFunctions
@info "SCDM tests ..."
include("./testscdm.jl")
end # Test SCDM Tools

if testMCDMFunctions
@info "MCDM Tests ..."
testGreyNumbers && include("./testgreynumber.jl")

testUtilityFunctions && include("./testutility.jl")

testSCDMFunctions && include("./testscdm.jl")


testMCDMFunctions && let
include("./testmcdm.jl")
include("./testcopeland.jl")
end # Test MCDM Tools

if testGreyMCDMFunctions
@info "Grey MCDM Tests ..."
include("./testgreymcdm.jl")
end # Test Grey MCDM Tools

if testLPBasedFunctions
@info "LP Based Tests (takes time) ..."
include("./testlp.jl")
end # Test LP Based Tools

if testSummary
@info "Summary Tests ..."
include("./testsummary.jl")
end # Test Summary Tools
end

testGreyMCDMFunctions && include("./testgreymcdm.jl")


testLPBasedFunctions && include("./testlp.jl")


testSummary && include("./testsummary.jl")

2 changes: 1 addition & 1 deletion test/testcopeland.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "Copeland" begin
@testset "Copeland" begin verbose = true

@testset "Copeland Example 1" begin
"""
Expand Down
2 changes: 1 addition & 1 deletion test/testgreymcdm.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test

@testset "MCDM with Grey Numbers" begin
@testset "MCDM with Grey Numbers" verbose = true begin

@testset "Topsis with Grey Numbers" begin
atol = 0.001
Expand Down
14 changes: 13 additions & 1 deletion test/testgreynumber.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "Test GreyNumbers" begin
@testset "Test GreyNumbers" verbose = true begin

@testset "Constructor" begin
@test GreyNumber() == GreyNumber(0, 0)
Expand Down Expand Up @@ -196,4 +196,16 @@
@test simplify(GreyNumber(5.0, 5.0)) == 5.0
end
end

@testset "Center" begin
@test center(GreyNumber(1.0, 2.0)) == 1.5
@test center(GreyNumber(1.0, 1.0)) == 1.0
@test center(GreyNumber(1.0, 3.0)) == 2.0
end

@testset "Radius" begin
@test radius(GreyNumber(1.0, 2.0)) == 0.5
@test radius(GreyNumber(1.0, 1.0)) == 0.0
@test radius(GreyNumber(1.0, 3.0)) == 1.0
end
end
4 changes: 2 additions & 2 deletions test/testlp.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@testset "LP Based Functions (Takes time...)" begin
@testset "Zero Sum Games" begin
@testset "LP Based Functions (Takes time...)" verbose = true begin
@testset "Zero Sum Games" verbose = true begin
@testset "Game" begin

tol = 0.00001
Expand Down
2 changes: 1 addition & 1 deletion test/testmcdm.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "MCDM functions" begin
@testset "MCDM functions" verbose = true begin

@testset "mcdm() with default method" begin
tol = 0.00001
Expand Down
4 changes: 2 additions & 2 deletions test/testscdm.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@testset "Single Criterion Decision Making Functions" begin
@testset "Single Criterion Decision Making tools" begin
@testset "Single Criterion Decision Making Functions" verbose = true begin
@testset "Single Criterion Decision Making tools" verbose = true begin
@testset "Laplace" begin

tol = 0.00001
Expand Down
2 changes: 1 addition & 1 deletion test/testsummary.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "Summary" begin
@testset "Summary" verbose = true begin
tol = 0.0001

dmat = hcat(
Expand Down
2 changes: 1 addition & 1 deletion test/testutility.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "Utility functions" begin
@testset "Utility functions" verbose = true begin
@testset "Identity matrix" begin
@test JMcDM.I(2) == [1.0 0; 0 1]
@test JMcDM.I(3) == [1.0 0 0; 0 1 0; 0 0 1]
Expand Down

2 comments on commit e184def

@jbytecode
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/106886

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.16 -m "<description of version>" e184def1ec0b1576fc3297cad0309506e7ce6d22
git push origin v0.7.16

Please sign in to comment.