# CVXPY Optimization & Debugging

> Turn "best choice under limits" questions into CVXPY models, solve and verify them, explain shadow prices, and debug models that fail or look wrong.

CVXPY Optimization & Debugging is a paid AI agent skill on Agensi by oshun, in Business & Operations. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [oshun](https://www.agensi.io/creators/oshun)
- Category: [Business & Operations](https://www.agensi.io/skills/business-operations)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/cvxpy-optimization-debugging
- Tags: project-management, trading, research, research-analysis, testing-debugging, business-operations, optimization, cvxpy

## About this skill

Ask your agent a "best choice under limits" question in plain language — how many of each product to make, how to split a budget, which projects to fund, what an extra hour of machine time is worth — and it builds a CVXPY model, solves it, checks the answer and explains it in your own terms.

**Optimization**
- Turns everyday questions into linear, quadratic, second-order cone, semidefinite and integer programs, even when you never say "optimize".
- Explains the model in plain words for non-technical users, or in math when you want it.
- Reports which limits bind and what each is worth (shadow prices), and confirms them by re-solving with nudged data.
- Verifies every answer: constraint violations, recomputed objective, closed-form checks, integrality.
- Leaves a re-runnable Python script.

**Debugging** (bundled as `references/debugging.md`)
- Pinpoints which part of a model breaks CVXPY's DCP rules, with a table of standard rewrites.
- Finds the conflicting constraints in an infeasible model and says how much each must give, in your units.
- Catches models reported as "unbounded" that are really infeasible.
- Flags silent domain restrictions (e.g. `x**3` quietly forcing x ≥ 0) that make CVXPY answer a different problem than the one you meant.
- Handles solver errors, inaccurate solutions, DGP and quasiconvex problems.

Every code snippet in the skill is covered by a test suite, and the skill was evaluated on realistic prompts against independently computed reference answers.

## Requires

- Python 3.10+
- cvxpy (pip install cvxpy)

## Known limitations

Solves convex problems (plus mixed-integer LPs with HIGHS). Nonconvex problems are identified and explained, with a suggested approach, but not solved globally. Mixed-integer QPs need a solver such as SCIP, Gurobi or MOSEK. Very small problems may be answered by direct reasoning rather than a solver run.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the CVXPY Optimization & Debugging skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does CVXPY Optimization & Debugging do?

Turn "best choice under limits" questions into CVXPY models, solve and verify them, explain shadow prices, and debug models that fail or look wrong.

### Which AI agents support CVXPY Optimization & Debugging?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use CVXPY Optimization & Debugging?

Connect your AI agent to Agensi through MCP, then ask it to use CVXPY Optimization & Debugging on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
