general formula
Objective function: minimum (maximum) z=f(x)
Constraint: s.t.g (x)
x & gt= 0
If both f(x) and g(x) are linear functions of x, the model is called linear programming, otherwise it is nonlinear programming.
Finding the optimal solution by drawing knowledge in high school is the most annoying, but it is also convenient.