commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] Closed: (MATH-290) NullPointerException in SimplexTableau.initialize
Date Wed, 14 Apr 2010 00:27:50 GMT

     [ https://issues.apache.org/jira/browse/MATH-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Phil Steitz closed MATH-290.
----------------------------


> NullPointerException in SimplexTableau.initialize
> -------------------------------------------------
>
>                 Key: MATH-290
>                 URL: https://issues.apache.org/jira/browse/MATH-290
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Java 1.6.0_13 on Windows XP 32-bit 
>            Reporter: Andrea
>             Fix For: 2.1
>
>         Attachments: SimplexSolverTest.patch, SimplexTableau.patch
>
>
> SimplexTableau throws a NullPointerException when no solution can be found instead of
a NoFeasibleSolutionException
> Here is the code that causes the NullPointerException:
> LinearObjectiveFunction f = new LinearObjectiveFunction(new double[] { 1, 5 }, 0 );
> Collection<LinearConstraint> constraints = new ArrayList<LinearConstraint>();
> constraints.add(new LinearConstraint(new double[] { 2, 0 }, Relationship.GEQ, -1.0));
> RealPointValuePair solution = new SimplexSolver().optimize(f, constraints, GoalType.MINIMIZE,
true);
> Note: Tested both with Apache Commons Math 2.0 release and SVN trunk

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message