Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Solver not obeying binary constraint

Tags:

excel

solver

I created a model in Excel to use in conjunction with Solver. It mostly works. The only problem is that Solver is not really treating the cells constrained as binary properly. When it's done finding a solution, some of the numbers are actually 0.9999996, 1.0000000003, 0.0000017, and so on.

I am using Excel 2004 on Mac OS X. Any ideas?

like image 362
Shaggy Frog Avatar asked Dec 01 '22 07:12

Shaggy Frog


1 Answers

If the binary values are far from 0 or 1, you might have to go to options in the Solver window and check if the box "Ignore integer constraints is checked".

like image 174
thomas Avatar answered Jan 23 '23 01:01

thomas