CalcWorldHub
Free online calculator · no signup

Bounded two variable linear programming calculator

Maximize a linear objective over two nonnegative variables, upper box bounds, and entered ≤ constraints.

4,000 tools
Bounded two variable linear programming calculator — Constraint x coefficients, Matching y coefficients, Constraint upper bounds and calculation method
Bounded two variable linear programming calculator: inputs and calculation method.

How to use this calculator

Maximize a linear objective over two nonnegative variables, upper box bounds, and entered ≤ constraints.

  1. Enter Constraint x coefficients, Matching y coefficients, Constraint upper bounds, Objective x coefficient, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Bounded two variable linear programming explained

Use Constraint x coefficients with Matching y coefficients to reproduce the sample calculation, then review the stated limits before carrying the result into another scenario.

Maximum objective10objective units
Maximum objective: 10 objective units in the worked scenario.

A numerical walkthrough

Constraint x coefficients = 1, 2; Matching y coefficients = 1, 1; Constraint upper bounds = 4, 6; Objective x coefficient = 3; Objective y coefficient = 2; Upper bound on x = 10; Upper bound on y = 10.

  • Maximum objective: 10 objective units
  • Optimal x: 2
  • Optimal y: 2

The active lines x+y=4 and 2x+y=6 intersect at x=2, y=2. Their objective is 3×2+2×2=10, exceeding the other feasible vertex values.

The model behind the numbers

Maximize cx·x+cy·y over feasible polygon vertices

Add x≥0, y≥0, x≤ux, and y≤uy to the entered inequalities. Intersect every pair of boundary lines, discard infeasible intersections, and compare the objective at the remaining vertices. Finite box bounds exclude an unbounded-objective outcome.

What to enter

a — Constraint x coefficients
Constraint x coefficients. Use comma-separated values in the stated order.
b — Matching y coefficients
Matching y coefficients. Use comma-separated values in the stated order.
c — Constraint upper bounds
Constraint upper bounds. Use comma-separated values in the stated order.
cx — Objective x coefficient
Objective x coefficient.
cy — Objective y coefficient
Objective y coefficient.
ux — Upper bound on x
Upper bound on x.
uy — Upper bound on y
Upper bound on y.

Interpreting the result

Finite upper bounds ensure a bounded feasible set. Floating-point tolerance is used; this is not an integer-programming solver.

Frequently asked questions

Can variables be fractional?

Yes, this is continuous linear programming.

How are constraints entered?

Each aligned row represents a·x+b·y≤c.

Does it return every tied optimum?

It returns one best vertex, not the entire optimal edge.

How do I use the Bounded two variable linear programming calculator?

Enter Constraint x coefficients, Matching y coefficients, Constraint upper bounds, Objective x coefficient, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Bounded two variable linear programming?

Constraint x coefficients = 1, 2; Matching y coefficients = 1, 1; Constraint upper bounds = 4, 6; Objective x coefficient = 3; Objective y coefficient = 2; Upper bound on x = 10; Upper bound on y = 10. Maximum objective: 10 objective units Optimal x: 2 Optimal y: 2 The active lines x+y=4 and 2x+y=6 intersect at x=2, y=2. Their objective is 3×2+2×2=10, exceeding the other feasible vertex values.