Linear optimization is a mathematical programming technique to obtain the best result or outcome, like maximum profit or least cost, in a mathematical model whose requirements are represented by linear relationships.
PuLP is one of many libraries in Python ecosystem for solving optimization problems.
pip install Pulp
conda install -c conda-forge pulp
Minimize : Z = 3x + 5y
Subject to the constraints:
2x + 3y >= 12
-x + y <= 3
x >= 4
y <= 3
x, y >= 0