3
$\begingroup$

With Mathematica 7:

LinearProgramming[{1, 1}, {{0, 0}, {1, 1}}, {1, 1}, Automatic, Integers]

gives wrong result {0,1}. But

LinearProgramming[{1, 1}, {{0, 0}, {1, 1}}, {1, 1}, Automatic, Reals]

gives correct error:

LinearProgramming::lpsnf: No solution can be found that satisfies the constraints.

From my point of view this is a buggy behaviour, or did I miss something? Can someone confirm this for newer Mathematica versions?

$\endgroup$
  • 2
    $\begingroup$ Apparently a bug. Fixed in 8.0.4, though I didn't try 8.0.0 or 8.0.1. $\endgroup$ – Oleksandr R. Feb 26 '14 at 22:27
  • $\begingroup$ What @Oleksandr R. said. $\endgroup$ – Daniel Lichtblau Feb 26 '14 at 23:58
2
$\begingroup$

Yes, it's a bug (as confirmed by Daniel Lichtblau). The good news is that it's been fixed at least as of version 8.0.4, and possibly earlier--I didn't try with versions 8.0.0 or 8.0.1.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.