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

Added unit tests for ParetoSet implementations #270

Merged
merged 7 commits into from
Nov 21, 2024

Conversation

JavierYuste
Copy link
Collaborator

Added unit tests for implementation of abstract class ParetoSet. Particularly, unit tests have been added for classes ParetoSimpleList, ParetoByFirstObjective, and NDTree. In addition, some utility classes have been created to implement the unit tests: TestSolutionWithMultipleObjectives and TestMoveWithMultipleObjectives.

As expected, some tests are not passing at the moment, but this will be corrected in the future by fixing the tested classes (ParetoByFirstObjective and NDTree).

…ists of TestMove objects, since variable score is a double.
…jective contexts. TestSolutionWithMultipleObjectives is similar to TestSolution, but can have more than one objective. TestMoveWithMultipleObjectives is similar to TestMove, but can have more than one objective.
Copy link
Member

@rmartinsanta rmartinsanta left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I will merge it now to the developing branch so we can keep iterating on it until we fix all Pareto set implementations.

@rmartinsanta rmartinsanta merged commit 64bb933 into mork-optimization:paretosets Nov 21, 2024
1 check failed
rmartinsanta pushed a commit that referenced this pull request Nov 23, 2024
* Changed type of parameter received in methods dedicated to generate lists of TestMove objects, since variable score is a double.

* Added two classes that are useful to implement unit tests in multi-objective contexts. TestSolutionWithMultipleObjectives is similar to TestSolution, but can have more than one objective. TestMoveWithMultipleObjectives is similar to TestMove, but can have more than one objective.

* Changed hashCode method to be consistent with equals.

* Added unit tests for ParetoSimpleList class.

* Removed unnecessary line.

* Added unit tests for ParetoByFirstObjective and NDTree.

* Added MOAlgorithm, needed to define a generic algorithm that returns a ParetoSet instead of a single solution.
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