This *is* a binary solution. The solution values that have very tiny magnitudes, like 3.33867e-16 and -1.11022e-16, should be considered to be zeros. They come out nonzero only because the solution method for binary linear programs uses numerical methods that are slightly inaccurate when implemented on a computer using double-precision floating-point arithmetic. To clean up you listing, give an AMPL command like
option display_eps 1e-12;
which says that magnitudes less than 10^(-12) should be displayed as zeros.
Bob Fourer
am...@googlegroups.com
=======
From:
am...@googlegroups.com [mailto:
am...@googlegroups.com] On Behalf Of Zarine Calugay
Sent: Saturday, December 13, 2014 11:30 AM
To:
am...@googlegroups.com
Subject: [AMPL 9752] result is not binary
i declared that my variable is binary but why did it generate this result? what to do?