Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Apparently a bug. Fixed in 8.0.4, though I didn't try 8.0.0 or 8.0.1. – Oleksandr R. Feb 26 '14 at 22:27
What @Oleksandr R. said. – Daniel Lichtblau Feb 26 '14 at 23:58
up vote 2 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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