pymoo
Skill by K-Dense-AI
Pymoo is a skill that helps an AI assistant set up and run multi-objective, many-objective and single-objective optimization in Python. It suits engineers and researchers who need Pareto fronts for problems with conflicting goals.
Install pymoo
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pymoo ~/.claude/skills/pymooRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/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
This skill guides an AI assistant through pymoo 0.6.2, a Python framework for optimization with a focus on multi-objective problems. It covers a unified minimize() interface, problem definition styles, and algorithms such as GA, DE, PSO, CMA-ES, NSGA-II, NSGA-III, MOEA/D, SPEA2 and RVEA. It also covers constraint handling, genetic operators, benchmark problems such as ZDT, DTLZ and WFG, and visualization.
The skill includes quick start workflows, algorithm selection tables, and reference files on algorithms, problems, operators, visualization, constraints, parallelization and lifecycle. It also ships example scripts. It is aimed at engineering and research users who need to find trade-off solutions and compare candidates from a Pareto front.
Written from the project's SKILL.md and checked against it.
What it can do
- Single-objective optimizationRuns single-objective optimization with GA or DE, and lists PSO and CMA-ES as options.
- Multi-objective optimizationFinds Pareto fronts for 2-3 objectives using NSGA-II, SPEA2, R-NSGA-II or MOEA/D.
- Many-objective optimizationHandles 4+ objectives with NSGA-III, RVEA or AGE-MOEA using reference directions.
- Custom problem definitionHelps define problems with Problem, ElementwiseProblem or FunctionalProblem.
- Constraint handlingSets up inequality and equality constraints, with g(x) <= 0 treated as feasible.
- Decision making from a Pareto frontApplies scalarization and multi-criteria decision making to choose a solution.
- Benchmark problemsLoads test problems such as ZDT, DTLZ and WFG through get_problem.
- VisualizationDescribes scatter, PCP, radviz and heatmap views of optimization results.
- Parallel evaluationExplains parallel evaluation with threads or joblib for expensive objectives.
- Mixed-variable optimizationHandles integer, binary, and categorical variables in one problem.
What you need
- Python 3.10+
- pymoo 0.6.2 with NumPy, SciPy, matplotlib and autograd
- Optional joblib, optuna and dill for specific recipes
- Network access for installation only
Try asking
- Use pymoo to find a Pareto front for a two-objective problem with NSGA-II.
- Set up an NSGA-III run with reference directions for a 5-objective problem.
- Add inequality constraints to my pymoo problem and run a feasibility check.
Good to know
- Pymoo MOEA/D does not support constraints directly.
- The bundled demos use bounded populations and generations and do not establish convergence.
- Process and distributed workers, dynamic algorithms and expensive external models were not executed in the source's verification.
- Algorithm choices are starting points, not performance guarantees.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pymoo/SKILL.md, skills/pymoo/scripts/custom_problem_example.py, skills/pymoo/scripts/decision_making_example.py, skills/pymoo/scripts/many_objective_example.py, skills/pymoo/scripts/multi_objective_example.py, skills/pymoo/scripts/single_objective_example.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Write Edit Bash
-
SKILL.md14 KB -
references/algorithms.md9 KB -
references/constraints_mcdm.md9 KB -
references/lifecycle.md5 KB -
references/operators.md5 KB
Show all 14 files
-
references/parallelization.md3 KB -
references/problems.md8 KB -
references/quick_start_workflows.md7 KB -
references/visualization.md5 KB -
scripts/custom_problem_example.py5 KB -
scripts/decision_making_example.py6 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
Which algorithm should I use for many objectives?
The skill lists NSGA-III for 4 to 15 objectives, with RVEA and AGE-MOEA as other options for many-objective problems.
What should I check if no feasible solution is found?
result.X and result.F can be None when no feasible solution is found. The skill advises reporting the CV and residuals of any returned candidate instead of calling it feasible.
Does this skill need an API key or remote service?
The source states that pymoo is a local Python library and that no remote API endpoint or credential is required for these workflows.
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.
