Linear programming (LP) is a mathematical modeling technique used to optimize operational activities by maximizing profit or minimizing costs under specific constraints. It involves decision variables, an objective function, and constraints which can be graphically represented to find feasible solutions. Excel can be used to solve LP problems through its solver tool, allowing for easy input of parameters and constraint management.