Skip to main content
skill CX Codex

pymoo — Claude Code skill: multi-objective optimization in Python

A skill that drives pymoo from your agent: algorithm choice, problem setup, constraints and Pareto front analysis. Useful when objectives conflict.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add K-Dense-AI/scientific-agent-skills --skill pymoo -a claude-code
Open on GitHub

What pymoo does

The skill walks an agent through optimization with pymoo: single or multiple objectives, constraints, mixed variables. It covers algorithm choice — GA and DE for one objective, NSGA-II and SPEA2 for two or three, NSGA-III and RVEA once you pass four. Benchmark problems ZDT, DTLZ and WFG are included, along with custom crossover and mutation operators and result visualization.

Everything runs through one call, minimize(problem, algorithm, termination). Solutions land in result.X and result.F, constraint violations in result.CV. When no feasible solution exists, result.X and result.F can be None. The skill flags a common trap: after normalization or repair, run the chosen candidates through the original physical constraints again, or an infeasible point passes as a working one.

You need Python 3.10+ and pymoo 0.6.2 with NumPy, SciPy, matplotlib and autograd. Parallel runs use joblib, checkpoints use dill, and the algorithm wrapper uses optuna. Network access is only for installation. One restriction to know: pymoo's MOEA/D does not handle constraints directly, so pick another algorithm for constrained problems.

What it helps with

  • pick an algorithm that matches the number of objectives
  • define a problem with inequality and equality constraints
  • get a Pareto front and read the trade-offs
  • run an algorithm on a ZDT or DTLZ benchmark
  • write custom crossover and mutation operators

Example prompts for the agent

  • Set up a two-objective problem with conflicting goals and solve it with NSGA-II
  • Add inequality constraints to the problem and check whether any feasible solutions exist
  • Run NSGA-III on a four-objective problem and plot the resulting front

How to install pymoo

1Skills CLI (Vercel)

npx skills add K-Dense-AI/scientific-agent-skills --skill pymoo -a claude-code

2Manually: put the files in place

~/.claude/skills/pymoo/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/pymoo/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about pymoo

How do I install pymoo in Claude Code?

Run npx skills add K-Dense-AI/scientific-agent-skills --skill pymoo -a claude-code, then check ~/.claude/skills/pymoo/SKILL.md.

What does the pymoo skill do?

It helps your agent set up and solve optimization problems with pymoo: choosing an algorithm for the number of objectives, handling constraints, and reading results as a Pareto front.

What do I need to run it?

Python 3.10+ and pymoo 0.6.2 with NumPy, SciPy, matplotlib and autograd. Network access is only needed for installation.

Similar skills

Everything for AI and ML →

From the same set159

hypogenic Skill to plan and audit HypoGeniC, a tool that generates candidate textual hypotheses from labeled datasets using LLM. Use it if you work with the hypogenic package, its task configs, or HypoBench datasets. CX Codex +1 1,900installs what-if-oracle Walks a research plan through what-if branches: favorable, reference, adverse and more. Shows where the plan breaks before you spend resources on it. CX Codex +1 1,900installs simpy Builds, tests, and inspects process-based discrete-event simulations using SimPy. Helpful for modeling service queues, logistics, and resource contention. CX Codex +1 1,900installs geomaster Guides geospatial research work with satellite imagery, vector and raster GIS data, coordinate systems, spatial statistics, and Earth observation models. CX Codex +1 1,900installs scikit-bio Analyzes biological sequences, alignments, and phylogenetic trees directly in your terminal. Helpful for microbiome workflows and ecology data. CX Codex +1 1,900installs consciousness-council Runs a council of thinking archetypes over a hard choice, keeps facts apart from assumptions and values, and returns a conditional recommendation. CX Codex +1 1,900installs stable-baselines3 A skill for training reinforcement learning agents with Stable Baselines3. Supports PPO, SAC, DQN and other algorithms, works with Gymnasium custom environments and vectorized rollouts. CX Codex +1 1,900installs geopandas Guides Python geospatial workflows using GeoPandas, audits vector geometries, and verifies CRS transformations before execution. CX Codex +1 1,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor