Skip to content
Agentmart
Submit a tool

nsga2

NSGA-II multi-objective evolutionary method skill.

Skill by Optima-CityU

IndexedBSD-3-Clause★ 677
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/optima-cityu-nsga2

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

NSGA-II multi-objective evolutionary method skill. USE WHEN the user explicitly requests NSGA-II / Non-dominated Sorting Genetic Algorithm, or wants multi-objective optimization with non-dominated sorting and crowding distance selection.

Use cases: design, code-generation

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/nsga2

What's inside

Skill name
nsga2
Description
NSGA-II multi-objective evolutionary method skill. USE WHEN the user explicitly requests NSGA-II / Non-dominated Sorting Genetic Algorithm, or wants multi-objective optimization with non-dominated sorting and crowding distance selection.
License
BSD-3-Clause
Instructions
45 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • params.yaml

SKILL.md (first lines)

# NSGA-II Skill

> **Paper**: Deb et al., "A fast and elitist multiobjective genetic algorithm: NSGA-II", IEEE TEC 2002.

## 1. Method Essence

NSGA-II is a classic multi-objective GA with a two-step selection mechanism:

1. **Non-dominated sorting**: Divide the population into layers — Pareto front layer (not dominated by anyone), second layer (dominated only by front layer), etc.; earlier layers have higher priority for survival
2. **Crowding distance**: Within the same layer, sort by "neighbor sparsity" in objective space; sparse individuals are preserved first (maintains uniform front coverage)

Overall cycle: Generate offspring → merge parent-offspring → non-dominated sorting → truncate to pop_size by layer + crowding → next generation. LLM version uses LLM operators (E1/E2/M1/M2) instead of traditional genetic operators for offspring generation.

## 2. Recommended Parameters

See `params.yaml` in this directory for the recommended parameter configuration.

**Note**: The number of objectives is determined by the length of `objective_metrics`.

### What Happens During Evolution

1. Population initialized; evaluate all individuals
2. Each generation:
   - Generate offspring via LLM operators
   - Merge parent + offspring populations
   - Non-dominated sorting: classify into layers
   - Crowding distance: within each layer, rank by sparsity
   - Truncate to `population_size` by layer priority + crowding
3. Pareto front gradually expands and becomes more uniform
4. Final front represents optimal trade-offs between objectives

### Common Pitfalls

- Front not diverse → increase `population_size` or enable more operators
- Convergence too slow → check if objectives are conflicting; reduce `num_objs` if possible
- Single-objective dominance → verify `num_objs` matches your problem; check evaluator metrics

## 4. Acceptance Criteria

- Non-dominated front visible in evolution log (Pareto front members identified)
- Front covers multiple trade-off points (not clustered in one region)
- Crowding distance prevents front collapse (uniform spread)
- Final best individuals span the front from extreme to balanced solutions

From Optima-CityU/LLM4AD_Next, BSD-3-Clause.

More from Optima-CityU/LLM4AD_Next

Signals

Stars
677
Forks
44
Open issues
1
Last commit (this folder)
Aug 25, 2026 (2 months ago)
Last release
Sep 29, 2026 (28 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
BSD-3-Clause
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Optima-CityU

Cite this page

nsga2 skill. Agent Mart. https://agentmart.dev/skills/optima-cityu-nsga2 (last updated 2026-10-24)