Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9031B7C24 for ; Fri, 25 Nov 2011 16:36:01 +0000 (UTC) Received: (qmail 61131 invoked by uid 500); 25 Nov 2011 16:36:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 61066 invoked by uid 500); 25 Nov 2011 16:36:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 61058 invoked by uid 99); 25 Nov 2011 16:36:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2011 16:36:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2011 16:36:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E7B1E9FD78 for ; Fri, 25 Nov 2011 16:35:39 +0000 (UTC) Date: Fri, 25 Nov 2011 16:35:39 +0000 (UTC) From: =?utf-8?Q?Micha=C5=82_Skrzypczak_=28Created=29_=28JIRA=29?= To: issues@commons.apache.org Message-ID: <1502841601.12291.1322238939950.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (MATH-713) Negative value with restrictNonNegative MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Negative value with restrictNonNegative --------------------------------------- Key: MATH-713 URL: https://issues.apache.org/jira/browse/MATH-713 Project: Commons Math Issue Type: Bug Affects Versions: 2.2 Environment: commons-math-2.2 Reporter: Micha=C5=82 Skrzypczak Problem: commons-math-2.2 SimplexSolver. A variable with 0 coefficient may be assigned a negative value nevertheless= restrictToNonnegative flag in call: SimplexSolver.optimize(function, constraints, GoalType.MINIMIZE, true); Function 1 * x + 1 * y + 0 Constraints: 1 * x + 0 * y =3D 1 Result: x =3D 1; y =3D -1; Probably variables with 0 coefficients are omitted at some point of computa= tion and because of that the restrictions do not affect their values. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira