[
https://issues.apache.org/jira/browse/MATH-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luc Maisonobe resolved MATH-713.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.0
Fixed in subversion repository as of r1207566.
Patch applied directly.
Thanks to Michal for the report and thanks to Thomas for the patch.
> 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Ć Skrzypczak
> Labels: nonnegative, simplex, solver
> Fix For: 3.0
>
> Attachments: MATH-713.patch
>
> Original Estimate: 3h
> Remaining Estimate: 3h
>
> 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 = 1
> Result:
> x = 1; y = -1;
> Probably variables with 0 coefficients are omitted at some point of
> computation 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 administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira