Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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
2  
Apparently a bug. Fixed in 8.0.4, though I didn't try 8.0.0 or 8.0.1. –  Oleksandr R. Feb 26 at 22:27
    
What @Oleksandr R. said. –  Daniel Lichtblau Feb 26 at 23:58

1 Answer 1

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

 
discard

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.