jmejia8 / Metaheuristics.jl

High-performance metaheuristics for optimization coded purely in Julia.
https://jmejia8.github.io/Metaheuristics.jl/stable/
Other
253 stars 27 forks source link

(#71) initials of integration for SnoopPrecompile #72

Closed jbytecode closed 1 year ago

jbytecode commented 1 year ago

This is the initial adaptation of SnoopPrecompile.

jbytecode commented 1 year ago

It is interesting that the tests were not passed.

jmejia8 commented 1 year ago

Did work on your Julia distribution?

jbytecode commented 1 year ago

yes, of course, in 1.9.rc1

jbytecode commented 1 year ago
Test Summary:   | Pass  Total     Time
Multi objective |  118    118  1m14.8s
Test Summary: | Pass  Total  Time
Combinatorial |    4      4  9.2s
Test Summary:                          | Pass  Total  Time
DecisionMaking: Compromise Programming |    6      6  1.9s
Test Summary:       | Pass  Total  Time
DecisionMaking: ROI |    4      4  1.0s
Test Summary:         | Pass  Total   Time
DecisionMaking: JMcDM |   34     34  14.2s
Test Summary:     | Pass  Total  Time
Initial Solutions |   87     87  3.1s
     Testing Metaheuristics tests passed 

(Metaheuristics) pkg> 
jmejia8 commented 1 year ago

Maybe, It is time to upgrade Julia (>= 1.8) in the test environment

https://github.com/jmejia8/Metaheuristics.jl/blob/b7c27384a2d3bc3c7c3be5dd34efdead45728dbe/.github/workflows/CI.yml#L16

due to

https://discourse.julialang.org/t/ann-new-package-snoopprecompile/84778

jbytecode commented 1 year ago

Can we test it by upgrading the version in only github workflow?

jmejia8 commented 1 year ago

Of course. Julia 1.5 is not longer maintained.

jbytecode commented 1 year ago

Last time I used v1.5.2 was Sep or Oct, 2020

jbytecode commented 1 year ago

even v1.8 is not enough to get tests passed :(

jbytecode commented 1 year ago

nightly builds seem to work..

jmejia8 commented 1 year ago

I see.. BTW, the errors comes due to

https://github.com/jmejia8/Metaheuristics.jl/blob/b7c27384a2d3bc3c7c3be5dd34efdead45728dbe/src/TestProblems/TestProblems.jl#L78

Calling eval at that level is breaking the pre-compilation stage.

jbytecode commented 1 year ago

yes, the problem may not be about versioning.

jmejia8 commented 1 year ago

We need to refactor this function

https://github.com/jmejia8/Metaheuristics.jl/blob/b7c27384a2d3bc3c7c3be5dd34efdead45728dbe/src/TestProblems/TestProblems.jl#L76

before proceed.

jmejia8 commented 1 year ago

The original PR is now passing the tests. Thank you!