Linear Programming
Common mistakes
- Assuming linear programming is a coding style or paradigm.
- Using it for problems where variables must be whole numbers, which needs integer programming.
Interview questions
Is linear programming related to writing code?
No. Here "programming" means planning or optimization. It is a mathematical method, though solvers are called from code.
What is the difference between linear and integer programming?
Linear programming lets variables take any real value. Integer programming requires some or all variables to be whole numbers, which is much harder to solve.
What is the simplex method?
The classic algorithm for solving linear programming problems. It moves along the corners of the feasible region until it reaches the best value of the objective.