Objective Function definition
An objective function gives the quantity an optimization problem tries to maximize or minimize.
Objective Function in a picture
How it works
Write it in terms of the decision variables. For example, if one item earns $4 profit and another earns $7, the profit objective is 4x + 7y. Constraints limit which inputs may be used. The best allowed input gives the optimal objective value.
Worked examples
Write a cost objective when tickets cost $6 and $9 for the two groups.
If x and y are the numbers of tickets, total cost is 6x + 9y.
Evaluate 2x + 5y at (3, 2).
The value is 2(3) + 5(2) = 16.
What is the difference between the optimal input and the optimal value?
The input gives the chosen decision variables. The value is the objective evaluated at that choice.
Common mistake
Check whether the problem asks to maximize or minimize the objective. A feasible point can have a worse objective value than another feasible point.
Quick check
Can a constraint and an objective use the same variables?
Show answer
Yes.
Is a profit objective usually maximized or minimized?
Show answer
Maximized, when the stated goal is the greatest profit.
Sources
Flashcard
Objective Function
Reveal the definition
An objective function gives the quantity an optimization problem tries to maximize or minimize.
Effortless Math. “Objective Function.” Math Dictionary.
