Skip to content

Commit

Permalink
EMO changes.
Browse files Browse the repository at this point in the history
- Fixed FeasibleArchive checking feasible constraint values incorrectly.
  Previous: feasible constraint values must be less than zero. Corrected,
  feasible constraint values must be less than or equal to zero.
  • Loading branch information
gialmisi committed Dec 2, 2024
1 parent 2b46248 commit 3ef928f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desdeo/emo/hooks/archivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def update(self, message: Message) -> None:
message (Message): Message from the publisher.
"""
data = message.value
feasible_mask = (data[self.cons_symb] < 0).to_numpy().all(axis=1)
feasible_mask = (data[self.cons_symb] <= 0).to_numpy().all(axis=1)
feasible_data = data.filter(feasible_mask)
if self.feasible_archive is None:
self.feasible_archive = feasible_data
Expand Down

0 comments on commit 3ef928f

Please sign in to comment.