ASCENTLEARNING
Join a weekly class
Skip to learning content
YEAR 12 · LINEAR MODELS AND OPTIMISATION · 18 MIN

Integer constraints and interpreting an optimal solution

Handle whole-number decisions by systematic checking rather than blind rounding of a continuous solution.

In this lesson

Before you start
  • Linear programming
  • Whole-number constraints
01 / LEARN

Understand the idea.

A fractional decision may be impossible

Integer constraints restrict decisions to whole numbers. Solving the continuous version can provide a useful bound, but its fractional optimum may not be an allowed decision. Rounding can break a resource limit or miss a better integer point.

Check each proposed integer plan in every original constraint. Rounding down may lose needed capacity; rounding up may exceed a limit. The direction of a rounding operation does not by itself establish feasibility or optimality.

Turn a small integer problem into a finite search

For a small problem, use the constraints to make a finite search. Fix one integer variable, determine the allowed range of the other, and choose the endpoint favoured by the objective. Record the feasible choice and its value for every case.

This search justifies the recommendation only when it covers all possible cases or excludes the rest with a valid bound. Report ties if they occur; a practical tie-break needs a stated criterion rather than an invented preference.

02 / WORKED EXAMPLES

See the method in action.

EXAMPLE 01

Rounding can fail

Maximise P=3⁢x+4⁢y for non-negative integers with 2⁢x+y≤7 and x+2⁢y≤7.

xLargest feasible integer yP
0312
1315
2214
3113

Worked solution

  1. 1

    Locate the fractional corner and test rounding.

    2⁢x+y=7,x+2⁢y=7⇒x=y=732⁢(3)+3=9>7

    Rounding both coordinates up to (3,3) violates both resource limits.

  2. 2

    Bound the integer search.

    x∈{0,1,2,3}y≤min(7−2⁢x,7−x2)

    Non-negative y and the first constraint imply x≤3; both constraints then bound y.

  3. 3

    Choose the best feasible height for each input.

    x0123ymax33213⁢x+4ymax12151413

    For fixed x, profit increases with y, so the largest permitted integer y covers the best plan in that column.

  4. 4

    Verify the integer winner.

    2⁢(1)+3=5≤7,1+2⁢(3)=7,P=3+12=15

    All possible x-values were covered, and (1,3) gives the largest feasible profit.

Answer

Integer maximum 15 at (1,3).

EXAMPLE 02

Whole vehicles

At least 46 seats are needed. A small vehicle has 8 seats and costs AUD 70; a large vehicle has 14 seats and costs AUD 110. At most 5 vehicles are allowed. Minimise cost.

Worked solution

  1. 1

    Write the integer model.

    C=70⁢x+110⁢yto minimise8⁢x+14⁢y≥46,x+y≤5x,y∈{0,1,2,…}

    Let x count small vehicles and y count large vehicles; seating is a lower bound and fleet size an upper bound.

  2. 2

    Cover all possible large-vehicle counts.

    y∈{0,1,2,3,4,5}

    The vehicle cap makes this a complete finite search. With y=0, even five small vehicles provide only 40 seats.

  3. 3

    Find the least feasible small-vehicle count.

    y12345xmin43100C390430400440550

    For each y, take the smallest non-negative integer x meeting the seat requirement and check x+y≤5. Any extra small vehicle costs more.

  4. 4

    Verify the least-cost fleet.

    8⁢(4)+14⁢(1)=46 seats4+1=5 vehicles70⁢(4)+110⁢(1)=390

    Four small and one large vehicle meet both constraints, and AUD 390 is the smallest cost in the complete comparison.

Answer

Four small and one large vehicle; AUD 390, exactly 46 seats.

03 / YOUR TURN

Try it yourself.

Check your understanding

A model gives 4.2 workers. Is 4 automatically acceptable?

Show answer & reasoning

No.

Four workers are not automatically sufficient. If 4.2 arose from a minimum workload requirement, four may provide too little capacity; check the original inequalities and whole-number restriction.

Keep practising

6 worksheet questions · 12 marks

Read the questions online
  1. Find the greatest integer x with 3⁢x≤20 and x≥0.
    2 marks
  2. At least 25 items are packed in boxes of 6. Find the least number of boxes.
    2 marks
  3. Maximise P=2⁢x+3⁢y for non-negative integers with x+y≤5, y≤3.
    2 marks
  4. Is (2,4) feasible for 2⁢x+y≤7, x+2⁢y≤9?
    2 marks
  5. Two integer plans share the greatest profit. What should a recommendation explain?
    2 marks
  6. For x=0,1,2,3, the largest feasible integer y-values are 4,3,2,0. Maximise P=5⁢x+4⁢y.
    2 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Find the greatest integer x with 3⁢x≤20 and x≥0.
    2 marks

    x≤203; choose the largest permitted integer below that bound.

    6.
  2. At least 25 items are packed in boxes of 6. Find the least number of boxes.
    2 marks

    6⁢b≥25, so b≥256; round up to meet the minimum.

    5.
  3. Maximise P=2⁢x+3⁢y for non-negative integers with x+y≤5, y≤3.
    2 marks

    Increasing y in place of x increases profit.

    Use y=3 and the remaining capacity for x=2.

    13 at (2,3).
  4. Is (2,4) feasible for 2⁢x+y≤7, x+2⁢y≤9?
    2 marks

    The resource totals are 8 and 10, exceeding both limits.

    No.
  5. Two integer plans share the greatest profit. What should a recommendation explain?
    2 marks

    A secondary criterion such as fewer staff hours can break the tie only if it matters in the stated situation.

    Report both optima and any explicitly justified practical preference.
  6. For x=0,1,2,3, the largest feasible integer y-values are 4,3,2,0. Maximise P=5⁢x+4⁢y.
    2 marks

    The four objective values are 16,17,18,15.

    18 at (2,2).
Checking saved progress…
Curriculum reference & lesson scope

SACE Board of South Australia

Stage 2 General Mathematics: Modelling with Linear Relationships, a compulsory school-assessed topic. The external examination scope differs from the full course.

Official curriculum source ↗

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account