summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/simplex.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-05-28 16:52:13 +0000
committerKarl Berry <karl@freefriends.org>2011-05-28 16:52:13 +0000
commitdc8edc4b8f4c2f75e5785045925cd7cd6e7df871 (patch)
tree76149c373d7e59beeea52aef0793bf9189cb7b9b /Master/texmf/asymptote/simplex.asy
parentc96567a73dfa159f9672fa2819ce0b3cd198d764 (diff)
asymptote 2.10
git-svn-id: svn://tug.org/texlive/trunk@22643 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/simplex.asy')
-rw-r--r--Master/texmf/asymptote/simplex.asy6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf/asymptote/simplex.asy b/Master/texmf/asymptote/simplex.asy
index bd9f69c9324..43920109ff4 100644
--- a/Master/texmf/asymptote/simplex.asy
+++ b/Master/texmf/asymptote/simplex.asy
@@ -184,8 +184,10 @@ struct problem {
// Checks that constants are valid.
bool validConstants() {
for (int i = 0; i < rows.length; ++i)
- if (rows[i].c < 0)
- return false;
+ // Do not test the row for b, as it does not have a non-negativity
+ // condition.
+ if (i != VAR_B && rows[i].c < 0)
+ return false;
return true;
}