Skill Issue ›
Browse Skills ›
Mathematical optimization
Mathematical optimization
Mathematical optimization is an AI agent skill from the GitHub repository rnavarych/alpha-engineer . Applies mathematical optimization — linear programming (simplex, interior point, duality), integer/mixed-integer programming (branch-and-bound, cutting planes), convex optimization (gradient descent variants, Adam, L-BFGS, Newton), constraint satisfaction (backtracking, AC-3, SAT/SMT solvers), and c
How to use this skill
Claude Code: save it as .claude/skills/mathematical-optimization/SKILL.md
Cursor: save it as .cursor/rules/mathematical-optimization.md
Codex: save it as .agents/skills/mathematical-optimization/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Mathematical Optimization
When to use
Formulating a real-world problem as a mathematical optimization model
Choosing between LP, MIP, convex, CSP, or combinatorial approaches
Selecting the right gradient descent variant for a machine learning or fitting problem
Solving scheduling, assignment, routing, or bin packing problems
Applying SAT/SMT solvers or constraint programming for logical constraint problems
Evaluating solver options (PuLP, CVXPY, OR-Tools, Gurobi, Z3)
Core principles
Formulate before you code — identify variables, objective, and constraints explicitly before touching a solver
Tight LP relaxation = faster MIP — every improvement to the relaxation bound shrinks the branch-and-bound tree
Convexity is the dividing line — convex problems are reliably solvable; non-convex require restarts and heuristics
Adam is not always the answer — L-BFGS beats Adam on smooth well-conditioned problems with moderate dimension
CP-SAT over custom backtracking — Google OR-Tools CP-SAT handles constraint propagation and search orders better than hand-rolled solvers
Reference Files
references/linear-and-integer-programming.md — LP formulation, simplex vs interior point, duality and shadow prices, MIP branch-and-bound, Big-M method, symmetry breaking, solver library options
references/convex-and-gradient.md — convexity verification (Hessian PSD), gradient descent variants (SGD, Adam, L-BFGS), Newton/conjugate gradient second-order methods, CVXPY/SciPy/JAX tooling
references/constraint-and-combinatorial.md — CSP formulation, backtracking + constraint propagation, SAT/SMT solvers (Z3, CDCL), VRP/scheduling/assignment/bin packing patterns, problem classification guide
Use this skill with your AI agent:
Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.