The information in this article applies to:
SUMMARYIn Microsoft Excel, when setting constraints for a Solver problem, if you type the word "integer" (without the quotation marks) in the Constraint box in the Add Constraint dialog box, Solver fails. MORE INFORMATION
Excel Solver finds solutions to problems such as maximizing profits or
adjusting expenditures to fit within a given budget. When using
Solver, you specify various parameters, including constraints on the
values that can be used. One possible constraint is "integer," which
tells Solver that the number must be a positive or negative whole
number or zero.
When you choose the OK button in this message box, Solver returns you to the Add Constraint dialog box. If you then choose the Cancel button (or if you originally chose the Cancel button after choosing Add) in the Add Constraint dialog box, Solver returns you to the Solver Parameters dialog box. If you now choose the Solve button in the Solver Parameters dialog box, Solver attempts to find a solution but fails. Solver displays the Solver dialog box containing the error message: To properly constrain a value to an integer, select "int" from the list that contains the comparison operators (<=, = >=) in the Add Constraint dialog box. Notice that when you select int from the list, Solver enters the word "integer" in the Constraint box. REFERENCES"Microsoft Excel User's Guide 2," version 4.0, pages 79-120 Additional query words: 7.00
Keywords : kbualink97 |
Last Reviewed: March 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |