Skip to content

Commit

Permalink
Merge pull request #1134 from google/test_647871264
Browse files Browse the repository at this point in the history
Change k = num_objectives - 1
  • Loading branch information
xingyousong authored Jun 29, 2024
2 parents ac3a421 + 04fe847 commit 1f7a573
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class WFGExperimenterFactory(
)

def __attrs_post_init__(self):
k = 4 if self.num_objectives == 2 else 2 * (self.num_objectives - 1)
k = self.num_objectives - 1
if (self.dim - k) % 2 != 0:
raise ValueError(
f"dimensions - k must be even, got {self.dim - k} for k={k}."
Expand Down

0 comments on commit 1f7a573

Please sign in to comment.