Model yes-no decisions with flexible constraints and weights. Review exact solutions, slack, feasibility, and rankings. Explore optimal combinations visually before applying decisions in practice.
This exact solver checks every binary pattern, so larger models take longer.
The default example models a yes-no selection problem. The objective is to maximize total value.
| Variable | Objective Coefficient | Constraint C1 Coefficient | Constraint C2 Coefficient | Constraint C3 Coefficient |
|---|---|---|---|---|
| x1 | 14 | 6 | 1 | 0 |
| x2 | 8 | 4 | 1 | 1 |
| x3 | 11 | 5 | 1 | 0 |
| x4 | 6 | 3 | 0 | 1 |
C1: 6x1 + 4x2 + 5x3 + 3x4 ≤ 10
C2: x1 + x2 + x3 ≥ 1
C3: x2 + x4 ≤ 1
Objective: Maximize or Minimize
Z = Σ(cixi)
Constraints:
Σ(aj,ixi) ≤ bj, Σ(aj,ixi) ≥ bj, or Σ(aj,ixi) = bj
Binary Rule:
xi ∈ {0, 1}
This calculator solves the model exactly by evaluating every binary pattern. It then keeps only feasible solutions and returns the best objective value.
Each decision variable can only be 0 or 1. That usually represents no or yes, reject or choose, or off or on.
Yes. Change the objective type selector before solving. The same constraint system can be used for either direction.
This page uses exact enumeration. It checks every binary pattern, so the workload doubles whenever one more variable is added.
The solver reports that no feasible binary pattern satisfies all constraints. You should then adjust coefficients, bounds, or relation signs.
Slack measures unused room for ≤ constraints. Surplus measures excess for ≥ constraints. Deviation shows the absolute difference for = constraints.
A constraint is binding when the optimal solution touches the limit within the chosen tolerance. Binding constraints often drive the final answer.
Yes. Objective coefficients, constraint coefficients, and right-hand-side values can all be decimals.
It is useful for selection, assignment, scheduling, facility choice, project approval, portfolio picking, and other yes-no optimization decisions.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.