pymoo
하는 일
여러 개의 상충할 수 있는 목표를 가진 복잡한 문제에 대한 최선의 해를 찾도록 돕는 도구입니다. 가능한 최선의 ‘절충안(trade-off)’을 찾는 데 도움을 줍니다.
사용하는 경우
- ✓동시에 최적화해야 할 여러 목표가 있는 문제가 있을 때.
- ✓경쟁하는 목표 사이에서 최선의 균형을 찾을 때.
- ✓정보에 근거한 결정을 위해 여러 선택지를 분석할 때.
스킬 링크
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pymoo/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“자동차 설계를 연료 소비가 가장 적고 생산 비용도 가장 낮게 최적화하고 싶습니다. 최선의 선택지는 무엇인가요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
문제를 정의하고 최적화 방법(예: NSGA-II)을 고르면, 도구가 최선의 해를 찾습니다. 찾은 해와 그 결과를 돌려줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Pymoo - Multi-Objective Optimization in Python
Overview
Pymoo is a comprehensive Python framework for optimization with emphasis on multi-objective problems. Solve single and multi-objective optimization using state-of-the-art algorithms (NSGA-II/III, MOEA/D, SPEA2), benchmark problems (ZDT, DTLZ), customizable genetic operators, and multi-criteria decision making methods. Excels at finding trade-off solutions (Pareto fronts) for problems with conflicting objectives. Targets stable pymoo 0.6.2, reviewed 2026-10-01 against current official docs and native toy runs.
Installation
uv pip install "pymoo==0.6.2"
For reproducible environments, pin a version: uv pip install "pymoo==0.6.2".
Dependencies: The released 0.6.2 wheel requires NumPy, SciPy, moocore, autograd, cma, matplotlib, alive_progress, and Deprecated. NumPy 2.x is supported. The current installation prose describes some dependencies as optional; the released package metadata governs installation. Joblib, Optuna and dill are separate dependencies for the corresponding recipes.
Documentation: https://pymoo.org/ — LLM-friendly index: https://pymoo.org/llms.txt
When to Use This Skill
This skill should be used when:
- Solving optimization problems with one or multiple objectives
- Finding Pareto-optimal solutions and analyzing trade-offs
- Implementing evolutionary algorithms (GA, DE, PSO, NSGA-II/III)
- Working with constrained optimization problems
- Benchmarking algorithms on standard test problems (ZDT, DTLZ, WFG)
- Customizing genetic operators (crossover, mutation, selection)
- Visualizing high-dimensional optimization results
- Making decisions from multiple competing solutions
- Handling binary, discrete, continuous, or mixed-variable problems
Core Concepts
The Unified Interface
Pymoo uses a consistent minimize() function for all optimization tasks:
from pymoo.optimize import minimize
result = minimize(
problem, # What to optimize
algorithm, # How to optimize
termination, # When to stop
seed=1,
verbose=True
)
Result object contains:
result.X: Decision variables of optimal solution(s)result.F: Objective values of optimal solution(s)result.G: Raw inequality values (g(x) <= 0is feasible)result.H: Raw equality residualsresult.CV: Aggregated constraint violation under the configured tolerancesresult.algorithm: Final algorithm state; history is retained when requested
Check feasibility before plotting or selecting: If no feasible solution was found, result.X and result.F can be None. With return_least_infeasible=True, a returned candidate can still violate constraints; report its CV and residuals instead of calling it feasible. Re-evaluate chosen candidates against the original physical constraints after any normalization or repair. See the result contract.
Problem Definition Styles
Pymoo supports three problem definition styles:
Problem: Vectorized —_evaluatereceives a batch of solutions (matrix)ElementwiseProblem: One solution per call — recommended for custom problems and parallel evaluationFunctionalProblem: Define objectives and constraints as separate functions without subclassing
Problem Types
Single-objective: One objective to minimize; negate a maximization objective and record the conversion Multi-objective: 2-3 conflicting objectives → Pareto front Many-objective: 4+ objectives → High-dimensional Pareto front Constrained: Objectives + inequality/equality constraints Mixed-variable: Continuous, integer, binary, and categorical variables in one problem Dynamic: Time-varying objectives or constraints
Quick Start Workflows
Nine workflows and context-dependent adaptation snippets are in references/quick_start_workflows.md:
| # | Workflow | Use when |
|---|---|---|
| 1 | Single-objective optimization | one objective, GA or DE |
| 2 | Multi-objective (2-3 objectives) | NSGA-II and a Pareto front |
| 3 | Many-objective (4+ objectives) | NSGA-III or reference-direction methods |
| 4 | Custom problem definition | subclassing Problem / ElementwiseProblem |
| 5 | Constraint handling | inequality and equality constraints |
| 6 | Decision making from a Pareto front | scalarization and MCDM selection |
…
자주 묻는 질문
‘절충 해(trade-off solution)’란 무엇인가요?
상충하는 목표 사이에서 좋은 균형을 제공하는 해입니다. 예를 들어 자동차가 연비가 가장 낮지는 않아도 연비와 비용 사이에서 좋은 타협점을 제공할 수 있습니다.
‘파레토 프론트(Pareto front)’란 무엇인가요?
한 목표를 개선하려면 다른 목표를 악화시켜야 하는 해들의 집합입니다. 가능한 모든 최선의 절충안을 나타냅니다.
이 도구는 어떤 종류의 문제를 풀 수 있나요?
목표가 하나이거나 여러 개인 문제, 제약 조건이 있거나 없는 문제, 정수형이나 이진형 등 다른 변수 유형을 가진 문제도 풀 수 있습니다.
상세 정보
작성자의 원본 설명
Solves and validates single-, multi-, and many-objective optimization with pymoo, including NSGA-II, NSGA-III, MOEA/D, constraints, Pareto approximations, reference directions, and ZDT/DTLZ benchmarks for engineering and research problems.
인기도
- GitHub 스타
- 51k
- 순위
- #3544
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
13c-metabolic-flux
51k탄소-13 동위원소 추적 데이터를 사용해 대사 흐름(플럭스)을 추정합니다. 세포 대사와 생화학 경로를 분석할 때 유용합니다.
adaptyv
51kAdaptyv API를 사용해 단백질 특성 분석 실험을 설계합니다. 비용을 추정하고, 서열을 제출하며, 실험실 결과를 확인하는 데 도움이 됩니다.
aeon
51k시계열 데이터에 대해 머신러닝 작업을 수행합니다. 순차 데이터를 분류하고, 예측하고, 이상을 탐지하고, 패턴을 찾을 때 유용합니다.
alphagenome
51k유전 변이에 대해 미리 계산된 게놈 영향을 조회합니다. 변이가 게놈에 주는 영향을 이해하도록 점수와 설명을 제공합니다.