Skip to content

Add NSGA3 - #216

Merged
BillHuang2001 merged 7 commits into
EMI-Group:mainfrom
LiHao-MS:evoxtorch-dev-lh
Feb 21, 2025
Merged

BillHuang2001 merged 7 commits into
EMI-Group:mainfrom
LiHao-MS:evoxtorch-dev-lh

Conversation

@LiHao-MS

Copy link
Copy Markdown
Contributor

Description

Checklist

  • [ X] I have formatted my Python code with ruff.
  • [ X] I have good commit messages.
  • If adding new algorithms, problems, operators:
    • Added related test cases.
    • [ X] Added docstring to explain important parameters.
    • Added entries in the docs.

Comment thread src/evox/algorithms/mo/nsga3.py Outdated
population = length * population + lb

self.pop = Mutable(population)
self.fit = Mutable(torch.empty((self.pop_size, self.n_objs), device=device).fill_(torch.inf))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use torch.full.

@BillHuang2001 BillHuang2001 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add nsga3 to unit_test/algorithms/test_moea.py

@BillHuang2001
BillHuang2001 merged commit 6d8be3a into EMI-Group:main Feb 21, 2025
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