HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Mathematics
  2. /Algebra
  3. /Linear Programming

Linear Programming

Mathematics · High School (11–12) · 3 courses, 30 worked problems, 66 practice questions

Linear programming finds the best value of a quantity under limits. The quantity we want to make largest or smallest is the objective function, such as profit Z=3x+5yZ = 3x + 5yZ=3x+5y. The limits are linear inequalities called constraints, such as the hours a machine can run. On a graph, the constraints mark out a feasible region. If the region is bounded, the best value of ZZZ lies at a corner point of this region. If it is unbounded, we must check that a best value exists. So we find the corners and test each one. Factories, diet planners and delivery companies use this method to plan their work.

With practice you will be able to

  • Write the objective function and constraints from a word problem
  • Draw the feasible region of a set of linear inequalities
  • Find the maximum or minimum value by the corner point method

On the syllabus of

  • CBSE / State Class 12
  • ISC
  • CUET UG
  • BITSAT
  • MHT-CET
  • KCET
  • VITEEE
  • KEAM
  • and 4 more

Lessons

  • The Corner Point MethodWhy does the best value of a straight-line profit sit at a corner?High School (11–12)
  • Linear Programming Problems from WordsHow many bicycles and scooters should a factory make each week?High School (11–12)
  • Linear Inequalities and Feasible RegionsHow many packets of rice and flour fit in a bag that holds 24 kg?High School (11–12)

Practice questions

Choose an answer, then check it. Each one shows a full explanation.

A food truck makes xxx lunch boxes and yyy salads in a day. It can make at most 40 items in all, and its ingredients allow 2x+y≤602x + y \le 602x+y≤60. The profit is 30 dollars for each lunch box and 20 dollars for each salad. What is the greatest profit the truck can make in a day?

What is the value of Z=4x+5yZ = 4x + 5yZ=4x+5y at the point (3,2)(3, 2)(3,2)?

A bounded region has corners (0,0)(0, 0)(0,0), (4,0)(4, 0)(4,0), (3,3)(3, 3)(3,3) and (0,2)(0, 2)(0,2). What is the maximum of Z=2x+yZ = 2x + yZ=2x+y over it?

Which statement is true for a bounded feasible region and the objective function Z=ax+byZ = ax + byZ=ax+by?

The figure shows a feasible region with five corners. Z=4x+3yZ = 4x + 3yZ=4x+3y is to be maximised. At which corner is ZZZ the largest?

A triangle has corners (0,0)(0, 0)(0,0), (4,0)(4, 0)(4,0) and (0,6)(0, 6)(0,6). What is the minimum of Z=3x−yZ = 3x - yZ=3x−y over it?

A student finds the two corners (5,0)(5, 0)(5,0) and (0,5)(0, 5)(0,5) of the region x+y≥5x + y \ge 5x+y≥5, x≥0x \ge 0x≥0, y≥0y \ge 0y≥0. The student wants to minimise Z=x+2yZ = x + 2yZ=x+2y. What is the correct conclusion?

A student says that Z=x+2yZ = x + 2yZ=x+2y is largest at the corner (0,5)(0, 5)(0,5) of the region x+y≥5x + y \ge 5x+y≥5, x≥0x \ge 0x≥0, y≥0y \ge 0y≥0, because Z=10Z = 10Z=10 there. Is the student right?

A region has corners (0,0)(0, 0)(0,0), (6,0)(6, 0)(6,0), (6,2)(6, 2)(6,2), (3,5)(3, 5)(3,5) and (0,5)(0, 5)(0,5). The objective is Z=x+yZ = x + yZ=x+y, to be maximised. Which statement is correct?

A student wants to maximise 3x+2y3x + 2y3x+2y with the rules x+y≥4x + y \ge 4x+y≥4 and x+3y≤12x + 3y \le 12x+3y≤12 using linprog, with x,y≥0x, y \ge 0x,y≥0. Which call is right?

All 66 practice questions on Linear Programming →

Worked problems

Each one has a hint, the key idea and a full worked solution.

  • Maximise Z = 5x + 3y subject to x + y ≤ 8, x ≤ 6, x ≥ 0 and y ≥ 0…Easy
  • A region is given by x + y ≤ 7, x ≥ 1 and y ≥ 2…Medium
  • A region is given by x + 2y ≤ 10, 3x + y ≤ 15, x ≥ 0 and y ≥ 0…Hard
  • Minimise Z = 2x + 3y subject to x + 2y ≥ 8, 3x + y ≥ 9, x ≥ 0 and y ≥ 0…Easy
  • Use the same region as in the last problem: x + 2y ≥ 8, 3x + y ≥ 9, x ≥ 0, y ≥ 0, with corners (0…Medium
  • A region is given by x + y ≥ 4, x ≥ 0 and y ≥ 0…Hard
  • Minimise Z = 4x + 3y subject to 2x + y ≥ 8, x + 3y ≥ 9, x ≥ 0 and y ≥ 0…Medium
  • A problem has the rules x + 2y ≤ 6 and 2x + y ≥ 14, with x ≥ 0 and y ≥ 0…Easy
  • Maximise Z = 6x + 4y subject to 3x + 2y ≤ 24, x ≤ 6, y ≤ 9, x ≥ 0 and y ≥ 0…Medium
  • A firm makes x batches of product P and y batches of product Q…Hard
  • A toy maker builds cars and trains. A car needs 2 hours on the moulding machine and 1 hour on the…Easy
  • A baker has 60 kg of flour and 40 kg of sugar…Medium

All 30 worked problems on Linear Programming →

Python labs

  • Corner values
  • Ask linprog
  • Plan the workshop
  • Plan the deliveries
  • Is this point feasible?
  • Corner points by code

Related topics

  • Algebra
  • Linear Equations in Two Variables
  • Pairs of Linear Equations
  • Polynomials
  • Algebraic Identities and Factorisation
  • Quadratic Equations
  • Sequences and Series
  • Linear Inequalities
  • Complex Numbers
  • Permutations and Combinations
  • Binomial Theorem
  • Matrices and Determinants