![]() For example, if cells C1 and C2 are decision variables, B1 = C1+C2, and B2 = A1*B1 where A1 is constant in the problem, then B2 is a linear function (=A1*C1+ A1*C2). Note that a linear function does not have to be written in exactly the form shown above on the spreadsheet. A common example is =SUM(C1:C5), where C1:C5 are decision variables and the a is are all 1. ![]() ![]() Where the a is, which are called the coefficients, stand for constant values and the x is stand for the decision variables. This means that the function can be written as a sum of terms, where each term consists of one decision variable multiplied by a (positive or negative) constant. In many common cases, the objective and/or constraints in an optimization model are linear functions of the variables.
0 Comments
Leave a Reply. |