pymoo
Skill by davila7
Teaches an AI assistant to use pymoo, a Python framework for multi-objective optimization. It covers NSGA-II, NSGA-III, MOEA/D, Pareto fronts and benchmark problems for engineering design.
Install pymoo
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/pymoo ~/.claude/skills/pymooRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/pymoo ~/.gemini/antigravity-cli/skills/pymooAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Pymoo is a Python framework for optimization, with emphasis on multi-objective problems. This skill gives an AI assistant guidance for solving single and multi-objective problems with algorithms such as NSGA-II, NSGA-III and MOEA/D, using benchmark problems like ZDT and DTLZ. It covers customizable genetic operators and multi-criteria decision making methods.
The workflows use a unified minimize() function that takes a problem, an algorithm and a termination criterion, and returns decision variables, objective values and constraint violations. Users can define custom problems by extending ElementwiseProblem, handle constraints in several ways, and visualize results with scatter, parallel coordinate and petal plots. It is aimed at engineering design and optimization problems with conflicting objectives, where users want a set of trade-off solutions.
Written from the project's SKILL.md and checked against it.
What it can do
- Unified minimize() interfaceRuns any supported algorithm on a problem with a termination criterion and seed.
- Single-objective optimizationRuns GA, DE, PSO or CMA-ES on one objective function.
- Multi-objective optimizationFinds Pareto fronts for two or three conflicting objectives using NSGA-II.
- Many-objective optimizationUses NSGA-III with reference directions for problems with four or more objectives.
- Custom problem definitionDefines objectives and constraints by extending ElementwiseProblem.
- Constraint handlingApplies feasibility-first, penalty, constraint-as-objective or SRES approaches.
- Decision makingSelects a preferred Pareto solution with pseudo-weights and other MCDM methods.
- VisualizationPlots results as scatter, parallel coordinate or petal diagrams.
What you need
- Python
Try asking
- Use pymoo with NSGA-II to find a Pareto front for a bi-objective problem
- Set up NSGA-III in pymoo for a five-objective DTLZ2 problem
- Write a custom pymoo problem with two inequality constraints
Good to know
- For four or more objectives, the source recommends NSGA-III over NSGA-II.
- Many examples are provided as separate scripts and reference files not included in this text.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/scientific/pymoo/SKILL.md, cli-tool/components/skills/scientific/pymoo/scripts/custom_problem_example.py, cli-tool/components/skills/scientific/pymoo/scripts/decision_making_example.py, cli-tool/components/skills/scientific/pymoo/scripts/many_objective_example.py, cli-tool/components/skills/scientific/pymoo/scripts/multi_objective_example.py, cli-tool/components/skills/scientific/pymoo/scripts/single_objective_example.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB -
references/algorithms.md6 KB -
references/constraints_mcdm.md11 KB -
references/operators.md9 KB -
references/problems.md7 KB
Show all 11 files
-
references/visualization.md9 KB -
scripts/custom_problem_example.py5 KB -
scripts/decision_making_example.py4 KB -
scripts/many_objective_example.py2 KB -
scripts/multi_objective_example.py2 KB -
scripts/single_objective_example.py2 KB
Alternatives to pymoo
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
pymoo: common questions
What algorithms does pymoo support?
The source mentions GA, DE, PSO and CMA-ES for single-objective problems, and NSGA-II, NSGA-III, R-NSGA-II, MOEA/D, RVEA and AGE-MOEA for multi-objective problems.
Which benchmark problems are covered?
The source names ZDT, DTLZ and WFG as benchmark problems for testing algorithms.
How are constraints written in pymoo?
Inequality constraints are written as g(x) <= 0 and equality constraints as h(x) = 0, as stated in the source's constraint formulation rules.
How do I install pymoo?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pymoo free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pymoo safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pymoo?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
