removed an unused argument in a private method
JIRA: MATH-289 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@808311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b22b39f46b
commit
24e9fc91c7
|
@ -136,7 +136,7 @@ class SimplexTableau implements Serializable {
|
|||
matrix[zIndex][zIndex] = maximize ? 1 : -1;
|
||||
RealVector objectiveCoefficients =
|
||||
maximize ? f.getCoefficients().mapMultiply(-1) : f.getCoefficients();
|
||||
copyArray(objectiveCoefficients.getData(), matrix[zIndex], getNumObjectiveFunctions());
|
||||
copyArray(objectiveCoefficients.getData(), matrix[zIndex]);
|
||||
matrix[zIndex][width - 1] =
|
||||
maximize ? f.getConstantTerm() : -1 * f.getConstantTerm();
|
||||
|
||||
|
@ -153,7 +153,7 @@ class SimplexTableau implements Serializable {
|
|||
int row = getNumObjectiveFunctions() + i;
|
||||
|
||||
// decision variable coefficients
|
||||
copyArray(constraint.getCoefficients().getData(), matrix[row], 1);
|
||||
copyArray(constraint.getCoefficients().getData(), matrix[row]);
|
||||
|
||||
// x-
|
||||
if (!restrictToNonNegative) {
|
||||
|
@ -325,10 +325,8 @@ class SimplexTableau implements Serializable {
|
|||
/**
|
||||
* @param src the source array
|
||||
* @param dest the destination array
|
||||
* @param destPos the destination position
|
||||
*/
|
||||
private void copyArray(final double[] src, final double[] dest,
|
||||
final int destPos) {
|
||||
private void copyArray(final double[] src, final double[] dest) {
|
||||
System.arraycopy(src, 0, dest, getNumObjectiveFunctions(), src.length);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,9 @@ The <action> type attribute can be add,update,fix,remove.
|
|||
Fixed a NullPointerException when no solution is possible and some constraints
|
||||
are negative
|
||||
</action>
|
||||
<action dev="luc" type="fix" issue="MATH-289" >
|
||||
Removed an unused argument in a private method
|
||||
</action>
|
||||
<action dev="luc" type="fix" issue="MATH-288" due-to="Benjamin McCann">
|
||||
Fixed an error induced by entries set to 0
|
||||
</action>
|
||||
|
|
Loading…
Reference in New Issue