Linear and Nonlinear Functions
If you follow the suggestion above and use only constant values on the right
hand sides of constraints, then the same observation applies to the left hand
sides of the constraints: Parts of the constraint formulas (those which refer to
non-decision variable cells) are unchanging in value, and only the parts
dependent on the decision variables "count" during the optimization.
The mathematical form of the relationship between the objective function and
constraint cells and the decision variables has important implications for the
difficulty of the problem, the Solver "engine" that can be used, and the speed
of solution. The simplest and most common case is where the objective function
is a linear function of the variables. This means that the objective can be written as a
sum of terms, where each term consists of one decision variable multiplied by
a (positive or negative) constant. Algebraically, we can write:
max (or min) a
Note that the @SUMPRODUCT function computes exactly the algebraic expression
shown above. If we were to place the formula +B1/B2 in cell A1, and the formula
+(D1*2+E1) in cell A2, then we could write the example objective function as:
@SUMPRODUCT(A1..A2,C1..C2)
A nonlinear function, as its name implies, is any function of the decision variables
which is not linear, i.e. which cannot be written in the algebraic form shown
above. Examples would be +1/C1, @LOG(C1), +C1^2 or +C1*C2 where both C1 and C2 are
decision variables. If the objective function or any of the constraints are
nonlinear functions of the variables, then the problem cannot be solved with an
LP Solver.