Mathematical optimization

From rnavarych/alpha-engineer · View interactive version

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

Skill file

Mathematical Optimization

When to use

Core principles

  1. Formulate before you code — identify variables, objective, and constraints explicitly before touching a solver
  2. Tight LP relaxation = faster MIP — every improvement to the relaxation bound shrinks the branch-and-bound tree
  3. Convexity is the dividing line — convex problems are reliably solvable; non-convex require restarts and heuristics
  4. Adam is not always the answer — L-BFGS beats Adam on smooth well-conditioned problems with moderate dimension
  5. CP-SAT over custom backtracking — Google OR-Tools CP-SAT handles constraint propagation and search orders better than hand-rolled solvers

Reference Files

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.