Skip to content

Conversation

@Leative
Copy link
Contributor

@Leative Leative commented Mar 30, 2020

Hey Alex, I just realized that my fixes on NRP branch were not adapted to changes on the upstream repository. You changed the structure and integrated the use cases in master. So I thought, it should be helpful to integrate the NRP fixes.
I don't know if there is a specific reason for it but you changed satisfaction to be a minimization objective. However, you did not update the mopt files accordingly. I switched back to a maximization objective in order to stay coherent and to be able to un-comment the test cases again without adapting all their asserts.

If you need it to be a minimization objective, I will be happy to adapt everything accordingly. Just tell me.

println("Found satisfaction: " + satisfaction)

return -1 * satisfaction;
return satisfaction;
Copy link
Member

Choose a reason for hiding this comment

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

This is a minimisation problem (-1 > 1 in objective space)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, that tendency stuff confused me again. For some reason I still thought the specified tendency will take care of the negation, now.
In fact it does for OCL guidance functions, right? Were there any drawbacks in doing the same thing for Java guidance functions?

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