Skip to content

feat(evaluator): add cached evaluator wrapper - #191

Merged
cbarba merged 3 commits into
jMetal:mainfrom
ZijunLee:contrib/jmetalpy-184-caching-evaluator
Oct 20, 2026
Merged

cbarba merged 3 commits into
jMetal:mainfrom
ZijunLee:contrib/jmetalpy-184-caching-evaluator

Conversation

@ZijunLee

Copy link
Copy Markdown
Contributor

Summary

  • add EvaluatorWithCache to avoid reevaluating identical decision variables
  • cache and restore both objective and constraint values
  • deduplicate repeated solutions within the same batch while preserving the original list order
  • support evaluators that return copied solutions, such as process-based evaluators
  • document usage with parallel evaluators

Validation

  • make lint
  • make test — 1118 passed
  • make docs-build
  • make package

Closes #184

@cbarba
cbarba merged commit 1d0116f into jMetal:main Oct 20, 2026
7 checks passed
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.

Add Caching to Avoid Re-evaluating Solutions

2 participants