Skip to content

Introduce NsgaiiConfig for NSGAIISampler - #212

Draft
Alnusjaponica wants to merge 1 commit into
mainfrom
feat/nsgaii-builder
Draft

Introduce NsgaiiConfig for NSGAIISampler#212
Alnusjaponica wants to merge 1 commit into
mainfrom
feat/nsgaii-builder

Conversation

@Alnusjaponica

Copy link
Copy Markdown
Contributor

Summary

Introduce NsgaiiConfig and from_config to NSGAIISampler, unifying the configuration pattern with TpeSampler/TpeConfig.

Changes

  • Add NsgaiiConfig struct with Default implementation, mirroring TpeConfig
  • Add NSGAIISampler::from_config(cfg: NsgaiiConfig) as the canonical constructor
  • Refactor existing new and seed_from_u64 to delegate to from_config (backward compatible)
  • Update pyo3 bindings to use from_config(NsgaiiConfig { ... }), matching the TpeSampler binding pattern

Verification

  • cargo test --all-features --workspace — 226 tests pass, 0 failures
  • cargo clippy --workspace --all-features -- -D warnings — clean
  • cargo fmt --all -- --check — clean

@Alnusjaponica
Alnusjaponica marked this pull request as draft August 18, 2026 02:40
@c-bata c-bata self-assigned this Aug 19, 2026
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