If the solver cannot find a solution within a period of time or the number of iterations allowed (or if there is no correct answer), it will not return binary answers.
One possible workaround, depending on the type of problem you are trying to solve and how accurate your answer is , is to install several cells (perhaps the ones with the smallest values ββin the cells that you calculate) with restrictions <=1 and >=0 , not binary. The image you provided is not displayed, so I'm not quite sure what you are after.
(It may be useful to set up a sumproduct cell for cells that are not set as binary, see below.)
As an example, if you are trying to solve a total of 22 (which has no solution), you start with:
9 1 9 1 9 1 6 1 3 1
If you set all the values ββin the second column as binary, you will get:
9 0.5625 9 0.5625 9 0.5625 6 0.708333333 3 0.854166667
If you set the first 3 as binary and the last two as <=1 and >=0 , you will get:
9 0 9 1 9 1 6 0.333333333 3 0.666666667
The sum for the last two lines = 4, which you could use to manually set one of the last two as 1 and the other 0, depending on whether you want to get an answer just below or above the target.
source share