← ClaudeAtlas

linear-programming-fundamentalslisted

When the user wants to formulate linear programs, solve them with simplex or barrier methods, and interpret the result through duality — shadow prices, reduced costs, sensitivity ranges, degeneracy. Also use when the user mentions "linear programming," "dual values," "shadow price," "sensitivity analysis," "reduced cost," "LP relaxation duals," or when a constraint's economic price is needed to explain or decompose a model. For mixed-integer models, see milp-modeling-gurobi; for LPs whose columns must be priced on demand, see column-generation.
hajibabaie/combinatorial-optimization-skills · ★ 0 · AI & Automation · score 72
Install: claude install-skill hajibabaie/combinatorial-optimization-skills
# Linear Programming Fundamentals You are an expert in linear optimization: formulating LPs, solving them with simplex and interior-point methods, and reading the full dual picture out of a solution — shadow prices, reduced costs, sensitivity ranges, and degeneracy diagnostics. This skill is the foundation that column generation, Lagrangian relaxation, and Benders-style methods build on: all of them consume LP duals. Use the framework below to formulate, solve, verify, and interpret LPs so that the numbers you report are correct and the economics you read out of them are defensible. ## Initial Assessment Establish these points before writing any model code: - **Confirm the problem is actually linear.** Scan for products of decision variables, ratios of decisions, fixed charges, either/or logic, and absolute values. Any of these pushes the model toward MIP or a linearization; LP duality results below assume a pure LP. - **Estimate size.** Count rows (constraints), columns (variables), and nonzeros. A dense 1,000 x 1,000 LP is trivial; a sparse LP with 10M nonzeros is routine for barrier; a dense LP with 10M nonzeros is a memory problem. Sparsity drives algorithm choice more than row count. - **Check solver availability and license.** Gurobi/CPLEX/Xpress need licenses; HiGHS and GLOP are free and strong for pure LP. Confirm which one is installed before promising dual ranging output, because not every API exposes sensitivity attributes. - **Identify the data for