Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for multi-objectives fail #45

Closed
jbytecode opened this issue Oct 23, 2022 · 4 comments
Closed

Tests for multi-objectives fail #45

jbytecode opened this issue Oct 23, 2022 · 4 comments

Comments

@jbytecode
Copy link
Contributor

After performing

(Metaheuristics) pkg>  test

I get

Multi objective: Test Failed at /Users/istar1/Desktop/code/julia/Metaheuristics.jl/test/multi-objective.jl:47
  Expression: Metaheuristics.PerformanceIndicators.igd(result.population, pf) <= 0.2
   Evaluated: 0.22673908824247319 <= 0.2
Stacktrace:
 [1] macro expansion
   @ ~/Julia/julia/usr/share/julia/stdlib/v1.9/Test/src/Test.jl:477 [inlined]
 [2] (::var"#run_methods#20")(problem::Symbol)
   @ Main ~/Desktop/code/julia/Metaheuristics.jl/test/multi-objective.jl:47

Is 0.2267 reasonable or the right result? How about changing the threshold or using a RNG to generate an exact solution in each time?

Thanks.

@jmejia8
Copy link
Owner

jmejia8 commented Oct 23, 2022

Using a RNG is the best option (suggested by #24); however, a lot of work is required due to we need to update every rand(...) by rand(rng, ...).

Changing the threshold (say 0.5) is OK for me.

@jbytecode
Copy link
Contributor Author

I am going to send a PR for this.

@jbytecode
Copy link
Contributor Author

I think this PR solves it and I have all of the tests passed in my machine.

jmejia8 added a commit that referenced this issue Oct 23, 2022
@jbytecode
Copy link
Contributor Author

Solved.

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

No branches or pull requests

2 participants