Fix an Excel Solver Binary Constraint Reported as Nonlinear
Question details
The user needs to identify why Excel Solver reports a model with a binary decision variable as nonlinear when using Simplex LP.

- Product
- Microsoft Excel Solver
- Device & OS
- not provided
- Scenario
- The user is solving an optimization model with a binary decision variable and a SUMPRODUCT formula using the Simplex LP method.
- Observed behavior
- Solver reports that the model is nonlinear, preventing the user from solving it with Simplex LP.
Identify the objective cell, decision-variable cells, and cells used in constraints. In Excel, open Data > Solver to review their references; if Solver is missing, enable the Solver Add-in under File > Options > Add-ins.
Make formulas linked to binary variables linear
Use this approach when Simplex LP reports a nonlinear model even though a decision variable is constrained to binary values.
A binary constraint alone does not make a model nonlinear. Check the objective and constraint formulas, including any cells they reference indirectly.
SUMPRODUCT can be linear when one array contains fixed coefficients and the other contains decision variables. It is generally nonlinear if it multiplies decision variables by one another.
Open Data > Solver and note the objective, changing variable cells, and constraint cells. Select each formula cell and use Formulas > Trace Precedents or inspect the formula bar to find references to the decision variables.
Edit formulas that multiply decision-variable cells together or apply decision-dependent IF logic. Where appropriate, use fixed coefficients multiplied by decision variables; for example, =SUMPRODUCT($B$2:$B$10,$C$2:$C$10) is linear if column B contains fixed values and column C contains decision variables.
In Data > Solver, select or add the constraint for the decision-variable range. Choose bin as the constraint relation and confirm that the range matches the intended binary cells.
In the Solver Parameters dialog, select Simplex LP under Select a Solving Method, then click Solve. If Solver still reports nonlinearity, inspect formulas referenced by the objective and every constraint again.

Review Excel Model Formulas in WPS Spreadsheet
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files to review formulas and move between office suites easily; WPS does not fix errors in Microsoft Excel Solver.

Frequently Asked Questions
Does a binary constraint make an Excel Solver model nonlinear?
No. A binary constraint restricts a decision variable to 0 or 1. The nonlinear relationship is usually in the objective formula, a constraint formula, or a cell referenced by one of them.
Is SUMPRODUCT always nonlinear in Solver?
No. SUMPRODUCT is linear when it multiplies fixed coefficients by decision variables and sums the results. It is generally nonlinear when both multiplied arrays contain decision variables.
How do I add a binary constraint in Excel Solver?
Open Data > Solver, click Add under the constraints list, select the decision-variable cells, and choose bin as the relation. Confirm the constraint before clicking Solve.
What can I do if my model must remain nonlinear?
In Data > Solver, consider selecting Evolutionary under Select a Solving Method, especially for discontinuous formulas. It may take longer and does not guarantee a global optimum.
Where is Solver if it is not on the Data tab?
Go to File > Options > Add-ins. Under Manage, select Excel Add-ins and click Go, then select Solver Add-in and click OK.




