Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 87037 invoked from network); 13 Mar 2010 20:25:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Mar 2010 20:25:32 -0000 Received: (qmail 63920 invoked by uid 500); 13 Mar 2010 20:24:50 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 63834 invoked by uid 500); 13 Mar 2010 20:24:50 -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 63826 invoked by uid 99); 13 Mar 2010 20:24:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Mar 2010 20:24:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Mar 2010 20:24:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 61448234C1EE for ; Sat, 13 Mar 2010 20:24:27 +0000 (UTC) Message-ID: <36001402.247951268511867397.JavaMail.jira@brutus.apache.org> Date: Sat, 13 Mar 2010 20:24:27 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (MATH-328) Is "NoFeasibleSolutionException" Bug not Fixed Yet? In-Reply-To: <674908501.119401262951694676.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Steitz resolved MATH-328. ------------------------------ Resolution: Incomplete > Is "NoFeasibleSolutionException" Bug not Fixed Yet? > --------------------------------------------------- > > Key: MATH-328 > URL: https://issues.apache.org/jira/browse/MATH-328 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.1 > Environment: Windows XP commons Math 2.0 jre 1.6 > Reporter: son ki sup > Priority: Critical > Attachments: error_data.txt > > > I received a e-mail which introduces URL "https://svn.apache.org/repos/asf/commons/proper/math/trunk". > I downloaded Source Files in Package "org\apache\commons\math\optimization\linear" > and compiled these files(make a new commons-math-2.?.jar = Simplex Patch Version) > Lastly I tested a fixed Simplex module, But didn't get a feasible solution. > Exception Message is as follow > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > org.apache.commons.math.optimization.linear.NoFeasibleSolutionException: no feasible solution > at org.apache.commons.math.optimization.linear.SimplexSolver.solvePhase1(SimplexSolver.java:166) > at org.apache.commons.math.optimization.linear.SimplexSolver.doOptimize(SimplexSolver.java:176) > at org.apache.commons.math.optimization.linear.AbstractLinearOptimizer.optimize(AbstractLinearOptimizer.java:106) > at SimplexSolverTest.test111(SimplexSolverTest.java:711) > at SimplexSolverTest.main(SimplexSolverTest.java:730 > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Test Data is as follow > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > double[] ob = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1000,0,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,0}; > double[] c1 = {115239312,65417490,111006072,63657738,26800758,120283110,137807244,90077436,25759098,20452338,40821822,136261944,54779832,42682500,138210804,27299808,144635238,105106248,46103364,142549164,94178844,129443166,127867176,152840844,104050710,122083578,25506900,110386026,79515846,149110056,98889318,87030882,128243016,112193730,109948500,134574300,72316818,174011850,139884606,170461962,178817040,45444960,119593602,82012374,155913894,19837854,135737676,77510844,168166152,63235476,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c2 = {115239312,65417490,111006072,63657738,26800758,120283110,137807244,90077436,25759098,20452338,40821822,136261944,54779832,42682500,138210804,27299808,144635238,105106248,46103364,142549164,94178844,129443166,127867176,152840844,104050710,122083578,25506900,110386026,79515846,149110056,98889318,87030882,128243016,112193730,109948500,134574300,72316818,174011850,139884606,170461962,178817040,45444960,119593602,82012374,155913894,19837854,135737676,77510844,168166152,63235476,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c3 = {8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,11.1,14.4,7.5,4.5,3.6,9.3,12.6,5.4,1.2,6.6,8.1,9.6,8.1,8.1,13.8,0.6,14.1,6.6,15,10.2,7.2,6,1.2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c4 = {8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,8.4,11.1,14.4,7.5,4.5,3.6,9.3,12.6,5.4,1.2,6.6,8.1,9.6,8.1,8.1,13.8,0.6,14.1,6.6,15,10.2,7.2,6,1.2,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c5 = {-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-48.9,-45.6,-52.5,-55.5,-56.4,-50.7,-47.4,-54.6,-58.8,-53.4,-51.9,-50.4,-51.9,-51.9,-46.2,-59.4,-45.9,-53.4,-45,-49.8,-52.8,-54,-58.8,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c6 = {-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-51.6,-48.9,-45.6,-52.5,-55.5,-56.4,-50.7,-47.4,-54.6,-58.8,-53.4,-51.9,-50.4,-51.9,-51.9,-46.2,-59.4,-45.9,-53.4,-45,-49.8,-52.8,-54,-58.8,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c7 = {-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c8 = {-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c9 = {24,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,24,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c10 = {24,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,24,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c11 = {-9,21,21,21,21,21,21,21,21,21,21,21,21,21,-9,-9,-9,-9,-9,21,21,21,-9,-9,-9,-9,-9,21,21,-9,-9,-9,21,-9,-9,21,21,-9,-9,-9,21,21,21,21,21,21,21,21,21,21,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c12 = {-9,21,21,21,21,21,21,21,21,21,21,21,21,21,-9,-9,-9,-9,-9,21,21,21,-9,-9,-9,-9,-9,21,21,-9,-9,-9,21,-9,-9,21,21,-9,-9,-9,21,21,21,21,21,21,21,21,21,21,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0}; > double[] c13 = {-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,24,24,24,24,24,-6,-6,-6,24,-6,-6,24,24,-6,-6,24,24,24,-6,24,-6,-6,-6,-6,-6,24,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0}; > double[] c14 = {-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,24,24,24,24,24,-6,-6,-6,24,-6,-6,24,24,-6,-6,24,24,24,-6,24,-6,-6,-6,-6,-6,24,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0}; > double[] c15 = {-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0}; > double[] c22 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0}; > double[] c23 = {-76826208,-43611660,-74004048,-42438492,-17867172,-80188740,-91871496,-60051624,-17172732,-13634892,-27214548,-90841296,-36519888,-28455000,-92140536,-18199872,-96423492,-70070832,-30735576,-95032776,-62785896,-86295444,-85244784,-101893896,-69367140,-81389052,-17004600,-73590684,-53010564,-99406704,-65926212,-58020588,-85495344,-74795820,-73299000,-89716200,-48211212,-116007900,-93256404,-113641308,-119211360,-30296640,-79729068,-54674916,-103942596,-13225236,-90491784,-51673896,-112110768,-42156984,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c24 = {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c25 = {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c26 = {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > double[] c73 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; > > > > > LinearObjectiveFunction f = new LinearObjectiveFunction(ob, 0 ); > Collection constraints = new ArrayList(); > > constraints.add(new LinearConstraint(c1 , Relationship.GEQ,3000000000.0d)); > constraints.add(new LinearConstraint(c2 , Relationship.LEQ,3000000000.0d)); > constraints.add(new LinearConstraint(c3 , Relationship.LEQ,1200.0d)); > constraints.add(new LinearConstraint(c4 , Relationship.GEQ,1200.0d)); > constraints.add(new LinearConstraint(c5 , Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c6 , Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c7 , Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c8 , Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c9 , Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c10, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c11, Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c12, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c13, Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c14, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c15, Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c16, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c17, Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c18, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c19, Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c20, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c21, Relationship.LEQ,0.0d)); > constraints.add(new LinearConstraint(c22, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c23, Relationship.GEQ,0.0d)); > constraints.add(new LinearConstraint(c24, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c25, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c26, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c27, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c28, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c29, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c30, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c31, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c32, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c33, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c34, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c35, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c36, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c37, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c38, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c39, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c40, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c41, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c42, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c43, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c44, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c45, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c46, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c47, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c48, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c49, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c50, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c51, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c52, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c53, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c54, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c55, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c56, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c57, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c58, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c59, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c60, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c61, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c62, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c63, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c64, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c65, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c66, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c67, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c68, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c69, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c70, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c71, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c72, Relationship.GEQ,1.0d)); > constraints.add(new LinearConstraint(c73, Relationship.GEQ,1.0d)); > > > try { > SimplexSolver solver = new SimplexSolver(); > > RealPointValuePair solution = solver.optimize(f, constraints, GoalType.MINIMIZE, false); > > double[] p = solution.getPoint(); > > for(int i=0; i < p.length; i++) { > System.out.println(p[i]); > } > }catch(Exception e) { > e.printStackTrace(); > } > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > for reference, I need to use a few hundred contraints(The data presented is part of the required data) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.