Linear Programming Graphical Solver
Draws every constraint, shades the feasible region, evaluates the objective at each corner and reports the optimum, ties, unbounded cases and slack.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Choose a template or start blank
Press Workshop, Diet, Farm land or Blank.
- 2Enter the objective
Pick Maximise or Minimise and the coefficients of x and y; name what x and y mean.
- 3List the constraints
Edit each row's coefficients, sign and right-hand side; add rows with + Constraint.
- 4Read the optimum
The result shows the best value and the point; ties and unbounded cases are flagged.
- 5Check the graph and tables
The shaded region, corner table and slack table explain the answer.
- 6Practise
Practice generates two-constraint problems: find the corners and the maximum.
Sobre aquesta eina
Linear programming finds the best value of a linear objective, such as profit or cost, when the choices are limited by linear constraints: hours available, raw materials, minimum orders. With two decision variables the whole problem can be solved on a graph, and that is how it is taught at school and in first business mathematics courses. This solver draws each constraint as a coloured line, shades the region where all of them hold, finds every corner of that region, evaluates the objective at each corner and marks the best one. It also draws the objective's level line through the optimum, reports when several corners tie, when the region is empty or when the objective is unbounded, and lists the slack or surplus of each constraint so you can see which resources are fully used. Templates set up a workshop, a diet and a farm problem from a word problem, and every value can be edited.
Setting up a problem
Choose Maximise or Minimise, enter the objective coefficients of x and y, and give x and y a meaning such as tables and chairs. Each constraint is a row a·x + b·y ≤, ≥ or = c with its own name. Tick x ≥ 0 and y ≥ 0 for the usual non-negativity conditions. Templates fill in complete word problems so you can see how sentences become inequalities.
The corner point theorem
If a linear programme has an optimal solution and the feasible region is bounded, the optimum is at a corner of the region. So it is enough to list the corners, which are intersections of pairs of boundary lines that satisfy every constraint, and compare the objective there. If two neighbouring corners give the same value, every point on the edge between them is optimal. If the region extends without limit in the direction the objective improves, there is no optimum.
Slack and binding constraints
At the optimum, a constraint whose two sides are equal is binding: that resource is used up. The slack (for ≤) or surplus (for ≥) of the others says how much is left over. In business terms, extra units of a binding resource could increase profit, while extra units of a slack resource would not.
Worked example
Maximise P = 30x + 40y with 2x + y ≤ 100 (carpentry hours), x + 2y ≤ 80 (finishing hours) and x ≥ 10. The corners are (10, 0), (50, 0), (40, 20) and (10, 35), giving P = 300, 1500, 2000 and 1700. The best is 40 tables and 20 chairs with P = 2000; both hour constraints are binding and the tables constraint has a surplus of 30.
Limits
Only two decision variables can be drawn; larger problems need the simplex method. Integer requirements (whole tables, whole people) are not enforced, so a fractional optimum may need rounding and rechecking. Coefficients are exact numbers, so the tool does not do sensitivity ranges or shadow prices. It is a teaching tool, not planning software.
Exemple resolt
Max 30x + 40y with 2x + y ≤ 100, x + 2y ≤ 80, x ≥ 10: optimum P = 2000 at (40, 20).
En resum
- Categoria: Matemàtiques i ciència
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: OpenStax Contemporary Mathematics / Finite Mathematics: linear programming, feasible regions and the corner point (fundamental) theorem
Preguntes freqüents
What is a feasible region?
The set of all points that satisfy every constraint at once. It is drawn shaded; any point outside breaks at least one constraint.
Why only check the corners?
For a linear objective on a convex region bounded by straight lines, the best value is always reached at a corner (the corner point theorem).
What if two corners give the same best value?
Then every point on the edge between them is optimal. The tool notes the tie.
What does unbounded mean?
The region stretches to infinity in a direction that keeps improving the objective, so there is no maximum (or minimum).
What is slack?
The unused amount of a ≤ constraint at the optimum (or the excess over a ≥ constraint). Zero slack means the constraint is binding.
Can it find whole-number answers?
No. It solves the continuous problem; check nearby whole-number points yourself if the variables must be integers.
