Linear Programming (LP) is a mathematical method for optimizing a linear objective function, subject to a set of linear equality and inequality constraints. The objective function represents the quantity to be maximized (e.g., profit) or minimized (e.g., cost), while the constraints model limitations like resource capacities, demand requirements, or physical laws. A feasible solution is any set of variable values satisfying all constraints, and the optimal solution is the feasible solution yielding the best objective value. The set of all feasible solutions forms a convex geometric shape called a polyhedron or polytope.
