Understanding Dual Linear Programs
A dual linear program gives a second view of a primal model. It turns limits into prices. It turns activity values into requirement tests. This view helps students, analysts, and planners understand the shadow value of each resource.
Why the Dual Matters
The primal model often asks for the best production, mix, route, or schedule. The dual model asks what each resource would be worth. When both models are feasible and bounded, their best objective values match. This idea is called strong duality. It is a useful check on manual work.
Standard Form Used
This calculator uses a common max form. The primal objective is to maximize c times x. The constraints use A x less than or equal to b. Each x value must be nonnegative. The matching dual minimizes b times y. Its constraints use A transpose y greater than or equal to c. Each y value must also be nonnegative.
What the Result Shows
The tool writes the dual objective, every dual constraint, and the nonnegative condition. It can also test a proposed dual vector. If the vector satisfies all dual constraints, the tool marks it feasible. It then computes the dual objective value. When a primal vector is also entered, the tool checks weak duality and reports the gap.
Using the Solver Mode
Small models can be solved by active constraint enumeration. The calculator forms possible corner points. It tests them against the dual rules. Then it keeps the feasible point with the smallest objective value. This approach is helpful for learning. Very large models should still be checked with specialist optimization software.
Good Input Practice
Enter one matrix row per line. Separate numbers with commas or spaces. Keep the vector lengths consistent. Use decimal values when needed. Do not mix different unit systems inside the same model. Review negative resource limits carefully, because the standard form assumes nonnegative variables and clear bounds.
Interpreting the Answer
A high dual value means a resource can strongly affect the objective. A zero dual variable can mean the matching resource has slack. Complementary slackness links unused resources with zero prices. These signs help explain why an optimum is reasonable.
Use it for clearer decisions later.