Declare the algebra (variables, linear or convex objective, constraints) and a solver returns the optimum with a certificate. When your problem fits this box, nothing else on this page should be your first choice.
Linear programming (LP)
Linear objective, linear constraints, continuous variables. The simplex method walks vertex to vertex of the feasible polytope, always improving; interior-point methods cut through the middle. Duality yields shadow prices, the marginal value of each constraint, often worth more than the solution itself.
Use when Allocating scarce resources with linear trade-offs. Scale is effectively unlimited.
Industries Production planning, blending (refineries, feed), ad budget allocation, transportation.
Mixed-integer LP (MILP)
LP plus integer variables for yes/no and how-many decisions. Branch & bound solves LP relaxations, branches on fractional integers, and prunes subtrees whose bound can't beat the incumbent; branch & cut adds cutting planes. NP-hard, yet modern solvers routinely crack thousands of binaries.
Use when Discrete decisions with linear structure and a need for provable quality.
Industries Facility location, crew & fleet scheduling (airlines), power unit commitment, network design.
Quadratic & conic (QP, SOCP, SDP)
Convex quadratic objectives and cone constraints keep the certificate while adding curvature: portfolio variance, least squares with constraints, robust counterparts. Interior-point methods solve them in polynomial time.
Use when Risk or squared-error terms enter a convex objective.
Industries Portfolio construction, energy dispatch, control, structural design.
Nonlinear programming (NLP)
Smooth nonlinear objectives or constraints. SQP and interior-point methods converge to local optima; global only under convexity. Good initial points and multistart are part of the method, not an afterthought.
Use when Physics or chemistry enters the constraints and gradients exist.
Industries Chemical process design, optimal power flow, trajectory optimization.
Constraint programming (CP)
Feasibility-first search with domain propagation: each constraint actively prunes the possible values of its variables. Shines where constraints are rich and logical (precedences, all-different, calendars) and the objective is thin.
Use when "Find any legal schedule" is most of the battle.
Industries Timetabling, rostering, configuration, manufacturing sequencing.
Dynamic programming (DP)
When decisions decompose over stages with optimal substructure, solve each subproblem once and reuse it: shortest paths, inventory policies, Held–Karp for TSP. Exact, but the state space explodes exponentially with dimension (the "curse of dimensionality").
Use when Sequential decisions with a compact state.
Industries Inventory control, routing engines, revenue management, RL foundations.
Specialized combinatorial algorithms
Max-flow/min-cut, shortest paths, assignment (Hungarian algorithm), matching, spanning trees: polynomial-time exact algorithms for specific structures. Always check whether your problem is one of these in disguise before reaching for anything heavier.
Use when The problem maps to a known graph structure.
Industries Logistics networks, matching markets (riders–drivers, ads), telecom routing.