S3-SA1-0183
What is Objective Function?
Grade Level:
Class 7
AI/ML, Data Science, Physics, Economics, Cryptography, Computer Science, Engineering
Definition
What is it?
An objective function is a mathematical rule or formula that we want to either make as big as possible (maximize) or as small as possible (minimize). It helps us find the best possible outcome in a problem, like getting the highest marks or spending the least money.
Simple Example
Quick Example
Imagine you want to score the maximum runs in a cricket match. Your 'objective function' here is simply 'Total Runs Scored'. You want to maximize this number to win the game.
Worked Example
Step-by-Step
PROBLEM: A small bakery makes two types of sweets: Laddoo and Barfi. Each Laddoo sells for Rs. 10 and each Barfi sells for Rs. 15. The bakery wants to make the most money. If 'L' is the number of Laddoos and 'B' is the number of Barfis, what is their objective function?
---STEP 1: Identify what the bakery wants to achieve. They want to make the 'most money'. This means we need to maximize their total earnings.
---STEP 2: Identify the price of each item. Laddoo = Rs. 10, Barfi = Rs. 15.
---STEP 3: Write an expression for the money earned from Laddoos. If 'L' Laddoos are sold, earnings from Laddoos = 10 * L.
---STEP 4: Write an expression for the money earned from Barfis. If 'B' Barfis are sold, earnings from Barfis = 15 * B.
---STEP 5: Combine these to find the total earnings. Total Earnings = (10 * L) + (15 * B).
---ANSWER: The objective function is: Maximize Z = 10L + 15B (where Z represents total earnings).
Why It Matters
Understanding objective functions is super important because it's how computers learn to make decisions, like recommending movies or finding the fastest delivery route. Engineers use it to design efficient machines, and scientists use it to optimize experiments, helping solve real-world problems and creating exciting careers in technology and research.
Common Mistakes
MISTAKE: Confusing the objective function with the answer to the problem. | CORRECTION: The objective function is the formula you want to optimize (maximize or minimize), not the final optimal value itself.
MISTAKE: Not clearly stating whether the objective is to maximize or minimize. | CORRECTION: Always specify if you are trying to MAXIMIZE (e.g., profit, marks) or MINIMIZE (e.g., cost, time, waste).
MISTAKE: Including constraints (limitations) within the objective function. | CORRECTION: The objective function is purely what you want to optimize. Constraints (like limited ingredients or time) are separate conditions that affect the possible values for your variables.
Practice Questions
Try It Yourself
QUESTION: A farmer wants to grow as many mangoes as possible. If 'M' is the number of mango trees, what is the objective function? | ANSWER: Maximize Z = M (where Z is the total number of mangoes, assuming each tree gives a certain number of mangoes or we are simply maximizing the count of trees).
QUESTION: A student wants to minimize the time spent on homework. If 'T_math' is time for Math and 'T_sci' is time for Science, what is the objective function? | ANSWER: Minimize Z = T_math + T_sci (where Z is the total homework time).
QUESTION: A mobile company wants to maximize its monthly profit. They sell basic phones (B) for Rs. 1000 profit each and smartphones (S) for Rs. 3000 profit each. Write their objective function. | ANSWER: Maximize Z = 1000B + 3000S
MCQ
Quick Quiz
Which of the following describes an objective function?
A rule that lists all possible solutions.
A formula to be made as large or small as possible.
A set of limits or restrictions in a problem.
The final answer to a mathematical problem.
The Correct Answer Is:
B
An objective function is precisely the formula or rule that you aim to optimize (maximize or minimize). Options A and C describe other parts of an optimization problem, and D is the result, not the function itself.
Real World Connection
In the Real World
From planning the most efficient delivery routes for Zomato or Swiggy to helping ISRO optimize satellite trajectories, objective functions are everywhere. They are at the heart of algorithms that decide which ad to show you online, how to manage traffic signals, or even how stock market investments are made, aiming for maximum returns or minimum risks.
Key Vocabulary
Key Terms
MAXIMIZE: To make something as large as possible. | MINIMIZE: To make something as small as possible. | VARIABLE: A letter (like x or y) that represents a changing quantity. | OPTIMIZATION: The process of finding the best solution to a problem.
What's Next
What to Learn Next
Great job understanding objective functions! Next, you should learn about 'Constraints'. Constraints are the limits or rules that affect what values your variables can take, and they work hand-in-hand with objective functions to solve real-world problems.


