seaklab / mopAOS

Source code used in "A Classification and Comparison of Credit Assignment Strategies in Multiobjective Adaptive Operator Selection" submitted to IEEE Transactions in Evolutionary Computation.
0 stars 5 forks source link

How to run the mopAOS with IDEA? #3

Open thathulk opened 4 years ago

thathulk commented 4 years ago

I add src and example as source, and run the example 1, but it appears that method inverse wasn't defined. How can I run the project correctly? 1 2

pd385 commented 4 years ago

Hi, Try changing the source to 'java' in src>main. It should run.

thathulk commented 4 years ago

Hi, thank you. As you said, I added these folders(down below)as source folders, but it didn't work. Or am i misunderstanding your point? image

pd385 commented 4 years ago

It looks like your your source folder is "src" instead of "java". If you change it to be just "java", it will work. Also try to run from branch "develop" instead of "master". For me, custom example defined in aos works fine. Let me know how it goes.

thathulk commented 4 years ago

Yeah, I did what you said and it worked finally. But it only works for branch 'develop'. What should I do if I want to run the branch 'master'? Because it seems like that it's much more relative to the paper.

pd385 commented 4 years ago

I guess it depends on what you want to do. The master branch hasn't been updated in a while, and might not work. The complete code for Adaptive Operator Selection is available on the develop branch. Let me know if you have more questions.

thathulk commented 4 years ago

Thank you so much! I've got it!

thathulk commented 4 years ago

One more little question: Is this normal that something comes out after the results(Exception in thread "main" org.apache.commons.math3.exception.NotStrictlyPositiveException: 0 is smaller than, or equal to, the minimum (0)... ...) when I run Example1Custom?

image